Template:GlossaryTerm: Difference between revisions

No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="glossary-term">
<includeonly><div class="glossary-term">
;'''{{{term|{{PAGENAME}}}}}'''
;'''{{{term|{{PAGENAME}}}}}'''
<section begin="definition" />
: {{{definition|}}}
: {{{definition|}}}
<section end="definition" />


{{#if:{{{notes|}}}|
{{#if:{{{notes|}}}|
Line 13: Line 15:


[[Category:Glossary]]</includeonly><noinclude>
[[Category:Glossary]]</includeonly><noinclude>
'''Usage''':
<templatedata>
 
{
<pre>
  "description": "Creates a glossary entry with a term, definition, optional notes, and optional see-also links.",
{{GlossaryTerm
  "params": {
| term = Foobar
    "term": {
| definition = A widget used to demonstrate placeholder concepts.
      "label": "Term",
| notes = Common in examples and documentation.
      "description": "The glossary term. Defaults to the page name if left empty.",
| see_also = [[Glossary:Baz]]
      "type": "string",
}}
      "required": false
</pre>
    },
    "definition": {
      "label": "Definition",
      "description": "The definition of the term.",
      "type": "string",
      "required": true
    },
    "notes": {
      "label": "Notes",
      "description": "Optional notes about the term.",
      "type": "string",
      "required": false
    },
    "see_also": {
      "label": "See also",
      "description": "Optional links to related glossary entries.",
      "type": "string",
      "required": false
    }
  }
}
</templatedata>
</noinclude>
</noinclude>