Difference between revisions of "Template:Tag"
Jump to navigation
Jump to search
sc4e>JoeST m (for use on infobox templates that need a tag) |
m (3 revisions imported) |
||
| (17 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | [[:Category:{{{2}}}-{{{1}}}|{{{1}}}]][[Category:{{{2}}}-{{{1}}}|{{PAGENAME}}]] | + | <noinclude>This template is used to tag a page with a category, creating a link to said category. |
| + | ==Synatx== | ||
| + | {{Tag|[tag]|[prefix]|[sortkey]}} | ||
| + | |||
| + | *'''[tag]''': What you want to tag it with. | ||
| + | *'''''[prefix]''''': A prefix to the tag. | ||
| + | *'''''[sortkey]''''': For use by the category (default PAGENAME) | ||
| + | ==Example== | ||
| + | </noinclude><!--if a subpage tag page exists, use it --{{#ifexist:{{FULLPAGENAME}}/tag|{{:{{FULLPAGENAME}}/tag|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}|<!-- | ||
| + | |||
| + | else just show links -->[[:Category:{{#if:{{{2|}}}|{{{2}}}-{{{1}}}|{{{1}}}}}|{{{1}}}]]<!-- | ||
| + | prefix the category with parameter 2 if it exists | ||
| + | and categorise -->[[Category:{{#if:{{{2|}}}|{{{2}}}-{{{1}}}|{{{1}}}}}|{{{3|{{PAGENAME}}}}}]]<!-- | ||
| + | use 3 for a key if exists | ||
| + | }}--><noinclude> | ||
Latest revision as of 15:36, 7 August 2019
This template is used to tag a page with a category, creating a link to said category.
Synatx
[[:Category:[prefix]-[tag]|[tag]]][[Category:[prefix]-[tag]|[sortkey]]]
- [tag]: What you want to tag it with.
- [prefix]: A prefix to the tag.
- [sortkey]: For use by the category (default PAGENAME)
Example
[[:Category:{{{1}}}|{{{1}}}]][[Category:{{{1}}}|Tag]]