Difference between revisions of "Template:Tag"

From The Coppermind
Jump to navigation Jump to search
m (tweaks)
m (tweak docs)
Line 8: Line 8:
 
--></includeonly><noinclude>Use this template to link to a page and also add a category.
 
--></includeonly><noinclude>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 <code><nowiki>[[{{{1}}}]][[Category:{{{1}}}]]</nowiki></code> with optional parameters for the link, the text, the <code>cat</code>egory and the sort key.
+
This template defaults to <code><nowiki>[[ {{{1}}} ]][[Category: {{{1}}} ]]</nowiki></code> but has named parameters and can be used as <code>[[ {{{link}}} | {{{text}}} ]][[Category: {{{cat}}} ]]</code>.
   
 
[[Category: link macros]]
 
[[Category: link macros]]

Revision as of 11:36, 20 December 2017

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

This template defaults to [[ {{{1}}} ]][[Category: {{{1}}} ]] but has named parameters and can be used as [[ {{{link}}} | {{{text}}} ]][[Category: {{{cat}}} ]].