-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenum.md.jinja2
41 lines (32 loc) · 1.18 KB
/
enum.md.jinja2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!-- Jinja2 template based on https://github.com/linkml/linkml/blob/main/linkml/generators/docgen/enum.md.jinja2 -->
<!-- This file should be periodically checked against the original source -->
<!-- Last check 25 August 2023 -->
# Enum: {{ gen.name(element) }}
{% if element.description %}
{% set element_description_lines = element.description.split('\n') %}
{% for element_description_line in element_description_lines %}
_{{ element_description_line }}_
{% endfor %}
{% endif %}
URI: {{ gen.link(element) }}
{% if element.permissible_values -%}
## Permissible Values
| Value | Meaning | Description |
| --- | --- | --- |
{% for pv in element.permissible_values.values() -%}
| {{pv.text}} | {{pv.meaning}} | {{pv.description}} |
{% endfor %}
{% else %}
_This is a dynamic enum_
{% endif %}
{% set slots_for_enum = schemaview.get_slots_by_enum(element.name) %}
{% if slots_for_enum is defined and slots_for_enum|length > 0 -%}
## Properties
| Name | Description |
| --- | --- |
{% for s in schemaview.get_slots_by_enum(element.name) -%}
| {{gen.link(s)}} | {{s.description|enshorten}} |
{% endfor %}
{% endif %}
{% include "common_metadata.md.jinja2" %}
{% include "feedback_footer.md.jinja2" %}