Difference between revisions of "Template:Weapon demonstration line"
GrampaSwood (talk | contribs) (Removed thumb parameter as the demonstration thumbnail should /always/ be this. Please add documentation for parameters you add) |
Slimyboi500 (talk | contribs) m (mc) |
||
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: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}}}|{{{image-size|x24px}}}|link={{{image-link|{{{link|{{{1}}}}}}}}}]]|{{icon item|{{{1}}}|{{{image-size|x24px}}}}}}} '''[[{{{link|{{{1}}}}}}|{{{name|{{{1}}}}}}]]''' ('''[[{{{talk|Team Fortress Wiki talk:Weapon Demonstration#{{{1}}}}}}|T]]''' • '''[[:File:Weapon Demonstration thumb {{lc:{{{thumb|{{{1}}}}}}}}.png|D]]''' • '''<span class="plainlinks">[{{fullurl:Special:Upload|wpDestFile=Weapon_Demonstration_thumb_{{urlencode:{{lc:{{{thumb|{{{1}}}}}}}}|QUERY}}.png&wpUploadDescription=%7B%7B{{urlencode:Weapon Demonstration thumbnail{{!}}{{{thumb|{{{1}}}}}}|QUERY}}%7D%7D}} U]</span>''')</includeonly><noinclude> |
{{doc begin}} | {{doc begin}} | ||
== Usage == | == Usage == | ||
Line 17: | Line 17: | ||
; image-size | ; image-size | ||
: Determines image size in pixels (px). | : Determines image size in pixels (px). | ||
+ | |||
+ | ; name | ||
+ | : Changes the name. | ||
; talk | ; talk |
Revision as of 19:38, 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).
- name
- Changes the name.
- talk
- Used to override the talk page link.