Difference between revisions of "Template:Rarity/doc"
Dinoguy1000 (talk | contribs) (create) |
Dinoguy1000 (talk | contribs) (update documentation) |
||
Line 17: | Line 17: | ||
|- | |- | ||
| {{tlx|r|Common|3=full=yes}} || {{r|Common|full=yes}} || {{tlx|r|C|3=full=yes}} || {{r|C|full=yes}} | | {{tlx|r|Common|3=full=yes}} || {{r|Common|full=yes}} || {{tlx|r|C|3=full=yes}} || {{r|C|full=yes}} | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
| {{tlx|r|Rare}} || {{r|Rare}} || {{tlx|r|R}} || {{r|R}} | | {{tlx|r|Rare}} || {{r|Rare}} || {{tlx|r|R}} || {{r|R}} | ||
Line 32: | Line 28: | ||
=== See also === | === See also === | ||
* [[Rarity]] | * [[Rarity]] | ||
− | * {{tl| | + | * {{tl|Raritynav}} |
<includeonly> | <includeonly> |
Revision as of 03:14, 7 August 2010
This is a documentation subpage for Template:Rarity. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This template is used to standardize rarity names/abbreviations for templates, so they don't have to implement such a check locally. It currently supports all official rarities and their abbreviations, and is not case-sensitive. The template doesn't return anything when fed unsupported values, which can be used for error-checking.
Basic usage is {{r|rarity}}
, outputting the abbreviation for the given rarity. The full name can be outputted instead by using the {{{full}}}
parameter, and the link can be omitted via {{{nolink}}}
.
Examples
Code | Result | Code | Result |
---|---|---|---|
{{r|Common}} |
[1] | {{r|C}} |
[2] |
{{r|common}} |
[3] | {{r|c}} |
[4] |
{{r|Common|full=yes}} |
[1] | {{r|C|full=yes}} |
[2] |
{{r|Rare}} |
[5] | {{r|R}} |
[6] |
{{r|Ghost Rare}} |
[7] | {{r|GR}} |
[8] |
{{r|Foo}} |
[9] | {{r|BLA}} |
[10] |
See also
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedCommon
- ↑ a b Cite error: Invalid
<ref>
tag; no text was provided for refs namedC
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedcommon
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedc
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedRare
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedGhost Rare
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedGR
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedFoo
- ↑ Cite error: Invalid
<ref>
tag; no text was provided for refs namedBLA