Template:GlossaryTerm: Difference between revisions
Created page with "<includeonly> <div class="glossary-term"> ;'''{{{term|{{PAGENAME}}}}}''' : {{{definition|}}} {{#if:{{{notes|}}}| : '''Notes:''' {{{notes}}} }} {{#if:{{{see_also|}}}| : '''See also:''' {{{see_also}}} }} </div> Category:Glossary </includeonly> <noinclude> Usage: <pre> {{GlossaryTerm | term = Foobar | definition = A widget used to demonstrate placeholder concepts. | notes = Common in examples and documentation. | see_also = Glossary:Baz }} </pre> </noinclude>" |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly><div class="glossary-term"> | ||
<div class="glossary-term"> | |||
;'''{{{term|{{PAGENAME}}}}}''' | ;'''{{{term|{{PAGENAME}}}}}''' | ||
<section begin="definition" /> | |||
: {{{definition|}}} | : {{{definition|}}} | ||
<section end="definition" /> | |||
{{#if:{{{notes|}}}| | {{#if:{{{notes|}}}| | ||
| Line 13: | Line 14: | ||
</div> | </div> | ||
[[Category:Glossary]] | [[Category:Glossary]]</includeonly><noinclude> | ||
</includeonly> | <templatedata> | ||
{ | |||
<noinclude> | "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> | ||