Difference between revisions of "Template:Tag"

Jump to navigation Jump to search
959 bytes added ,  3 years ago
m
All fixed; I don't see a need to keep this tracking around
m (All fixed; I don't see a need to keep this tracking around)
Tag: Undo
(7 intermediate revisions by 3 users not shown)
<includeonly><span class="cm-tag {{{class|}}}"><!--
LINK
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!--
 
CATEGORY
-->[[Categorycategory: {{{cat|{{{1}}}|}}}]]<!--
--><span class="cm-tag-cat-link cm-tracking-list" style="display: none;">[[:category: {{{cat|{{{1}}}|}}}|{{{list-text|&#x1F431;&#xFE0E;}}}]]</span><!--
 
--></span></includeonly><noinclude>
--></includeonly><noinclude>The '''tag''' template is a link macro template that links to a page, and adds the page it's on toapplies a category. It's best to use it on the page's [[Helphelp:Infoboxes infoboxes|infobox]] rather than in the text proper.
 
=== Template ===
<small>'''Note:''' Replace <code><nowiki>{{1}}</nowiki></code> with an actual parameter.</small>
<pre class=mw-code>
{{tag |{{1}} |cat= |text= }}
 
<!-- ------------- -->
<!-- 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 ==
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Navigation menu