Difference between revisions of "Template:Weapon demonstration line"

From Team Fortress Wiki
Jump to: navigation, search
m
(Reverted the previously-created overrides as they only had use for the current zombie infection lines and not for anything else)
 
Line 1: Line 1:
<includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image-size|x24px}}}|link={{{image-link|{{{link|{{{1}}}}}}}}}]]|{{icon item|{{{1}}}|{{{image-size|x24px}}}|link={{{image-link|{{{link|{{{1}}}}}}}}}}}}} '''[[{{{link|{{{1}}}}}}|{{{name|{{{1}}}}}}]]''' ('''[[{{{talk|Team Fortress Wiki talk:Weapon Demonstration#{{{1}}}}}}|T]]''' • '''[[:File:Weapon Demonstration thumb {{lc:{{{1}}}}}.png|D]]''' • '''<span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile=Weapon_Demonstration_thumb_{{urlencode:{{lc:{{{1}}}}}|QUERY}}.png&wpUploadDescription=%7B%7B{{urlencode:Weapon Demonstration thumbnail{{!}}{{{1}}}|QUERY}}%7D%7D}} U]</span>''')</includeonly><noinclude>
+
<includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|x24px|link={{{1}}}]]|{{icon item|{{{1}}}|x24px}}}} '''[[{{{1}}}]]''' ('''[[Team Fortress Wiki talk:Weapon Demonstration#{{{1}}}|T]]''' • '''[[:File:Weapon Demonstration thumb {{lc:{{{1}}}}}.png|D]]''' • '''<span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile=Weapon_Demonstration_thumb_{{urlencode:{{lc:{{{1}}}}}|QUERY}}.png&wpUploadDescription=%7B%7B{{urlencode:Weapon Demonstration thumbnail{{!}}{{{1}}}|QUERY}}%7D%7D}} U]</span>''')</includeonly><noinclude>
 
{{doc begin}}
 
{{doc begin}}
 
== Usage ==
 
== Usage ==
Line 7: Line 7:
 
{{tlx|Weapon demonstration line|Dispenser|3=image=Lvl3dispenser.png}} produces:
 
{{tlx|Weapon demonstration line|Dispenser|3=image=Lvl3dispenser.png}} produces:
 
{{Weapon demonstration line|Dispenser|image=Lvl3dispenser.png}}
 
{{Weapon demonstration line|Dispenser|image=Lvl3dispenser.png}}
 
=== Parameters ===
 
; 1
 
: First unnamed parameter, determines default image link as well as default input for the item icon and link.
 
 
; image
 
: Determines the image, requires extension. Defaults to {{tl|item icon}} with {{code|1}} as its input.
 
 
; image-size
 
: Determines image size in pixels (px).
 
 
; name
 
: Changes the displayed text on the link.
 
 
; talk
 
: Used to override the talk page link.
 
 
 
[[Category:Demonstration Project templates]]
 
[[Category:Demonstration Project templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:55, 10 December 2024

Documentation for Weapon demonstration line

Usage

{{Weapon demonstration line|Scattergun}} produces: Scattergun Scattergun (TDU)

{{Weapon demonstration line|Dispenser|image=Lvl3dispenser.png}} produces: Lvl3dispenser.png Dispenser (TDU)