Editing Template:Tag

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
<includeonly><span class="cm-tag {{{class|}}}"><!--
+
<includeonly><!--
 
LINK
 
LINK
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}}}}]]<!--
+
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!--
   
 
CATEGORY
 
CATEGORY
-->{{cat ns|{{{cat|{{{1}}}|}}}}}<!--
+
-->[[Category:{{{cat|{{{1}}}|}}}]]<!--
   
--></span></includeonly><noinclude>
+
--></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.
+
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 ===
 
=== Template ===
Line 25: Line 23:
   
 
<!-- ------------- -->
 
<!-- ------------- -->
<!-- ROW: {1} -->
+
<!-- ROW: {{1}} -->
 
<!-- ------------- -->
 
<!-- ------------- -->
 
{{docs/row/required
 
{{docs/row/required
|param=<nowiki>{1}</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 44: Line 42:
 
<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 70: Line 56:
 
|}
 
|}
   
[[category: link macros]]
+
[[Category: 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}}
 

Please note that all contributions to The Coppermind are considered to be released under the CC4 by-nc-nd (see Coppermind:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)