Difference between revisions of "Template:Strange item info"

From Team Fortress Wiki
Jump to: navigation, search
m (How the faq that we forgot this 2 parts)
m (fix useless and pointless colspan)
Line 158: Line 158:
 
|
 
|
 
{|class="wikitable" width="100%" cellpadding=2 style="text-align:center; border:none;"
 
{|class="wikitable" width="100%" cellpadding=2 style="text-align:center; border:none;"
! colspan="19" style="background:#f9d483;"| {{lang
+
! colspan="8" style="background:#f9d483;"| {{lang
 
   | en = Compatible [[Strange Part|Strange parts]]
 
   | en = Compatible [[Strange Part|Strange parts]]
 
   | cs = Slučitelné [[Strange Part/cs|Strange party]]
 
   | cs = Slučitelné [[Strange Part/cs|Strange party]]
Line 186: Line 186:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal building damage|{{{can deal damage|{{{all|yes}}}}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal building damage|{{{can deal damage|{{{all|yes}}}}}}}}}}}
 
|- valign="center"
 
|- valign="center"
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Airborne Enemies Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Airborne Enemies Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Enemies Gibbed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Enemies Gibbed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Heavies Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Heavies Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Buildings Destroyed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Buildings Destroyed}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Headshot Kills|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Headshot Kills|63px}}
Line 200: Line 200:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal posthumous damage|{{{all|no}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal posthumous damage|{{{all|no}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Headshot Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Headshot Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Projectiles Reflected}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Projectiles Reflected}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Allies Extinguished}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Allies Extinguished}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Posthumous Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Posthumous Kills}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Critical Kills|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Critical Kills|63px}}
Line 214: Line 214:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Critical Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Critical Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Demomen Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Demomen Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Revenge Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Revenge Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Domination Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Domination Kills}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Kills While Explosive Jumping|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Kills While Explosive Jumping|63px}}
Line 228: Line 228:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Kills While Explosive Jumping}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Kills While Explosive Jumping}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Soldiers Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Soldiers Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Full Moon Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Full Moon Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Scouts Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Scouts Killed}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Cloaked Spies Killed|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Cloaked Spies Killed|63px}}
Line 242: Line 242:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Cloaked Spies Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Cloaked Spies Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Sappers Destroyed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Sappers Destroyed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Engineers Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Engineers Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Robots Destroyed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Robots Destroyed}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Low-Health Kills|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Low-Health Kills|63px}}
Line 256: Line 256:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Low-Health Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Low-Health Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Halloween Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Halloween Kills}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Robots Destroyed During Halloween}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Robots Destroyed During Halloween}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Underwater Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Underwater Kills}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Snipers Killed|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Snipers Killed|63px}}
Line 270: Line 270:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Snipers Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Snipers Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Kills While Ubercharged}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Kills While Ubercharged}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Pyros Killed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Pyros Killed}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Defender Kills}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Defender Kills}}
 
|-
 
|-
 
| style="background:#fef5e0;" | {{icon item|Strange Part Ubers Dropped|63px}}
 
| style="background:#fef5e0;" | {{icon item|Strange Part Ubers Dropped|63px}}
Line 280: Line 280:
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
| style="background:#2a2725;color:#ebe2ca;width:2em;" | {{canbeusedwithpart|{{{can deal damage|{{{all|yes}}}}}}}}
 
|-
 
|-
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Ubers Dropped}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Ubers Dropped}}
| width="150px" colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Giant Robots Destroyed}}
+
| colspan="2" style="background:#ebe2ca" | {{item link|Strange Part Giant Robots Destroyed}}
 
|}
 
|}
 
|}
 
|}

Revision as of 11:12, 24 July 2013

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

Usage

Please remove the parameters that are left blank. See Parameters section below for documentation of all parameters.

