Template:Tag: Difference between revisions

(clarity)
Line 1: Line 1:
<includeonly>[[:Category:{{{1}}}|<span title="This page is tagged as "{{{1}}}".">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}</span>]][[Category:{{{1}}}]]</includeonly><noinclude>
<includeonly>[[:Category:{{{1}}}|<span title="This page is tagged as "{{{1}}}".">{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}</span>]][[Category:{{{1}}}]]</includeonly><noinclude>
This '''tag''' [[:Category:Category templates|template]] facilitates the creation of a wikilink to a [[Special:Categories|category]] within the prose text of an article (or another category) – which not only links to the linked category, but also auto-includes the article into that linked category.
;Usage
;Usage
*Category (Japan) and linkname (Japan) same: <code><nowiki>{{tag|Japan}}</nowiki></code> – would display: [[:Category:Japan|Japan]]
*Category (Japan) and linkname (Japan) same: <code><nowiki>{{tag|Japan}}</nowiki></code> – would display: [[:Category:Japan|Japan]]
Line 6: Line 8:
Hover your mouse pointer over both above blue links to see the actual link-target.
Hover your mouse pointer over both above blue links to see the actual link-target.


See [[WikiIndex:How do categories work]] for more information on how tags work in general with [[Special:Categories|categories]].
See [[WikiIndex:How do categories work]] for more information on how tags work in general with categories.


[[Category:Templates]]</noinclude>
[[Category:Category templates]]</noinclude>