Difference between revisions of "Template:Brazil glossary term/doc"
imported>BrownHairedGirl (Category:Brazil templates. . Better to use categories which actually exist) |
imported>Jonesey95 |
||
| (One intermediate revision by one other user not shown) | |||
| Line 40: | Line 40: | ||
"1": { | "1": { | ||
"label": "Entry name", | "label": "Entry name", | ||
| − | "description": "The name of the expression in the Glossary. The article's page name is used as a default. Square brackets < | + | "description": "The name of the expression in the Glossary. The article's page name is used as a default. Square brackets <code>[</code> and <code>]</code> need to be coded as <code>&#91;</code> and <code>&#93;</code> instead.", |
"type": "string", | "type": "string", | ||
"required": false | "required": false | ||
| Line 57: | Line 57: | ||
*{{tl|glossary link}}, for creating in-line, structured links to particular entries in topical glossaries | *{{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:Brazil templates|Glossary]] | [[Category:Brazil templates|Glossary]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 17:48, 31 May 2020
| This is a documentation subpage for Template:Brazil 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 OCW Glossary has an entry for" with a link to the entry at Draft:OCW-G 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.
{{Brazil glossary term |alternative term link |different display text, if desired}}
Examples
1. {{Brazil glossary term |1=Prisão preventiva |2=prisão preventiva}}
- produces:
Template:Draft:OCW Glossary term
2. {{Brazil glossary term |1=False accusation |2=false accusation}}
- produces:
3. {{Draft:OCW Glossary term |Mandado de busca|mandado de busca}}
- produces:
Limitations
[] - square brackets
- You cannot use square brackets ("[" and "]") in the first parameter.
To resolve this use "[" and "]" instead:
TemplateData
TemplateData for Brazil 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 <code>[</code> and <code>]</code> need to be coded as <code>&#91;</code> and <code>&#93;</code> instead. | String | optional |
| Displayed name | 2 | Optional displayed link text. | String | optional |
See also
- {{glossary}}, {{glossary term}}, {{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