|
2 | 2 |
|
3 | 3 | {{ trait.summary|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }} |
4 | 4 |
|
5 | | -{{ trait.description|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) }} |
6 | 5 |
|
7 | 6 | {#- Used traits -#} |
8 | 7 | {% set usedTraits = [] %} |
|
29 | 28 |
|
30 | 29 | | | | |
31 | 30 | | ---:| --- | |
32 | | -| ***Uses*** {# FIXME #} | |
| 31 | +| **Uses** {# FIXME #} | |
33 | 32 | {%- for tName, tShort in usedTraits if tShort is not empty -%} |
34 | 33 | [{{ tName|trim('\\')|split('\\')|slice(0, -1)|join('\\') }}\\<span style="font-weight: bold;">{{ tShort }}</span>](/api/traits.html# |
35 | 34 | {{- tName|trim('\\')|lower|replace('\\', '-') }}) <br /> |
|
38 | 37 | {%- endfor -%} |
39 | 38 | | |
40 | 39 |
|
41 | | -| | | |
42 | | -|:---:| --- | |
43 | | -| ***Authors*** | |
44 | | - {%- for author in trait.tags.author -%} |
45 | | - {{ author.description }} <br /> |
46 | | - {%- endfor -%} |
47 | | -| |
48 | | - |
49 | | - |
50 | | -{% if trait.tags.see is not empty or trait.tags.link is not empty %} |
51 | | -***See Also:*** |
| 40 | +### Description |
52 | 41 |
|
53 | | -{% for see in trait.tags.see %} |
54 | | -* `{{ see.reference }}` {% if see.description %}-{% endif %} {{ see.description }} |
55 | | -{% endfor %} |
| 42 | +{% if trait.description %} |
| 43 | +{{ trait.description|replace({'#### ': '- ', '### ': '- ', '## ': '- ', '# ': '- ',}) -}} |
| 44 | +{% else %} |
| 45 | +> No description. |
| 46 | +{% endif %} |
56 | 47 |
|
57 | | -{% for link in trait.tags.link %} |
58 | | -* [{{ link.description|default(link.link) }}]({{ link.link }}) |
59 | | -{% endfor %} |
| 48 | +{{ include('metadata-table.md.twig', { elem: trait}) }} |
60 | 49 |
|
61 | | -{% endif %}{# class.tags.see || class.tags.link #} |
62 | 50 |
|
63 | 51 | ### <span style="display: none;">{{ trait }}</span> Methods |
64 | 52 | {# Lista de métodos públicos y protegidos #} |
|
0 commit comments