Difference between revisions of "Template:Tag"

Jump to navigation Jump to search
m (Just found this tab still open from January; removing cat faces from search results)
(Suppress category when on user pages, noticing a few of them popping into categories where they do not belong)
 
CATEGORY
-->[[category{{#switch: {{{cat|{{{1}}}|}NAMESPACE}}]]<!--
|User|User talk=<!--No categories on user pages -->
--> |#default=[[category: {{{cat|{{{1}}}|}}}]]<span class="cm-tag-cat-link cm-tracking-list" style="display: none;">[[:category: {{{cat|{{{1}}}|}}}|{{{list-text|&#xFE0E;}}}]]</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 [[help: infoboxes|infobox]] rather than in the text proper.
 
Note that the category will be suppressed on userpages for the sake of drafting articles without affecting readers, you can use [[Special:ExpandTemplates]] if you wish to test that proper categories are included before moving the draft to the mainspace.
 
=== Template ===