Template:Glossary: Difference between revisions

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