Difference between revisions of "Template:Hazard infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (Added multiple kill-icon support.)
m (Updating to use the other lang set (from item infobox). Hopefully fixed the problem with the multi-kill icons.)
Line 12: Line 12:
 
! colspan="2" {{!}} {{lang
 
! colspan="2" {{!}} {{lang
 
   | ar = كيل أيكون
 
   | ar = كيل أيكون
   | cs = {{#if:{{{kill-icon-2|}}}|Ikony|Ikona}} při zabití
+
   | cs = {{#if:{{{kill-icon-2|}}}|Ikony při zabití|Ikona při zabití}}  
   | da = {{#if:{{{kill-icon-2|}}}|Drabsikon|Drabsikoner}}
+
   | da = {{#if:{{{kill-icon-2|}}}|Drabsikoner|Drabsikon}}
 
   | de = {{#if:{{{kill-icon-2|}}}|Bilder|Bild}}
 
   | de = {{#if:{{{kill-icon-2|}}}|Bilder|Bild}}
   | es = {{#if:{{{kill-icon-2|}}}|Icono|Iconos}} de Muerte
+
   | es = {{#if:{{{kill-icon-2|}}}|Iconos de Muerte|Icono de Muerte}}
   | en = {{#if:{{{kill-icon-2|}}}|Kill Icon|Kill Icons}}
+
   | en = {{#if:{{{kill-icon-2|}}}|Kill Icons|Kill Icon}}
   | fi = {{#if:{{{kill-icon-2|}}}|Tappokuvake|Tappokuvaket}}
+
   | fi = {{#if:{{{kill-icon-2|}}}|Tappokuvakkeet|Tappokuvake}}
   | fr = {{#if:{{{kill-icon-2|}}}|Icône|Icônes}} de Frag
+
   | fr = {{#if:{{{kill-icon-2|}}}|Icônes de Frag|Icône de Frag}}
   | hu = Ölés {{#if:{{{kill-icon-2|}}}|ikon|ikons}}
+
   | hu = {{#if:{{{kill-icon-2|}}}|Ölési ikonok|Ölési ikon}}
   | it = {{#if:{{{kill-icon-2|}}}|Icone|Icona}} di morte
+
   | it = {{#if:{{{kill-icon-2|}}}|Icone|Icona}} di Morte
 
   | ja = キルアイコン
 
   | ja = キルアイコン
 
   | ko = 사살 표시
 
   | ko = 사살 표시
   | nl = {{#if:{{{kill-icon-2|}}}|Doodsicoon|Doodsicoons}}
+
   | nl = {{#if:{{{kill-icon-2|}}}|Doodsicoons|Doodsicoon}}
   | no = {{#if:{{{kill-icon-2|}}}|Draps Ikon|Draps Ikons}}
+
   | no = {{#if:{{{kill-icon-2|}}}|Draps Ikons|Draps Ikon}}
   | pl = {{#if:{{{kill-icon-2|}}}|Ikony|Ikona}} zabicia
+
   | pl = {{#if:{{{kill-icon-2|}}}|Ikony zabicia|Ikona zabicia}}
   | pt = {{#if:{{{kill-icon-2|}}}|Ícone de Morte|Ícone de Mortes}}
+
   | pt = {{#if:{{{kill-icon-2|}}}|Ícone de Mortes|Ícone de Morte}}
   | pt-br = {{#if:{{{kill-icon-2|}}}|Ícone de Morte|Ícone de Mortes}}
+
   | pt-br = {{#if:{{{kill-icon-2|}}}|Ícones de morte|Ícone de morte}}
 
   | ro = {{#if:{{{kill-icon-2|}}}|Pictograme|Pictogramă}}
 
   | ro = {{#if:{{{kill-icon-2|}}}|Pictograme|Pictogramă}}
 
   | ru = {{#if:{{{kill-icon-2|}}}|Иконки убийств|Иконка убийства}}
 
   | ru = {{#if:{{{kill-icon-2|}}}|Иконки убийств|Иконка убийства}}
   | sv = {{#if:{{{kill-icon-2|}}}|Dödsikon|Dödsikons}}
+
   | sv = {{#if:{{{kill-icon-2|}}}|Dödsikoner|Dödsikon}}
   | tr = Öldürme {{#if:{{{kill-icon-2|}}}|Simgesi|Simgesis}}
+
   | tr = {{#if:{{{kill-icon-2|}}}|Öldürme Simgesis|Öldürme Simgesi}}
   | zh-hans = 杀人图标
+
   | zh-hans = 击杀图标
 
   | zh-hant = 殺人圖示
 
   | zh-hant = 殺人圖示
 
   }}
 
   }}
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}} {{kill notice|weapon={{lc:{{{kill-icon-1|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-1|}}}}}<!--
 
{{!}} colspan="2" {{!}} {{kill notice|weapon={{lc:{{{kill-icon-1|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-1|}}}}}<!--
 +
-->}}<!-- End of #ifeq 'none' from above.
 
-->{{#if:{{{kill-icon-2|}}}
 
-->{{#if:{{{kill-icon-2|}}}
 
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-2|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-2|}}}}}</td></tr>
 
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-2|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-2|}}}}}</td></tr>
Line 49: Line 50:
 
   }}
 
   }}
 
{{!}}-
 
{{!}}-
}}
 
 
}}
 
}}
 
! colspan="2" | {{lang
 
! colspan="2" | {{lang

Revision as of 20:58, 30 October 2012

Hazard infobox
Hazard infobox
Kill Icon
Basic Information
Damage Done:
Affected By:
• Battalion's Backup:
• Bonk! Atomic Punch:
• Candy Cane:
• Chargin' Targe:
• Dead Ringer:
• Gunboats:
• Jumper :
• Mini-crits:
• ÜberCharge:
Found On:

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

This template adds in information box to articles on Environmental deaths. It adds pages to Category:Environmental hazards and Category:Gameplay.

Usage

{{Hazard infobox
| name = 
| image = 
| 3d-image-n = 
| 3d-button-n = 
| 3d-viewname-n = 
| hide-kill-icon = 
| health = 
| damage = 
| backup = 
| bonk = 
| candy-cane = 
| targe = 
| dead-ringer = 
| gunboats = 
| jumpers = 
| mini-crits = 
| uber = 
| maps = 
}}

Parameters

Parameter Required? Function
name No The name of the hazard if it is anything other than the page name.
image Yes Image of the hazard, resized to 300px wide. Defaults to File:Screenshot needed.png.
3d-[...] No See documentation at Module:3D viewer advanced.
hide-kill-icon No If there is no appropriate kill icon, set this to yes and it will not show one.
health No The amount of heath the hazard has.
backup Yes Whether or not the hazard's damage is affected by usage of the Battalion's Backup.
bonk Yes Whether or not the hazard's damage is affected by usage of the Bonk! Atomic Punch.
candy-cane Yes Whether or not the hazard's damage is affected by usage of the Candy Cane.
targe Yes Whether or not the hazard's damage is affected by usage of the Chargin' Targe.
dead-ringer Yes Whether or not the hazard's damage is affected by usage of the Dead Ringer.
gunboats Yes Whether or not the hazard's damage is affected by usage of the Gunboats.
jumpers Yes Whether or not the hazard's damage is affected by usage of the Jumpers.
mini-crits Yes Whether or not the hazard's damage is affected by Mini-Crits.
uber Yes Whether or not the hazard's damage is affected by ÜberCharges.
maps Yes Which official maps the hazard can be found on.