Template:Tag: Difference between revisions

From WikiIndex
Jump to navigation Jump to search
(added rendered display result, minor tweaks)
m (rv whitespace)
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>
;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]]

Revision as of 13:48, 31 December 2011

Usage
  • Category (Japan) and linkname (Japan) same: {{tag|Japan}} – would display: Japan
  • Category (Japan) and linkname (Japanese) different: {{tag|Japan|Japanese}} – would display: Japanese

Hover over both above blue links to see the link-target.

See WikiIndex:How do categories work for more information on how tags work in general with categories.