Template:Glossary: Difference between revisions

No edit summary
No edit summary
 
(9 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}}}]]<ref>[[{{{1}}}]] — glossary definition</ref>
<templatedata>
</includeonly>
{
 
  "description": "Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.",
<noinclude>
  "params": {
Usage:
    "1": {
 
      "label": "Glossary term",
<pre>
      "description": "Name of the glossary entry (without the Glossary: namespace).",
{{Glossary|Glossary:Foobar}}
      "type": "string",
</pre>
      "required": true
    },
    "2": {
      "label": "Display text",
      "description": "Optional text to display instead of the glossary term name.",
      "type": "string",
      "required": false
    }
  }
}
</templatedata>
</noinclude>
</noinclude>