Difference between revisions of "Template:Weapon Demonstration"

From Team Fortress Wiki
Jump to: navigation, search
m (Unprotected "Template:Weapon Demonstration": Language updates required)
m
Line 28: Line 28:
 
}}}}</includeonly><noinclude>
 
}}}}</includeonly><noinclude>
 
{{translation switching|ar, cs, es, fi, fr, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}}
 
{{translation switching|ar, cs, es, fi, fr, it, ja, ko, nl, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}}
{{doc begin}}
+
{{template doc}}
To display [[Team Fortress Wiki:Weapon Demonstration|weapon demonstration]] videos on pages. See [[Team Fortress Wiki:Weapon Demonstration|Weapon Demonstration project]] for more info on specific videos.
 
 
 
=== Usage ===
 
Simply place the template on the weapon article.
 
 
 
If a link to a patch which outdates the demonstration is found in {{tl|Dictionary/demonstrations}}, it will display a notice that the demonstration is outdated.
 
 
 
* {{tlx|Weapon Demonstration}} on the Scattergun article generates:
 
 
 
{{Weapon Demonstration|y0A7D2ufqrU}}
 
 
 
To manually choose a weapon video, insert the YouTube video ID as an unnamed parameter:
 
 
 
* {{tlx|Weapon Demonstration|y0A7D2ufqrU}}
 
 
 
To manually choose a weapon video by weapon name, insert the name of the weapon as <code>weapon</code> parameter:
 
 
 
* {{tlx|Weapon Demonstration|2=weapon=Bat}}
 
 
 
To customize the level of the header, add the <code>headerlevel</code> parameter:
 
 
 
* {{tlx|Weapon Demonstration|2=headerlevel=h3}}
 
 
 
To remove the header, add the <code>noheader</code> parameter:
 
 
 
* {{tlx|Weapon Demonstration|2=noheader=true}}
 
 
 
To remove the hatnote (but not the header), add the <code>nohatnote</code> parameter:
 
 
 
* {{tlx|Weapon Demonstration|2=nohatnote=true}}
 
 
 
To make the video show up as a thumbnail, use <code>tn=yes</code>:
 
 
 
* {{tlx|Weapon Demonstration|2=weapon=Homewrecker|3=tn=yes}}
 
 
 
Parameters <code>width</code> and <code>ratio</code> work like the {{tl|Youtube}} template.
 
 
 
[[Category:Templates|Weapon Demonstration]]
 
</noinclude>
 

Revision as of 21:13, 8 July 2012

Template documentation [view] [edit] [history] [purge]

To display weapon demonstration videos on pages. See Weapon Demonstration Project Video for more info on specific videos.

Usage

Simply place the template on the weapon article.

If a link to a patch which outdates the demonstration is found in {{Dictionary/demonstrations}}, it will display a notice that the demonstration is outdated.

Demonstration

To manually choose a weapon video, insert the YouTube video ID as an unnamed parameter:

To manually choose a weapon video by weapon name, insert the name of the weapon as weapon parameter:

To customize the level of the header, add the headerlevel parameter:

To remove the header, add the noheader parameter:

To remove the hatnote (but not the header), add the nohatnote parameter:

To make the video show up as a thumbnail, use tn=yes:

Parameters width and ratio work like the {{Youtube}} template.

As weapon demonstrations frequently become outdated with patches, this template can be adapted to flag demonstrations as "outdated". By editing this page, and adding code as such: scattergun-outdate: {{patch name|6|27|2012|date=true}}.
This will appear on the page as: Note: This demonstration has been out of date since June 27, 2012.