Jump to content

Template:Glossary: Difference between revisions

From GunCAD Wiki
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#tag:ref|See [[Glossary:{{{1}}}]].}}</includeonly><noinclude>
;'''{{{1|{{PAGENAME}}}}}'''
<templatedata>
: {{{definition}}}
{
 
  "description": "Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.",
[[Category:Glossary]]
  "params": {
</includeonly>
    "1": {
 
      "label": "Glossary term",
<noinclude>
      "description": "Name of the glossary entry (without the Glossary: namespace).",
Usage (on Glossary:Term pages only):
      "type": "string",
 
      "required": true
<pre>
    },
{{Glossary
    "2": {
| definition = A widget used to demonstrate placeholder concepts.
      "label": "Display text",
}}
      "description": "Optional text to display instead of the glossary term name.",
</pre>
      "type": "string",
 
      "required": false
Optional override:
    }
 
  }
<pre>
}
{{Glossary|Foobar
</templatedata>
| definition = ...
}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 22:15, 22 December 2025

Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Glossary term1

Name of the glossary entry (without the Glossary: namespace).

Stringrequired
Display text2

Optional text to display instead of the glossary term name.

Stringoptional