Difference between revisions of "Template:Item nav link"

From Team Fortress Wiki
Jump to: navigation, search
(bypassing {{item link}} where it isn't needed)
 
Line 1: Line 1:
<includeonly>{{#if:{{{small|}}}|<span class="nav-small">|}}{{item icon|{{{1}}}|{{{2|40px}}}}} [[{{{1}}}{{if lang}}|{{item name|{{{1}}}}}]]{{#if:{{{small|}}}|</span>|}}</includeonly>
+
<includeonly>{{#if:{{{small|}}}|<span class="nav-small">|}}{{item icon|{{{1}}}|{{{2|40px}}}}} [[{{{1}}}{{if lang}}|{{item name|{{{1}}}}}]]{{#if:{{{small|}}}|</span>|}}</includeonly><noinclude>
 +
{{Doc begin}}
 +
Helper template for {{tl|Equip region table}}. Shows the item icon and a language-switched link to the page.
 +
 
 +
== Example usage ==
 +
{{tlx|item nav link|Scattergun}} produces {{item nav link|Scattergun}}
 +
<br>
 +
{{tlx|item nav link|Scattergun|70px}} produces {{item nav link|Scattergun|70px}}
 +
<br>
 +
{{tlx|item nav link|Scattergun|3=small=true}} produces {{item nav link|Scattergun|small=true}}
 +
</noinclude>

Latest revision as of 00:05, 2 June 2024

Documentation for Item nav link

Helper template for {{Equip region table}}. Shows the item icon and a language-switched link to the page.

Example usage

{{item nav link|Scattergun}} produces Scattergun Scattergun
{{item nav link|Scattergun|70px}} produces Scattergun Scattergun
{{item nav link|Scattergun|small=true}} produces Scattergun Scattergun