Difference between revisions of "Template:Semantic markup templates"
m (Updating) |
m (Updating) |
||
Line 23: | Line 23: | ||
| {{tlb|para}} | {{para|year|2008}} | To display template parameters with or without values | | {{tlb|para}} | {{para|year|2008}} | To display template parameters with or without values | ||
| {{tlb|param}} | {{param|title|alt}} | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above | | {{tlb|param}} | {{param|title|alt}} | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above | ||
− | | {{tlb|param value}}| {{pvalue| 2 blanks fore and aft |space=·}} | To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with | + | | {{tlb|param value}}| {{pvalue| 2 blanks fore and aft |space=·}} | To display parameter values lightly bordered; replaces <code>...</code>, especially when value contains embedded or leading/trailing blanks; visualized here with middot (·) but can use ␠, ▯, or any character. |
| {{tlb|tlx}} etc. | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}} | To display a template call (with or without parameters and values) as code | | {{tlb|tlx}} etc. | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}} | To display a template call (with or without parameters and values) as code | ||
| {{tlb|tag}} | {{resize|95%|"The {{tag|img}} tags ..."}} | To render HTML elements ("tags") in prose | | {{tlb|tag}} | {{resize|95%|"The {{tag|img}} tags ..."}} | To render HTML elements ("tags") in prose |
Latest revision as of 02:36, 9 March 2023
Intended for transclusion at the end of the documentation for each of the main Semantic markup templates, e.g. as part of a "See also" section such as:
{{Semantic markup templates}}
Initial visibility: currently defaults to collapsed
To set this template's initial visibility, the |state=
parameter may be used:
|state=collapsed
:{{Semantic markup templates|state=collapsed}}
to show the template collapsed, i.e., hidden apart from its title bar|state=expanded
:{{Semantic markup templates|state=expanded}}
to show the template expanded, i.e., fully visible|state=autocollapse
:{{Semantic markup templates|state=autocollapse}}
If the |state=
parameter in the template on this page is not set, the template's initial visibility is taken from the |default=
parameter in the Collapsible option template. For the template on this page, that currently evaluates to collapsed
.