Template:Glossary: Difference between revisions

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