Difference between revisions of "Template:Hazard infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (Updating to use the other lang set (from item infobox). Hopefully fixed the problem with the multi-kill icons.)
m
(22 intermediate revisions by 13 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="2" cellpadding="2" width="300px" style="float: right; clear: right; {{{style|}}}"
+
{| class="infobox" cellspacing="2" cellpadding="2" width="300px" style="{{lang|en=float: right; clear:right;|ar=float:left; clear:left;}} {{{style|}}}"
 
|-
 
|-
 
! colspan="2" style="background-color:#F3A957;" | {{{hazard-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}
 
! colspan="2" style="background-color:#F3A957;" | {{{hazard-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}
Line 22: Line 22:
 
   | 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|}}}|Doodsicoons|Doodsicoon}}
 
   | nl = {{#if:{{{kill-icon-2|}}}|Doodsicoons|Doodsicoon}}
   | no = {{#if:{{{kill-icon-2|}}}|Draps Ikons|Draps Ikon}}
+
   | no = {{#if:{{{kill-icon-2|}}}|Drapsikoner|Drapsikon}}
 
   | pl = {{#if:{{{kill-icon-2|}}}|Ikony zabicia|Ikona zabicia}}
 
   | pl = {{#if:{{{kill-icon-2|}}}|Ikony zabicia|Ikona zabicia}}
 
   | pt = {{#if:{{{kill-icon-2|}}}|Ícone de Mortes|Ícone de Morte}}
 
   | pt = {{#if:{{{kill-icon-2|}}}|Ícone de Mortes|Ícone de Morte}}
Line 32: Line 32:
 
   | sv = {{#if:{{{kill-icon-2|}}}|Dödsikoner|Dödsikon}}
 
   | sv = {{#if:{{{kill-icon-2|}}}|Dödsikoner|Dödsikon}}
 
   | tr = {{#if:{{{kill-icon-2|}}}|Öldürme Simgesis|Öldürme Simgesi}}
 
   | tr = {{#if:{{{kill-icon-2|}}}|Öldürme Simgesis|Öldürme Simgesi}}
   | zh-hans = 击杀图标
+
   | zh-hans = {{#if:{{{kill-icon-2|}}}|击杀图标|击杀图标}}
 
   | zh-hant = 殺人圖示
 
   | zh-hant = 殺人圖示
 
   }}
 
   }}
Line 39: Line 39:
 
-->}}<!-- End of #ifeq 'none' from above.
 
-->}}<!-- 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>
+
   | {{kill notice|weapon={{lc:{{{kill-icon-2|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-2|}}}}}
 
   }}{{#if:{{{kill-icon-3|}}}
 
   }}{{#if:{{{kill-icon-3|}}}
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-3|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-3|}}}}}</td></tr>
+
   | {{kill notice|weapon={{lc:{{{kill-icon-3|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-3|}}}}}
 
   }}{{#if:{{{kill-icon-4|}}}
 
   }}{{#if:{{{kill-icon-4|}}}
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-4|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-4|}}}}}</td></tr>
+
   | {{kill notice|weapon={{lc:{{{kill-icon-4|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-4|}}}}}
 
   }}{{#if:{{{kill-icon-5|}}}
 
   }}{{#if:{{{kill-icon-5|}}}
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-5|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-5|}}}}}</td></tr>
+
   | {{kill notice|weapon={{lc:{{{kill-icon-5|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-5|}}}}}
 
   }}{{#if:{{{kill-icon-6|}}}
 
   }}{{#if:{{{kill-icon-6|}}}
   | <tr><td colspan="2">{{kill notice|weapon={{lc:{{{kill-icon-6|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-6|}}}}}</td></tr>
+
   | {{kill notice|weapon={{lc:{{{kill-icon-6|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-6|}}}}}
 
   }}
 
   }}
 
{{!}}-
 
{{!}}-
Line 61: Line 61:
 
   | hu = Infó
 
   | hu = Infó
 
   | it = Informazioni di base
 
   | it = Informazioni di base
 +
  | ja = 基本情報
 
   | ko = 기본 정보
 
   | ko = 기본 정보
 
   | lt = Svarbiausia Info
 
   | lt = Svarbiausia Info
Line 67: Line 68:
 
   | pl = Podstawowe informacje
 
   | pl = Podstawowe informacje
 
   | pt = Informação Básica
 
   | pt = Informação Básica
   | pt-br = Informação Básica
+
   | pt-br = Informações básicas
 
   | sv = Basfakta
 
   | sv = Basfakta
 
   | ru = Основная информация
 
   | ru = Основная информация
 
   | ro = Informaţii generale
 
   | ro = Informaţii generale
   | zh-hans = 基本资讯
+
   | zh-hans = 基础信息
 
   | zh-hant = 基本資訊
 
   | zh-hant = 基本資訊
 
   }}
 
   }}
 
|-
 
|-
{{#switch: {{BASEPAGENAME}}
+
{{#if: {{{health|}}} |
| Horseless Headless Horsemann | MONOCULUS | Merasmus =
 
 
{{!}} valign="top" {{!}} {{lang
 
{{!}} valign="top" {{!}} {{lang
 
   | en = '''Health:'''
 
   | en = '''Health:'''
Line 82: Line 82:
 
   | es = '''Salud:'''
 
   | es = '''Salud:'''
 
   | fi = '''Terveys:'''
 
   | fi = '''Terveys:'''
   | fr = '''Santé:'''
+
   | fr = '''Santé :'''
 +
  | hu = '''Életerő:'''
 +
  | pl = '''Zdrowie:'''
 +
  | ja = '''ヘルス値'''
 
   | ko = '''체력'''
 
   | ko = '''체력'''
 +
  | no = '''Helse:'''
 
   | pt-br = '''Vida:'''
 
   | pt-br = '''Vida:'''
 
   | ru = '''Здоровье:'''
 
   | ru = '''Здоровье:'''
 +
  | zh-hans = '''生命值:'''
 
   | zh-hant = '''生命值:'''
 
   | zh-hant = '''生命值:'''
 
   }}
 
   }}
 
{{!}} {{{health|}}}
 
{{!}} {{{health|}}}
 
{{!}}-
 
{{!}}-
| #default = <!--none-->
+
| }}
}}
 
 
| valign="top" | {{lang
 
| valign="top" | {{lang
 
   | en = '''Damage Done:'''
 
   | en = '''Damage Done:'''
 
   | de = '''Verursachter Schaden:'''
 
   | de = '''Verursachter Schaden:'''
 
   | es = '''Daño producido:'''
 
   | es = '''Daño producido:'''
   | fr = '''Dégâts Infligés:'''
+
   | fr = '''Dégâts infligés :'''
   | pl = '''Zadane Obrażenia:'''
+
  | hu = '''Sebzés:'''
 +
   | pl = '''Zadawane obrażenia:'''
 +
  | ja = '''攻撃力'''
 
   | ko = '''피해'''
 
   | ko = '''피해'''
 +
  | no = '''Skade gitt:'''
 
   | fi = '''Aiheutettu vahinko'''
 
   | fi = '''Aiheutettu vahinko'''
   | pt-br = '''Dano Feito:'''
+
   | pt-br = '''Dano feito:'''
 
   | ru = '''Наносимый урон:'''
 
   | ru = '''Наносимый урон:'''
 +
  | zh-hans = '''造成伤害:'''
 
   | zh-hant = '''造成傷害:'''
 
   | zh-hant = '''造成傷害:'''
 
   }}
 
   }}
Line 111: Line 119:
 
   | es = '''Afectado por:'''
 
   | es = '''Afectado por:'''
 
   | fi = '''Vaikuttaa:'''
 
   | fi = '''Vaikuttaa:'''
   | fr = '''Affecté Par:'''
+
   | fr = '''Affecté par :'''
 +
  | hu = '''Befolyásolva:'''
 +
  | pl = '''Podatny na:'''
 +
  | ja = '''次の影響を受けるか否か'''
 
   | ko = '''영향 여부'''
 
   | ko = '''영향 여부'''
   | pt-br = '''Afetado Por:'''
+
  | no = '''Påvirket av:'''
 +
   | pt-br = '''Afetado por:'''
 
   | ru = '''Влияние:'''
 
   | ru = '''Влияние:'''
 +
  | zh-hans = '''受影响因素:'''
 
   | zh-hant = '''是否有作用:'''
 
   | zh-hant = '''是否有作用:'''
 
   }}
 
   }}
Line 131: Line 144:
 
| <small>&bull;&nbsp;{{Item link|Gunboats}}: {{{gunboats|}}}</small>
 
| <small>&bull;&nbsp;{{Item link|Gunboats}}: {{{gunboats|}}}</small>
 
|-
 
|-
| <small>&bull;&nbsp;[[Jumper{{if lang}}|{{lang
+
| <small>&bull;&nbsp;[[Mini-Crits{{if lang}}|{{common string|hazard-mini-crits}}]]: {{{mini-crits|}}}</small>
  | en = Jumper
 
  | es = Saltadores
 
  | fr = Sauteur
 
  | ko = 점퍼
 
  | ru = Тренировочное
 
  | zh-hant = 跳躍者武器
 
  }}
 
]]: {{{jumpers|}}}<small>
 
|-
 
| <small>&bull;&nbsp;[[Mini-Crits{{if lang}}|{{common strings|hazard-mini-crits}}]]: {{{mini-crits|}}}</small>
 
 
|-
 
|-
| <small>&bull;&nbsp;[[ÜberCharge{{if lang}}|{{common strings|hazard-ubercharge}}]]: {{{uber|}}}</small>
+
| <small>&bull;&nbsp;[[ÜberCharge{{if lang}}|{{common string|hazard-ubercharge}}]]: {{{uber|}}}</small>
 
|}
 
|}
 
