Jump to content

Template:Glossary: Difference between revisions

From GunCAD Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{{1}}}{{#tag:ref|See [[Glossary:{{{1}}}]].}}</includeonly><templatedata>
<includeonly>{{#if:{{{2|}}}|{{{2}}}|{{{1}}}}}{{#tag:ref|See [[Glossary:{{{1}}}]].}}</includeonly><noinclude>
<templatedata>
{
{
   "description": "Outputs a glossary term name and inserts a reference linking to the glossary entry.",
   "description": "Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.",
   "params": {
   "params": {
     "1": {
     "1": {
Line 8: Line 9:
       "type": "string",
       "type": "string",
       "required": true
       "required": true
    },
    "2": {
      "label": "Display text",
      "description": "Optional text to display instead of the glossary term name.",
      "type": "string",
      "required": false
     }
     }
   }
   }
}
}
</templatedata>
</templatedata>
</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