Difference between revisions of "Template:Tag"

Jump to navigation Jump to search
599 bytes added ,  3 years ago
m
+css-class +tracking-link +docs
m (+usage)
m (+css-class +tracking-link +docs)
<includeonly><span class="cm-tag"><!--
LINK
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!--
CATEGORY
-->[[Category:{{{cat|{{{1}}}|}}}]]<!--
--><span class="cm-tag-cat-link cm-tracking-link" style="display: none;">[[:category: {{{cat|{{{1}}}|}}}]]</span><!--
 
--></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 [[Helphelp:Infoboxes infoboxes|infobox]] rather than in the text proper.
 
=== Template ===
 
<!-- ------------- -->
<!-- ROW: {{1}} -->
<!-- ------------- -->
{{docs/row/required
|param=<nowiki>{{1}}</nowiki>
|desc= Use the first parameter to create a link and add the page to a category with the same name.
|eg=
<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>
}}
 
 
<!-- -------- -->
|}
 
[[Categorycategory: link macros]]
 
== Articles using Template ==
40,275

edits

Navigation menu