Template:Conlang/Glossary/head
- {{{1}}} [untagged]
Usage
editGenerates the header of an entry for the Glossary of the Conlang wikibook. An entry consists of a call to this template followed by one or more indented lines each typically ending with a call to {{Conlang/Glossary/note}}.
Parameters:
1
— required — the term to be defined.2
... — optional — additional reference targets for {{Conlang/ref}}. Parameter1
is also a reference target. If a target starts with a lower-case letter, the upper-case form is also added unless the target is prefixed with;
.tag
— required — classification of the type of referent. Some examples: term; language; person. Meta-data, currently not displayed, but if omitted a warning note is displayed after the term.
Internals
editPasses the reference targets to subtemplate {{Conlang/Glossary/head/anchor}}, via Module:TScope#map. The anchor tags are typeset after the visible heading, which avoids having to break up the visible parameter 1
in case it starts with a semicolon (admittedly a rare occurrence, so not very expensive); it is necessary that there be at least some visible text on the line after these anchors, otherwise the wiki software would put the anchor targets on the line after the heading, causing incoming links to "miss" the heading (which is why the {{#if:{{{tag|}}}|...
construct generates an
if nothing else).
See also
edit- {{Conlang/ref}}
- {{Conlang/Glossary/note}}