Difference between revisions of "Template:Tag"
m (+usage) |
m (+css-class +tracking-link +docs) |
||
Line 1: | Line 1: | ||
− | <includeonly><!-- |
+ | <includeonly><span class="cm-tag"><!-- |
LINK |
LINK |
||
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!-- |
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!-- |
||
Line 5: | Line 5: | ||
CATEGORY |
CATEGORY |
||
-->[[Category:{{{cat|{{{1}}}|}}}]]<!-- |
-->[[Category:{{{cat|{{{1}}}|}}}]]<!-- |
||
+ | --><span class="cm-tag-cat-link cm-tracking-link" style="display: none;">[[:category: {{{cat|{{{1}}}|}}}]]</span><!-- |
||
− | --></includeonly><noinclude> |
+ | --></span></includeonly><noinclude> |
− | The '''tag''' template is a link macro template that links to a page and applies a category. It's best to use it on the page's [[ |
+ | The '''tag''' template is a link macro template that links to a page and applies a category. It's best to use it on the page's [[help: infoboxes|infobox]] rather than in the text proper. |
=== Template === |
=== Template === |
||
Line 23: | Line 24: | ||
<!-- ------------- --> |
<!-- ------------- --> |
||
− | <!-- ROW: |
+ | <!-- ROW: {1} --> |
<!-- ------------- --> |
<!-- ------------- --> |
||
{{docs/row/required |
{{docs/row/required |
||
− | |param=<nowiki> |
+ | |param=<nowiki>{1}</nowiki> |
|desc= Use the first parameter to create a link and add the page to a category with the same name. |
|desc= Use the first parameter to create a link and add the page to a category with the same name. |
||
|eg= |
|eg= |
||
Line 42: | Line 43: | ||
<code><nowiki>|cat=Diagram</nowiki></code> |
<code><nowiki>|cat=Diagram</nowiki></code> |
||
}} |
}} |
||
+ | |||
+ | <!-- -------- --> |
||
+ | <!-- ROW: link--> |
||
+ | <!-- -------- --> |
||
+ | {{docs/row/optional |
||
+ | |param=link |
||
+ | |desc=Use this to change which page the tag links to.<br> |
||
+ | <small>'''Note:''' To follow from the above example, <code><nowiki>{{tag|Diagram|link=Diagram (group)}}</nowiki></code> adds the page to [[:Category:Diagram]], links to [[Diagram (group)]] and displays the tag as [[Diagram (group)|Diagram]].</small> |
||
+ | |eg= |
||
+ | <code><nowiki>|link=Diagram (group)</nowiki></code> |
||
+ | }} |
||
+ | |||
<!-- -------- --> |
<!-- -------- --> |
||
Line 56: | Line 69: | ||
|} |
|} |
||
− | [[ |
+ | [[category: link macros]] |
== Articles using Template == |
== Articles using Template == |
Revision as of 13:18, 7 May 2020
The tag template is a link macro template that links to a page and applies a category. It's best to use it on the page's infobox rather than in the text proper.
Template
Note: Replace {{1}}
with an actual parameter.
{{tag |{{1}} |cat= |text= }}
Parameters
Highlighted lines indicate mandatory parameters.
Positional parameters are indicated with {{N}} in their name. For example, {{1}} means "the first template parameter".
Parameter | Description | Examples |
---|---|---|
{1}
|
Use the first parameter to create a link and add the page to a category with the same name. |
|
cat
|
Use this to add this page to a category named differently than the first parameter; if cat is used, the first parameter serves only as a page link.Note: This is useful in cases such as when the first parameter links to a disambiguation page; for example, |
|
link
|
Use this to change which page the tag links to. Note: To follow from the above example, |
|
text
|
Use this to change how the tag is displayed on the page. Note: To follow from the above example, |
|
Articles using Template
- Luthadel (transclusion) (← links | edit)
- Hoid (transclusion) (← links | edit)
- Galladon (transclusion) (← links | edit)
- Blushweaver (transclusion) (← links | edit)
- The Gathering Storm (transclusion) (← links | edit)
- Towers of Midnight (transclusion) (← links | edit)
- A Memory of Light (transclusion) (← links | edit)
- Kaise (transclusion) (← links | edit)
- Kelsier (transclusion) (← links | edit)
- Marsh (transclusion) (← links | edit)
- Mare (transclusion) (← links | edit)
- Vin (transclusion) (← links | edit)
- Dockson (transclusion) (← links | edit)
- Hammond (transclusion) (← links | edit)
- Edgard Ladrian (transclusion) (← links | edit)
- Spook (transclusion) (← links | edit)
- Cladent (transclusion) (← links | edit)
- Sazed (transclusion) (← links | edit)
- Yeden (transclusion) (← links | edit)
- Rashek (transclusion) (← links | edit)
- Demoux (transclusion) (← links | edit)
- Elend Venture (transclusion) (← links | edit)
- TenSoon (transclusion) (← links | edit)
- Ferson Penrod (transclusion) (← links | edit)
- Tindwyl (transclusion) (← links | edit)
- Vasher (transclusion) (← links | edit)
- Vivenna (transclusion) (← links | edit)
- Lightsong (transclusion) (← links | edit)
- Denth (transclusion) (← links | edit)
- Susebron (transclusion) (← links | edit)
- Tonk Fah (transclusion) (← links | edit)
- Jewels (transclusion) (← links | edit)
- Parlin (transclusion) (← links | edit)
- Szeth (transclusion) (← links | edit)
- Kalak (transclusion) (← links | edit)
- Kaladin (transclusion) (← links | edit)
- Shallan Davar (transclusion) (← links | edit)
- Jasnah Kholin (transclusion) (← links | edit)
- Adolin Kholin (transclusion) (← links | edit)
- Renarin Kholin (transclusion) (← links | edit)
- Gavilar Kholin (transclusion) (← links | edit)
- Meridas Amaram (transclusion) (← links | edit)
- Teft (transclusion) (← links | edit)
- Taravangian (transclusion) (← links | edit)
- Kabsal (transclusion) (← links | edit)
- Hesina (transclusion) (← links | edit)
- Moash (transclusion) (← links | edit)
- Dunny (transclusion) (← links | edit)
- Navani Kholin (transclusion) (← links | edit)
- Elhokar Kholin (transclusion) (← links | edit)
- Kharbranth (transclusion) (← links | edit)
- Shinovar (transclusion) (← links | edit)
- Ten Essences (transclusion) (← links | edit)
- Fafen (transclusion) (← links | edit)
- Idris (transclusion) (← links | edit)
- Dalinar Kholin (transclusion) (← links | edit)
- Mist (transclusion) (← links | edit)
- Stormlight (transclusion) (← links | edit)
- Alethkar (transclusion) (← links | edit)
- Well of Ascension (transclusion) (← links | edit)
- Ashmounts (transclusion) (← links | edit)
- Arelon (transclusion) (← links | edit)
- Palanaeum (transclusion) (← links | edit)
- Pits of Hathsin (transclusion) (← links | edit)
- Urbene (transclusion) (← links | edit)
- Jah Keved (transclusion) (← links | edit)
- Final Empire (transclusion) (← links | edit)
- Cenn (transclusion) (← links | edit)
- Fadrex City (transclusion) (← links | edit)
- Shaod (transclusion) (← links | edit)
- Heightening (transclusion) (← links | edit)
- Elantris (city) (transclusion) (← links | edit)
- Teod (transclusion) (← links | edit)
- Kae (transclusion) (← links | edit)
- Duladel (transclusion) (← links | edit)
- Chasm (transclusion) (← links | edit)
- Terris (transclusion) (← links | edit)
- Urteau (transclusion) (← links | edit)
- Kredik Shaw (transclusion) (← links | edit)
- Khlennium (transclusion) (← links | edit)
- Hallandren (transclusion) (← links | edit)
- Leras (transclusion) (← links | edit)
- Nohadon (transclusion) (← links | edit)
- Shattered Plains (transclusion) (← links | edit)
- Purelake (transclusion) (← links | edit)
- Kholinar (transclusion) (← links | edit)
- Highstorm (transclusion) (← links | edit)
- Oathpact (transclusion) (← links | edit)
- Tranquiline Halls (transclusion) (← links | edit)
- Rosharan subastral (transclusion) (← links | edit)
- Lifeless (transclusion) (← links | edit)
- Gaz (transclusion) (← links | edit)
- Fjorden (transclusion) (← links | edit)
- Dallet (transclusion) (← links | edit)
- Kalad's Phantoms (transclusion) (← links | edit)
- Unkalaki (transclusion) (← links | edit)
- Tathingdwen (transclusion) (← links | edit)
- Dominance (transclusion) (← links | edit)
- Allmother (transclusion) (← links | edit)
- Mercystar (transclusion) (← links | edit)