{{Strange item info
 | item-name =
 | item-type =
 | rankson =
 | rankson2 = 
 | rankson3 =
 | festive =
 | botkiller =
 | australium =
 | can deal damage =
 | can deal gib damage =
 | can headshot =
 | can reflect projectiles =
 | can deal posthumous damage =
 | can extinguish =
 | can deal critical damage =
 | can be equipped by soldier or demo =
 | can destroy sappers =
 | can deal long range damage =
 | can deal taunt damage =
 | is cosmetic =
 | can heal allies =
 | notes =
}}

Parameters

item-name
Used only to over-ride the weapon name on language pages, so add the translated name under the parameter. If left blank will pull from the base page name and use the english weapon name.
item-type
The "type" of item as stated in the subtitle of the weapon. For example Jarate is Jar Based Karate. If left blank will look for basepagename, useful for stock weapon pages. The french translation for the line also shows an example of how to make it default to item-name when left blank, similarly useful for stock weapon pages.
rankson
The primary strange counter statistic. Inputs should be in lowercase and English, as the translations are automatically taken from the dictionary templates. Allowed inputs include:
  • kills
  • ubers
  • kill assists
  • sentry kills
  • sodden victims
  • spies shocked
  • heads taken
  • humiliations
  • deaths feigned
  • buildings sapped
  • tickle fights won
  • opponents flattened
  • seconds cloaked
  • health dispensed
  • allies teleported
rankson2
Adds a secondary counter in brackets under the primary counter. Also adds a note under the backpack item template to remind the reader that only the primary counter will count towards the strange rank. Same inout rules as rankson above.
rankson3
Adds a third counter in brackets under the secondary counter. Same inout rules as rankson and rankson2 above.
festive
Puting anything in this input will add a note below the backpack item template about how this weapon is also available as a strange festive.
botkiller
Functions exactly the same as festive.
australium
Functions exactly the same as festive and botkiller.
att-#-positive / att-#-neutral / att-#-negative
Accepts the standard attribute inputs used in Template:Item infobox and Template:Backpack item. Used to show the backpack item panel as it would appear in game with all the weapon stats. Upto 6 inputs allowed.
notes
Will add the input text inside the box above the strange part table, useful to put notes about the strange weapon behavior or special rankings.

Strange Part Parameters

These parameters control the crosses and ticks displayed in the strange part table. All default to yes. The parameters used are very similar to those set out in the Template:Strange part tags table with a few exceptions for specific types of weapons. Be sure to check the table for strange part compatability as some parts cannot be used on weapons despite their full functionailty.

can deal damage
Affects the Airborne Enemies Killed, Heavies Killed, Buildings Destroyed (unless overridden by can deal building damage), Full Moon Kills, Demomen Killed, Soldiers Killed, Domination Kills, Revenge Kills, Scouts Killed and Cloaked Spies Killed parts. Default is yes.
can deal building damage
Affects Buildings Destroyed strange part. Separated from can deal damage due to weapons such as the Mantreads and Chargin' Targe specifically being unable to destroy buildings. Default is yes.
can deal gib damage
Affects the Gib Kills strange part. Default is no.
can headshot
Affects the Headshot Kills strange part. Default is no.
can reflect projectiles
Affects the Projectiles Reflected strange part. Default is no.
can deal posthumous damage
Affects the Posthumous Kills strange part. Default is no.
can extinguish
Affects the Allies Extinguished strange part. Default is no.
can deal critical damage
Affects the Critical Kills strange part. Will use can deal damage if left blank. Default is yes.
can be equipped by soldier or demo
Affects the Kills While Explosive Jumping strange part. Default is no.
can destroy sappers
Affects the Sappers Destroyed strange part. Default is no.
can deal long range damage
Affects the Long-Distance Kills strange part. Default is no.
can deal taunt damage
Affects the Kills with a Taunt Attack strange part. Default is no.
is cosmetic
Affects the Freezecam Taunt Appearances and Fires Survived strange parts. Default is no.
can heal allies
Affects the Allied Healing Done strange part. Default is no.