Difference between revisions of "Template:Glossary term/doc"
imported>Mathglot (Creating, to accompany Template:Glossary term.) |
imported>Vanisaac m (→See also: clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
| − | The default behavior of this template is to | + | The default behavior of this template is to display a boxed string "The Wikipedia Glossary has an entry for" with a link to the entry at [[Wikipedia:Glossary]] with the same name as the Wikipedia page on which it appears. |
This template takes up to two optional parameters which will alter the expression used to link to the Glossary. | This template takes up to two optional parameters which will alter the expression used to link to the Glossary. | ||
| − | *<nowiki>{{Glossary term |alternative term link |different display text, if desired}}</nowiki> | + | * <code><nowiki>{{Glossary term |alternative term link |different display text, if desired}}</nowiki></code> |
==Examples== | ==Examples== | ||
| − | <nowiki>{{Glossary term |1=Hatnote |2=hat note}}</nowiki> | + | 1. <code><nowiki>{{Glossary term |1=Hatnote |2=hat note}}</nowiki></code> |
| − | + | ::: produces: | |
| − | + | {{Glossary term |1=Hatnote |2=hat note}} | |
| − | + | {{-}} | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | produces | + | 2. <code><nowiki>{{Glossary term |1=Three-revert rule |2=three revert rule}}</nowiki></code> |
| − | {{ | + | ::: produces: |
| + | {{Glossary term |1=Three-revert rule |2=three revert rule}} | ||
{{-}} | {{-}} | ||
| − | {{ | + | 3. <code><nowiki>{{Glossary term |Watchlist |Watch list}}</nowiki></code> |
| − | + | ::: produces: | |
| − | + | {{Glossary term |Watchlist |Watch list}} | |
| − | |||
| − | |||
| − | |||
| − | {{ | ||
{{-}} | {{-}} | ||
| Line 42: | Line 35: | ||
{{TemplateData header}} | {{TemplateData header}} | ||
<templatedata>{ | <templatedata>{ | ||
| − | "description": "Creates a small box with | + | "description": "Creates a small box with links to an entry at Wikipedia:Glossary.", |
"params": { | "params": { | ||
"1": { | "1": { | ||
| Line 58: | Line 51: | ||
}}</templatedata> | }}</templatedata> | ||
| − | ==See also== | + | == See also == |
| − | * < | + | *{{tl|glossary}}, {{tl|glossary end}}, {{tl|term}} and {{tl|defn}}, the glossary structure templates |
| + | *{{tl|dfn}} the more general <code><dfn></code> template | ||
| + | *{{tl|glossary link}}, for creating in-line, structured links to particular entries in topical glossaries | ||
| − | <includeonly> | + | <includeonly>{{Sandbox other|| |
<!-- CATEGORIES HERE, THANKS --> | <!-- CATEGORIES HERE, THANKS --> | ||
| − | [[Category:Glossary | + | [[Category:Glossary templates|Glossary]] |
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 15:28, 25 April 2020
| This is a documentation subpage for Template:Glossary term. It contains usage information, categories and other content that is not part of the original template page. |
Usage
The default behavior of this template is to display a boxed string "The Wikipedia Glossary has an entry for" with a link to the entry at Wikipedia:Glossary with the same name as the Wikipedia page on which it appears.
This template takes up to two optional parameters which will alter the expression used to link to the Glossary.
{{Glossary term |alternative term link |different display text, if desired}}
Examples
1. {{Glossary term |1=Hatnote |2=hat note}}
- produces:
2. {{Glossary term |1=Three-revert rule |2=three revert rule}}
- produces:
3. {{Glossary term |Watchlist |Watch list}}
- produces:
Limitations
[] - square brackets
- You cannot use square brackets ("[" and "]") in the first parameter.
To resolve this use "[" and "]" instead:
TemplateData
TemplateData for Glossary term
Creates a small box with links to an entry at Wikipedia:Glossary.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Entry name | 1 | The name of the expression in the Glossary. The article's page name is used as a default. Square brackets <tt>[</tt> and <tt>]</tt> need to be coded as <tt>&#91;</tt> and <tt>&#93;</tt> instead. | String | optional |
| Displayed name | 2 | Optional displayed link text. | String | optional |
See also
- {{glossary}}, {{glossary end}}, {{term}} and {{defn}}, the glossary structure templates
- {{dfn}} the more general
<dfn>template - {{glossary link}}, for creating in-line, structured links to particular entries in topical glossaries