|-
 
|-
Line 150: Line 153:
 
   | de = '''Angetroffen auf:'''
 
   | de = '''Angetroffen auf:'''
 
   | es = '''Se halla en:'''
 
   | es = '''Se halla en:'''
   | fr = '''Trouvé Sur:'''
+
   | fr = '''Peut être trouvé sur :'''
   | pl = '''Znaleziono w:'''
+
  | hu = '''Hol talált:'''
 +
   | pl = '''Występowanie:'''
 
   | fi = '''Löytyy:'''
 
   | fi = '''Löytyy:'''
 +
  | ja = '''出現マップ:'''
 
   | ko = '''등장 장소'''
 
   | ko = '''등장 장소'''
   | pt-br = '''Encontrado Em:'''
+
  | no = '''Funnet på:'''
 +
   | pt-br = '''Encontrado em:'''
 
   | ru = '''Расположение:'''
 
   | ru = '''Расположение:'''
 +
  | zh-hans = '''分布:'''
 
   | zh-hant = '''出沒地點:'''
 
   | zh-hant = '''出沒地點:'''
 
   }}
 
   }}
 
| {{{maps|}}}
 
| {{{maps|}}}
 
|}<includeonly>{{lang cat|Environmental hazards}}{{lang cat|Gameplay}}</includeonly><noinclude>
 
|}<includeonly>{{lang cat|Environmental hazards}}{{lang cat|Gameplay}}</includeonly><noinclude>
{{translation switching|ar, cs, da, de, es, fi, fr, hu, it, ja, ko, nl, no, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
+
{{translation switching|en, de, es, fi, fr, hu, ja, ko, no, pl, pt-br, ru, zh-hans, zh-hant}}
 
{{Template doc}}
 
{{Template doc}}
 
[[Category:Infobox templates|Hazard infobox]]
 
[[Category:Infobox templates|Hazard infobox]]
 
</noinclude>
 
</noinclude>

Revision as of 13:40, 13 June 2020

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:
• 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.