Difference between revisions of "Template:Brazil glossary term/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mathglot
(Fix shortcut namespace, post shortcut move.)
imported>BrownHairedGirl
(Category:Brazil templates. . Better to use categories which actually exist)
Line 59: Line 59:
 
<includeonly>
 
<includeonly>
 
<!-- CATEGORIES HERE, THANKS -->
 
<!-- CATEGORIES HERE, THANKS -->
[[Category:Glossary term templates|Glossary]]
+
[[Category:Brazil templates|Glossary]]
 
</includeonly>
 
</includeonly>

Revision as of 19:41, 21 January 2020

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:

Template:Side box

3. {{Draft:OCW Glossary term |Mandado de busca|mandado de busca}}

produces:

Template:Side box

Limitations

[] - square brackets

  • You cannot use square brackets ("[" and "]") in the first parameter.

To resolve this use "&#91;" and "&#93;" instead:

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Brazil glossary term

Creates a small box with links to an entry at Wikipedia:Glossary.

Template parameters

ParameterDescriptionTypeStatus
Entry name1

The name of the expression in the Glossary. The article's page name is used as a default. Square brackets <tt>&#91;</tt> and <tt>&#93;</tt> need to be coded as <tt>&amp;#91;</tt> and <tt>&amp;#93;</tt> instead.

Stringoptional
Displayed name2

Optional displayed link text.

Stringoptional

See also