Diferencia entre revisiones de «Plantilla:Tag»
m (+usage) |
m (+css-class +tracking-link +docs) |
||
Línea 1: | Línea 1: | ||
− | <includeonly><!-- |
+ | <includeonly><span class="cm-tag"><!-- |
LINK |
LINK |
||
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!-- |
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!-- |
||
Línea 5: | Línea 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 === |
||
Línea 23: | Línea 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= |
||
Línea 42: | Línea 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> |
||
+ | }} |
||
+ | |||
<!-- -------- --> |
<!-- -------- --> |
||
Línea 56: | Línea 69: | ||
|} |
|} |
||
− | [[ |
+ | [[category: link macros]] |
== Articles using Template == |
== Articles using Template == |
Revisión del 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 (transclusión) (← enlaces)
- Hoid (transclusión) (← enlaces)
- Galladon (transclusión) (← enlaces)
- La tormenta (transclusión) (← enlaces)
- Torres de Medianoche (transclusión) (← enlaces)
- Un recuerdo de luz (transclusión) (← enlaces)
- Kaise (transclusión) (← enlaces)
- Kelsier (transclusión) (← enlaces)
- Marsh (transclusión) (← enlaces)
- Mare (transclusión) (← enlaces)
- Vin (transclusión) (← enlaces)
- Dockson (transclusión) (← enlaces)
- Hammond (transclusión) (← enlaces)
- Edgard Ladrian (transclusión) (← enlaces)
- Fantasma (transclusión) (← enlaces)
- Cladent (transclusión) (← enlaces)
- Sazed (transclusión) (← enlaces)
- Yeden (transclusión) (← enlaces)
- Rashek (transclusión) (← enlaces)
- Demoux (transclusión) (← enlaces)
- Elend Venture (transclusión) (← enlaces)
- TenSoon (transclusión) (← enlaces)
- Ferson Penrod (transclusión) (← enlaces)
- Tindwyl (transclusión) (← enlaces)
- Vasher (transclusión) (← enlaces)
- Vivenna (transclusión) (← enlaces)
- Denth (transclusión) (← enlaces)
- Tonk Fah (transclusión) (← enlaces)
- Joyas (transclusión) (← enlaces)
- Parlin (transclusión) (← enlaces)
- Szeth (transclusión) (← enlaces)
- Kalak (transclusión) (← enlaces)
- Kaladin (transclusión) (← enlaces)
- Shallan Davar (transclusión) (← enlaces)
- Jasnah Kholin (transclusión) (← enlaces)
- Adolin Kholin (transclusión) (← enlaces)
- Renarin Kholin (transclusión) (← enlaces)
- Gavilar Kholin (transclusión) (← enlaces)
- Meridas Amaram (transclusión) (← enlaces)
- Teft (transclusión) (← enlaces)
- Taravangian (transclusión) (← enlaces)
- Kabsal (transclusión) (← enlaces)
- Hesina (transclusión) (← enlaces)
- Moash (transclusión) (← enlaces)
- Dunny (transclusión) (← enlaces)
- Navani Kholin (transclusión) (← enlaces)
- Elhokar Kholin (transclusión) (← enlaces)
- Kharbranth (transclusión) (← enlaces)
- Shinovar (transclusión) (← enlaces)
- Diez Esencias (transclusión) (← enlaces)
- Fafen (transclusión) (← enlaces)
- Idris (transclusión) (← enlaces)
- Dalinar Kholin (transclusión) (← enlaces)
- Brumas (transclusión) (← enlaces)
- Luz tormentosa (transclusión) (← enlaces)
- Alezkar (transclusión) (← enlaces)
- Pozo de la Ascensión (in-world) (transclusión) (← enlaces)
- Montes de Ceniza (transclusión) (← enlaces)
- Arelon (transclusión) (← enlaces)
- Palaneo (transclusión) (← enlaces)
- Pozos de Hathsin (transclusión) (← enlaces)
- Urbene (transclusión) (← enlaces)
- Jah Keved (transclusión) (← enlaces)
- El Imperio Final (in-world) (transclusión) (← enlaces)
- Cenn (transclusión) (← enlaces)
- Ciudad Fadrex (transclusión) (← enlaces)
- La Shaod (transclusión) (← enlaces)
- Elevación (transclusión) (← enlaces)
- Elantris (ciudad) (transclusión) (← enlaces)
- Teod (transclusión) (← enlaces)
- Kae (transclusión) (← enlaces)
- Duladel (transclusión) (← enlaces)
- El Abismo (transclusión) (← enlaces)
- Terris (transclusión) (← enlaces)
- Urteau (transclusión) (← enlaces)
- Kredik Shaw (transclusión) (← enlaces)
- Khlennium (transclusión) (← enlaces)
- Hallandren (transclusión) (← enlaces)
- Leras (transclusión) (← enlaces)
- Nohadon (transclusión) (← enlaces)
- Las Llanuras Quebradas (transclusión) (← enlaces)
- Lagopuro (transclusión) (← enlaces)
- Kholinar (transclusión) (← enlaces)
- Alta tormenta (transclusión) (← enlaces)
- Juramento (transclusión) (← enlaces)
- Salones Tranquilos (transclusión) (← enlaces)
- Subastral de Roshar (transclusión) (← enlaces)
- Sinvida (transclusión) (← enlaces)
- Gaz (transclusión) (← enlaces)
- Fjorden (transclusión) (← enlaces)
- Dallet (transclusión) (← enlaces)
- Fantasmas de Kalad (transclusión) (← enlaces)
- Unkalaki (transclusión) (← enlaces)
- Tathingdwen (transclusión) (← enlaces)
- Dominio (Imperio Final) (transclusión) (← enlaces)
- Aliento biocromático (transclusión) (← enlaces)
- Kuth (transclusión) (← enlaces)
- Huth (transclusión) (← enlaces)
- T'Telir (transclusión) (← enlaces)
- Arsteel (transclusión) (← enlaces)