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> | ||
<templatedata> | |||
{ | |||
"description": "Creates a glossary entry with a term, definition, optional notes, and optional see-also links.", | |||
{{ | "params": { | ||
"term": { | |||
"label": "Term", | |||
"description": "The glossary term. Defaults to the page name if left empty.", | |||
"type": "string", | |||
}} | "required": false | ||
</ | }, | ||
"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> | ||