Difference between revisions of "Template:Weapon demonstration line"
Slimyboi500 (talk | contribs) (Added more parameters.) |
GrampaSwood (talk | contribs) (Removed thumb parameter as the demonstration thumbnail should /always/ be this. Please add documentation for parameters you add) |
||
Line 1: | Line 1: | ||
− | <includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image-size|x24px}}}|link={{{image-link|{{{link|{{{1}}}}}}}}}]]|{{icon item|{{{1}}}|x24px}}}} '''[[{{{link|{{{1}}}}}}]]''' ('''[[{{{talk|Team Fortress Wiki talk:Weapon Demonstration#{{{1}}}}}}|T]]''' • '''[[:File: | + | <includeonly>{{#if:{{{image|}}}|[[File:{{{image}}}|{{{image-size|x24px}}}|link={{{image-link|{{{link|{{{1}}}}}}}}}]]|{{icon item|{{{1}}}|x24px}}}} '''[[{{{link|{{{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> |
{{doc begin}} | {{doc begin}} | ||
== Usage == | == Usage == | ||
{{tlx|Weapon demonstration line|Scattergun}} produces: | {{tlx|Weapon demonstration line|Scattergun}} produces: | ||
{{Weapon demonstration line|Scattergun}} | {{Weapon demonstration line|Scattergun}} | ||
− | |||
{{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). | ||
+ | |||
+ | ; talk | ||
+ | : Used to override the talk page link. | ||
+ | |||
[[Category:Demonstration Project templates]] | [[Category:Demonstration Project templates]] | ||
</noinclude> | </noinclude> |
Revision as of 19:04, 6 December 2024
Documentation for Weapon demonstration line
Usage
{{Weapon demonstration line|Scattergun}}
produces:
Scattergun (T • D • U)
{{Weapon demonstration line|Dispenser|image=Lvl3dispenser.png}}
produces:
Dispenser (T • D • U)
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
{{item icon}}
with1
as its input.
- image-size
- Determines image size in pixels (px).
- talk
- Used to override the talk page link.