Difference between revisions of "Template:Hazard infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (double derp)
(Add 3D viewer)
 
(53 intermediate revisions by 33 users not shown)
Line 1: Line 1:
<noinclude>{{Needlang}}</noinclude>
+
{| class="infobox" cellspacing="2" cellpadding="2" width="300px" style="{{lang incomplete|en=float: right; clear:right;|ar=float:left; clear:left;}} {{{style|}}}"
{| class="infobox" cellspacing="2" cellpadding="2" width="300px" style="float: right; clear: right; {{{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}}}}}}}}}}}}}}
 
|-
 
|-
| align="center" class="image" colspan="2" | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{BASEPAGENAME}}]]
+
| align="center" class="image" colspan="2" | {{#if: {{{3d-image-1|}}}
 +
  | {{#invoke:3D viewer advanced|viewer_new}}
 +
  | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{BASEPAGENAME}}]]
 +
  }}
 
|-
 
|-
{{#ifeq:{{Icon killicon|weapon = {{lc:{{{kill-icon-1|{{BASEPAGENAME}}}}}}}}}|NONE|{{ns:0}}|
+
{{#if:{{{hide-kill-icon|}}}
 +
| {{ns:0}}<!-- Ignore all of this if 'hide-kill-icon' is set to anything. -->
 +
| {{#switch:{{Icon killicon|weapon={{lc:{{{kill-icon-1|{{BASEPAGENAME}}}}}}}}}
 +
  | none | NONE = {{ns:0}}<!-- If the killicon doesn't exist at the right spot (i.e. exact article title), hide it. -->
 +
  | #default =
 
! colspan="2" {{!}} {{lang
 
! colspan="2" {{!}} {{lang
   | ar = كيل أيكون{{#if:{{{kill-icon-2|}}}|s}}
+
   | en = {{#if:{{{kill-icon-2|}}}|Kill Icons|Kill Icon}}
   | cs = {{#if:{{{kill-icon-2|}}}|Ikony|Ikona}} při zabití
+
  | ar = كيل أيكون
   | da = Drabsikon{{#if:{{{kill-icon-2|}}}|er}}
+
   | cs = {{#if:{{{kill-icon-2|}}}|Ikony při zabití|Ikona při zabití}}  
 +
   | da = {{#if:{{{kill-icon-2|}}}|Drabsikoner|Drabsikon}}
 
   | de = {{#if:{{{kill-icon-2|}}}|Bilder|Bild}}
 
   | de = {{#if:{{{kill-icon-2|}}}|Bilder|Bild}}
   | es = Icono{{#if:{{{kill-icon-2|}}}|s}} de Muerte
+
   | es = {{#if:{{{kill-icon-2|}}}|Iconos de muerte|Icono de muerte}}
  | en = Kill Icon{{#if:{{{kill-icon-2|}}}|s}}
+
   | fi = {{#if:{{{kill-icon-2|}}}|Tappokuvakkeet|Tappokuvake}}
   | fi = Tappokuvake{{#if:{{{kill-icon-2|}}}|t}}
+
   | fr = {{#if:{{{kill-icon-2|}}}|Icônes de Frag|Icône de Frag}}
   | fr = Icône{{#if:{{{kill-icon-2|}}}|s}} de Frag
+
   | hu = {{#if:{{{kill-icon-2|}}}|Ölési ikonok|Ölési ikon}}
   | hu = Ölés ikon{{#if:{{{kill-icon-2|}}}|s}}
+
   | it = {{#if:{{{kill-icon-2|}}}|Icone|Icona}} di Morte
   | it = {{#if:{{{kill-icon-2|}}}|Icone|Icona}} di morte
 
 
   | ja = キルアイコン
 
   | ja = キルアイコン
   | ko = 사살 표시{{#if:{{{kill-icon-2|}}}|s}}
+
   | ko = 처치 표시
   | nl = Doodsicoon{{#if:{{{kill-icon-2|}}}|s}}
+
   | nl = {{#if:{{{kill-icon-2|}}}|Doodsicoons|Doodsicoon}}
   | no = Draps Ikon{{#if:{{{kill-icon-2|}}}|s}}
+
   | no = {{#if:{{{kill-icon-2|}}}|Drapsikoner|Drapsikon}}
   | pl = Ikon{{#if:{{{kill-icon-2|}}}|y|a}} zabicia
+
   | pl = {{#if:{{{kill-icon-2|}}}|Ikony zabicia|Ikona zabicia}}
   | pt = Ícone de Morte{{#if:{{{kill-icon-2|}}}|s}}
+
   | pt = {{#if:{{{kill-icon-2|}}}|Ícone de Mortes|Ícone de Morte}}
   | pt-br = Ícone de Morte{{#if:{{{kill-icon-2|}}}|s}}
+
   | pt-br = {{#if:{{{kill-icon-2|}}}|Ícones de morte|Ícone de morte}}
   | ro = Pictogram{{#if:{{{kill-icon-2|}}}|e|ă}}
+
   | ro = {{#if:{{{kill-icon-2|}}}|Pictograme|Pictogramă}}
 
   | ru = {{#if:{{{kill-icon-2|}}}|Иконки убийств|Иконка убийства}}
 
   | ru = {{#if:{{{kill-icon-2|}}}|Иконки убийств|Иконка убийства}}
   | sv = Dödsikon{{#if:{{{kill-icon-2|}}}|s}}
+
   | sv = {{#if:{{{kill-icon-2|}}}|Dödsikoner|Dödsikon}}
   | zh-hans = 杀人图标{{#if:{{{kill-icon-2|}}}}}
+
   | tr = {{#if:{{{kill-icon-2|}}}|Öldürme Simgesis|Öldürme Simgesi}}
   | zh-hant = 殺人圖示{{#if:{{{kill-icon-2|}}}}}
+
   | zh-hans = {{#if:{{{kill-icon-2|}}}|击杀图标|击杀图标}}
 +
  | 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|}}}
 +
  | {{kill notice|weapon={{lc:{{{kill-icon-2|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-2|}}}}}
 +
  }}{{#if:{{{kill-icon-3|}}}
 +
  | {{kill notice|weapon={{lc:{{{kill-icon-3|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-3|}}}}}
 +
  }}{{#if:{{{kill-icon-4|}}}
 +
  | {{kill notice|weapon={{lc:{{{kill-icon-4|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-4|}}}}}
 +
  }}{{#if:{{{kill-icon-5|}}}
 +
  | {{kill notice|weapon={{lc:{{{kill-icon-5|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-5|}}}}}
 +
  }}{{#if:{{{kill-icon-6|}}}
 +
  | {{kill notice|weapon={{lc:{{{kill-icon-6|{{BASEPAGENAME}}}}}}}|kill-text={{{kill-text-6|}}}}}
 +
  }}
 +
{{!}}-
 +
}}
 
! colspan="2" | {{lang
 
! colspan="2" | {{lang
 +
  | en = Basic Information
 
   | ar = معلومات مختصرة
 
   | ar = معلومات مختصرة
 
   | cs = Základní informace
 
   | cs = Základní informace
 
   | de = Grundinformationen
 
   | de = Grundinformationen
  | en = Basic Information
+
   | es = Información básica
   | es = Información Básica
 
 
   | fi = Perustiedot  
 
   | fi = Perustiedot  
 
   | fr = Informations de base
 
   | fr = Informations de base
 
   | hu = Infó
 
   | hu = Infó
 
   | it = Informazioni di base
 
   | it = Informazioni di base
 +
  | ja = 基本情報
 
   | ko = 기본 정보
 
   | ko = 기본 정보
   | lt = Svarbiausia Info
+
   | nl = Algemene Informatie
 
   | no = Generell informasjon
 
   | no = Generell informasjon
  | nl = Algemene Informatie
 
 
   | 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
 +
  | ro = Informaţii de bază
 +
  | ru = Основная информация
 
   | sv = Basfakta
 
   | sv = Basfakta
  | ru = Основная информация
+
   | zh-hans = 基础信息
  | ro = Informaţii generale
 
   | zh-hans = 基本资讯
 
 
   | zh-hant = 基本資訊
 
   | zh-hant = 基本資訊
 
   }}
 
   }}
 
|-
 
|-
{{#ifeq: {{BASEPAGENAME}} | Horseless Headless Horsemann |  
+
{{#if: {{{health|}}} |
{{!}} valign="top" {{!}} '''Health:'''
+
{{!}} valign="top" {{!}} {{lang
 +
  | en = '''Health:'''
 +
  | cs = '''Zdraví:'''
 +
  | de = '''Gesundheit:'''
 +
  | es = '''Salud:'''
 +
  | fi = '''Terveys:'''
 +
  | fr = '''Santé :'''
 +
  | hu = '''Életerő:'''
 +
  | ja = '''ヘルス値'''
 +
  | ko = '''체력'''
 +
  | no = '''Helse:'''
 +
  | pl = '''Zdrowie:'''
 +
  | pt-br = '''Vida:'''
 +
  | ro = '''Viață:'''
 +
  | ru = '''Здоровье:'''
 +
  | zh-hans = '''生命值:'''
 +
  | zh-hant = '''生命值:'''
 +
  }}
 
{{!}} {{{health|}}}
 
{{!}} {{{health|}}}
{{!}}- | }}
+
{{!}}-
| valign="top" | '''Damage Done:'''
+
| }}
 +
| valign="top" | {{lang
 +
  | en = '''Damage Done:'''
 +
  | cs = '''Udělené poškození:'''
 +
  | de = '''Verursachter Schaden:'''
 +
  | es = '''Daño infligido:'''
 +
  | fi = '''Aiheutettu vahinko'''
 +
  | fr = '''Dégâts infligés :'''
 +
  | hu = '''Sebzés:'''
 +
  | ja = '''攻撃力'''
 +
  | ko = '''피해'''
 +
  | no = '''Skade gitt:'''
 +
  | pl = '''Zadawane obrażenia:'''
 +
  | pt-br = '''Dano feito:'''
 +
  | ro = '''Pagube făcute:'''
 +
  | ru = '''Наносимый урон:'''
 +
  | zh-hans = '''造成伤害:'''
 +
  | zh-hant = '''造成傷害:'''
 +
  }}
 
| {{{damage|}}}
 
| {{{damage|}}}
 
|-
 
|-
| valign="top" | '''Affected By:'''
+
| valign="top" | {{lang
 +
  | en = '''Affected By:'''
 +
  | cs = '''Ovlivnění:'''
 +
  | de = '''Beeinträchtigt durch:'''
 +
  | es = '''Afectado por:'''
 +
  | fi = '''Vaikuttaa:'''
 +
  | fr = '''Affecté par :'''
 +
  | hu = '''Befolyásolva:'''
 +
  | ja = '''次の影響を受けるか否か'''
 +
  | ko = '''영향 여부'''
 +
  | no = '''Påvirket av:'''
 +
  | pl = '''Podatny na:'''
 +
  | pt-br = '''Afetado por:'''
 +
  | ro = '''Afectat de:'''
 +
  | ru = '''Влияние:'''
 +
  | zh-hans = '''受影响因素:'''
 +
  | zh-hant = '''是否有作用:'''
 +
  }}
 
|  
 
|  
 
{| cellpadding="0" cellspacing="0"
 
{| cellpadding="0" cellspacing="0"
Line 80: Line 152:
 
| <small>&bull;&nbsp;{{Item link|Gunboats}}: {{{gunboats|}}}</small>
 
| <small>&bull;&nbsp;{{Item link|Gunboats}}: {{{gunboats|}}}</small>
 
|-
 
|-
| <small>&bull;&nbsp;[[Jumper|Jumpers]]: {{{jumpers|}}}<small>
+
| <small>&bull;&nbsp;[[Mini-Crits{{if lang}}|{{common string|hazard-mini-crits}}]]: {{{mini-crits|}}}</small>
 
|-
 
|-
| <small>&bull;&nbsp;[[Mini-Crits]]: {{{mini-crits|}}}</small>
+
| <small>&bull;&nbsp;[[ÜberCharge{{if lang}}|{{common string|hazard-ubercharge}}]]: {{{uber|}}}</small>
|-
 
| <small>&bull;&nbsp;[[ÜberCharge]]: {{{uber|}}}</small>
 
 
|}
 
|}
 
|-
 
|-
| valign="top" | '''Found On:'''
+
| valign="top" | {{lang
 +
  | en = '''Found On:'''
 +
  | cs = '''Nachází se na:'''
 +
  | de = '''Angetroffen auf:'''
 +
  | es = '''Encontrado en:'''
 +
  | fi = '''Löytyy:'''
 +
  | fr = '''Peut être trouvé sur :'''
 +
  | hu = '''Hol talált:'''
 +
  | ja = '''出現マップ:'''
 +
  | ko = '''등장 장소'''
 +
  | no = '''Funnet på:'''
 +
  | pl = '''Występowanie:'''
 +
  | pt-br = '''Encontrado em:'''
 +
  | ro = '''Găsit pe:''
 +
  | ru = '''Расположение:'''
 +
  | zh-hans = '''分布:'''
 +
  | zh-hant = '''出沒地點:'''
 +
  }}
 
| {{{maps|}}}
 
| {{{maps|}}}
|}
+
|}<includeonly>{{lang cat|Environmental hazards}}{{lang cat|Gameplay}}</includeonly><noinclude>
<includeonly>[[Category:Environmental hazards]][[Category:Gameplay]]</includeonly>
+
{{translation switching|en, cs, de, es, fi, fr, hu, ja, ko, no, pl, pt-br, ro, ru, zh-hans, zh-hant}}
<noinclude>{{clr}}
 
 
 
{{translation switching|}}
 
 
{{Template doc}}
 
{{Template doc}}
[[Category:Infobox templates|Hazard infobox]]</noinclude>
+
[[Category:Infobox templates|Hazard infobox]]
 +
</noinclude>

Latest revision as of 21:51, 15 March 2024

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.