Template:Glossary: Difference between revisions
Appearance
Created page with "<includeonly> {{#if:{{{fn|}}}| <span class="glossary-link"> [[Glossary:{{{term}}}|{{{text|{{{term}}}}}}]]<ref name="glossary-{{{term}}}"> [[Glossary:{{{term}}}]] — glossary definition </ref> </span> | <span class="glossary-link"> [[Glossary:{{{term}}}|{{{text|{{{term}}}}}}]] </span> }} </includeonly> <noinclude> Usage: <pre> {{GlossaryLink|term=Foobar}} {{GlossaryLink|term=Foobar|text=foobar widget}} {{GlossaryLink|term=Foobar|fn=1}} </pre> </noinclude>" |
No edit summary |
||
| (15 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:{{{ | <templatedata> | ||
{ | |||
"description": "Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.", | |||
[[Glossary:{{{ | "params": { | ||
</ | "1": { | ||
< | "label": "Glossary term", | ||
"description": "Name of the glossary entry (without the Glossary: namespace).", | |||
"type": "string", | |||
"required": true | |||
}, | |||
} | "2": { | ||
"label": "Display text", | |||
"description": "Optional text to display instead of the glossary term name.", | |||
"type": "string", | |||
"required": false | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</ | |||
</noinclude> | </noinclude> | ||
Latest revision as of 22:15, 22 December 2025
Outputs a glossary term name (or optional display name) and inserts a reference linking to the glossary entry.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Glossary term | 1 | Name of the glossary entry (without the Glossary: namespace). | String | required |
| Display text | 2 | Optional text to display instead of the glossary term name. | String | optional |