Difference between revisions of "Template:Cat tag"

From The Coppermind
Jump to navigation Jump to search
m (+docs)
m (+css)
Line 1: Line 1:
<span class="cm-tag cm-cat-tag"><!--
+
<span class="cm-tag cm-cat-tag {{{class|}}}"><!--
 
LINK
 
LINK
 
-->[[:category: {{{1}}}|{{{2|{{{1}}}|}}}]]<!--
 
-->[[:category: {{{1}}}|{{{2|{{{1}}}|}}}]]<!--

Revision as of 20:14, 7 May 2020

[[:category: {{{1}}}|{{{1}}}]][[category:{{{1}}}]]

This template automatically adds a link to a category, and the category itself to a page.

Template

Note: Replace {{1}} & optionally {{2}} with an actual parameter.

{{cat tag| {{1}} | {{2}} }}

Parameters

Highlighted lines indicate mandatory parameters.

Positional parameters are indicated with {{N}} in their name. For example, {{1}} means "the first template parameter".

{{cat tag}} Parameters
Parameter Description Examples
{{1}} Use the first parameter to add the page to a category and link to that category.

|Diagram

Template:2 Use this to change the link text to something other than the category name

|...

Articles using Template