Editing Template:Cat 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: | ||
− | <span class="cm-tag cm-cat-tag |
+ | <span class="cm-tag cm-cat-tag"><!-- |
LINK |
LINK |
||
-->[[:category: {{{1}}}|{{{2|{{{1}}}|}}}]]<!-- |
-->[[:category: {{{1}}}|{{{2|{{{1}}}|}}}]]<!-- |
||
Line 10: | Line 10: | ||
This template automatically adds a link to a category, and the category itself to a page. |
This template automatically adds a link to a category, and the category itself to a page. |
||
+ | {{docs/missing}} |
||
− | === Template === |
||
− | <small>'''Note:''' Replace <code><nowiki>{{1}}</nowiki></code> & optionally <code><nowiki>{{2}}</nowiki></code> with an actual parameter.</small> |
||
− | <pre class=mw-code> |
||
− | {{cat tag| {{1}} | {{2}} }} |
||
− | </pre> |
||
− | === Parameters === |
||
− | Highlighted lines indicate '''mandatory''' parameters. |
||
− | |||
− | Positional parameters are indicated with <nowiki>{{N}}</nowiki> in their name. For example, <nowiki>{{1}}</nowiki> means "the first template parameter". |
||
− | |||
− | {{docs|title={{t|cat tag}} Parameters}} |
||
− | |||
− | <!-- ------------- --> |
||
− | <!-- ROW: {{1}} --> |
||
− | <!-- ------------- --> |
||
− | {{docs/row/required |
||
− | |param=<nowiki>{{1}}</nowiki> |
||
− | |desc= Use the first parameter to add the page to a category and link to that category. |
||
− | |eg= |
||
− | <code><nowiki>|Diagram</nowiki></code> |
||
− | }} |
||
− | |||
− | <!-- -------- --> |
||
− | <!-- ROW: {{2}}--> |
||
− | <!-- -------- --> |
||
− | {{docs/row/optional |
||
− | |param=<nowiki>{{2}}</nowiki> |
||
− | |desc=Use this to change the link text to something other than the category name |
||
− | |eg= |
||
− | <code><nowiki>|...</nowiki></code> |
||
− | }} |
||
− | |||
− | |} |
||
== Articles using Template == |
== Articles using Template == |
||
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}} |
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}} |