Difference between revisions of "Template:Tag"

From The Coppermind
Jump to navigation Jump to search
m
m (tweaks)
Line 1: Line 1:
<!--
+
<includeonly><!--
 
LINK
 
LINK
 
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!--
 
-->[[{{{link|{{{1}}}|}}}|{{{text|{{{1}}}|}}}]]<!--
   
 
CATEGORY
 
CATEGORY
-->{{#if:{{{key|}}}<!--
+
-->[[Category:{{{cat|{{{1}}}|}}}]]<!--
--->|[[Category:{{{cat|{{{1}}}|}}}|{{{key}}}]]<!--
 
--->|[[Category:{{{cat|{{{1}}}|}}}]]<!--
 
-->}}<!--
 
   
  +
--></includeonly><noinclude>Use this template to link to a page and also add a category.
TODO: REMOVE
 
-->{{#if:{{{key|}}}|[[Category: tag.key]]}}<!--
 
   
 
This template automatically adds links and categories to a number of parameters passed. It defaults to <code><nowiki>[[{{{1}}}]][[Category:{{{1}}}]]</nowiki></code> with optional parameters for the link, the text, the <code>cat</code>egory and the sort key.
--><noinclude>
 
 
This template automatically adds links and categories to a number of parameters passed. It defaults to <nowiki>[[{{{1}}}]][[Category:{{{1}}}]]</nowiki> with optional parameters for the link, the text, the <tt>cat</tt>egory and the sort key.
 
   
 
[[Category: link macros]]
 
[[Category: link macros]]

Revision as of 11:11, 20 December 2017

Use this template to link to a page and also add a category.

This template automatically adds links and categories to a number of parameters passed. It defaults to [[{{{1}}}]][[Category:{{{1}}}]] with optional parameters for the link, the text, the category and the sort key.