Difference between revisions of "Template:Class infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (vida => energia as per Valve's official translation.)
(Added image parameter for both of the 3D viewers to allow for image overrides that aren't the basepagename)
 
(74 intermediate revisions by 51 users not shown)
Line 1: Line 1:
{| class="infobox" cellspacing="2" cellpadding="2" style="float: right; clear: right; {{{style|}}}"  
+
{{#switch: {{#ifeq: {{NAMESPACE}} | User | {{#ifeq: {{PAGENAME}} | {{SUBPAGENAME}} | error | normal}} | normal}}
|-
+
| error = <div style="font-size: 150%; color: red;">'''The <nowiki>{{class infobox}}</nowiki> template MUST NOT be used on User pages. Please use [[Template:User infobox]] instead.'''</div>
! colspan="2" style="background-color:#F3A957;" | {{{class-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}
+
| normal
|-
+
| #default =
| align="center" class="image" colspan="2" | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{BASEPAGENAME}}]]
+
 
|-
+
{{{!}} class="infobox" cellspacing="2" cellpadding="2" style="{{lang incomplete|en=float: right; clear:right;|ar=float:left; clear:left;}} {{{style|}}}"  
! colspan="2" | {{lang
+
{{!-}}
 +
! colspan="2" style="background-color:#F3A957;" {{!}} {{{class-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}
 +
{{!-}}
 +
{{!}} align="center" class="image" colspan="2" {{!}} {{#ifexist: File:{{{3d-model|{{BASEPAGENAME}}}}}_RED_3D.jpg
 +
| {{#switch:{{lc:{{{game|}}}}}
 +
  | tfc = {{#invoke:3D viewer advanced|viewer_new
 +
      | 3d-image-1 = {{{view1|{{{3d-model|{{BASEPAGENAME}}}}}_RED}}}
 +
      | 3d-image-2 = {{{view2|{{{3d-model|{{BASEPAGENAME}}}}}_BLU}}}
 +
      | 3d-image-3 = {{{view3|{{{3d-model|{{BASEPAGENAME}}}}}_YELLOW}}}
 +
      | 3d-image-4 = {{{view4|{{{3d-model|{{BASEPAGENAME}}}}}_GREEN}}}
 +
      | 3d-image-5 = {{{view5|{{{3d-model|{{BASEPAGENAME}}}}}_new_RED}}}
 +
      | 3d-image-6 = {{{view6|{{{3d-model|{{BASEPAGENAME}}}}}_new_BLU}}}
 +
      | 3d-image-7 = {{{view7|{{{3d-model|{{BASEPAGENAME}}}}}_new_YELLOW}}}
 +
      | 3d-image-8 = {{{view8|{{{3d-model|{{BASEPAGENAME}}}}}_new_GREEN}}}
 +
      | 3d-viewname-1 = {{{view1name|RED}}} <!-- !TFC TEAMS SHOULD NOT BE TRANSLATED! -->
 +
      | 3d-viewname-2 = {{{view2name|BLU}}}
 +
      | 3d-viewname-3 = {{{view3name|YELLOW}}}
 +
      | 3d-viewname-4 = {{{view4name|GREEN}}}
 +
      | 3d-viewname-5 = {{{view5name|RED {{common string|3d-new}}}}}
 +
      | 3d-viewname-6 = {{{view6name|BLU {{common string|3d-new}}}}}
 +
      | 3d-viewname-7 = {{{view7name|YELLOW {{common string|3d-new}}}}}
 +
      | 3d-viewname-8 = {{{view8name|GREEN {{common string|3d-new}}}}}
 +
      | 3d-button-1 = tfc_red_half
 +
      | 3d-button-2 = tfc_blu_half
 +
      | 3d-button-3 = tfc_yellow_half
 +
      | 3d-button-4 = tfc_green_half
 +
      | 3d-button-5 = tfc_red_half
 +
      | 3d-button-6 = tfc_blu_half
 +
      | 3d-button-7 = tfc_yellow_half
 +
      | 3d-button-8 = tfc_green_half
 +
      | image      = {{{image|{{BASEPAGENAME}}}}}
 +
    }}
 +
  | #default = {{#invoke:3D viewer advanced|viewer_new
 +
      | 3d-image-1 = {{{view1|{{{3d-model|{{BASEPAGENAME}}}}}_RED}}}
 +
      | 3d-image-2 = {{{view2|{{{3d-model|{{BASEPAGENAME}}}}}_BLU}}}
 +
      | 3d-image-3 = {{{view3|{{{3d-model|{{BASEPAGENAME}}}}}_ÜberCharged_RED}}}
 +
      | 3d-image-4 = {{{view4|{{{3d-model|{{BASEPAGENAME}}}}}_ÜberCharged_BLU}}}
 +
      | 3d-viewname-1 = {{{view1name|{{common string|RED}}}}}
 +
      | 3d-viewname-2 = {{{view2name|{{common string|BLU}}}}}
 +
      | 3d-viewname-3 = {{{view3name|{{common string|Ubercharge}}}}}
 +
      | 3d-viewname-4 = {{{view4name|{{common string|Ubercharge}}}}}
 +
      | 3d-button-1 = red
 +
      | 3d-button-2 = blu
 +
      | 3d-button-3 = red
 +
      | 3d-button-4 = blu
 +
      | image      = {{{image|{{BASEPAGENAME}}}}}
 +
    }}
 +
  }}
 +
| [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{{class-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}]]
 +
}}
 +
{{!-}}
 +
! colspan="2" {{!}} {{lang
 +
  | en = Basic Information
 +
  | ar = معلومات مختصرة
 +
  | cs = Základní informace
 +
  | da = Grundlæggende information
 
   | 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 = Alapvető információk
 
   | it = Informazioni di base
 
   | it = Informazioni di base
 +
  | ja = 基本情報
 +
  | ko = 기본 정보
 
   | lt = Svarbiausia Info
 
   | lt = Svarbiausia Info
 +
  | nl = Basisinformatie
 
   | no = Generell informasjon
 
   | no = Generell informasjon
 
   | pl = Podstawowe informacje
 
   | pl = Podstawowe informacje
   | pt = Informação Básica
+
   | pt = Informação básica
 +
  | pt-br = Informações básicas
 +
  | ro = Informaţii generale
 +
  | ru = Основная информация
 
   | sv = Basfakta
 
   | sv = Basfakta
   | ru = Основная информация
+
   | tr = Temel Bilgiler
  | ro = Informaţii generale
+
   | zh-hans = 基础信息
   | zh-hans = 基本资讯
 
 
   | zh-hant = 基本資訊
 
   | zh-hant = 基本資訊
 
   }}
 
   }}
|-
+
{{!-}}
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Icon:
 +
  | ar = رمز:
 +
  | cs = Ikona:
 +
  | da = Ikon:
 
   | de = Symbol:
 
   | de = Symbol:
  | en = Icon:
 
 
   | es = Icono:
 
   | es = Icono:
 
   | fi = Ikoni:
 
   | fi = Ikoni:
   | fr = Icône:
+
   | fr = Icône :
 
   | hu = Ikon:
 
   | hu = Ikon:
 
   | it = Icona:
 
   | it = Icona:
 +
  | ja = アイコン:
 +
  | ko = 문양:
 
   | lt = Piktograma:
 
   | lt = Piktograma:
 +
  | nl = Symbool:
 
   | no = Symbol:
 
   | no = Symbol:
 
   | pl = Ikona:
 
   | pl = Ikona:
 
   | pt = Ícone:
 
   | pt = Ícone:
 +
  | pt-br = Ícone:
 +
  | ro = Pictogramă:
 +
  | ru = Значок:
 
   | sv = Ikon:
 
   | sv = Ikon:
   | ru = Значок:
+
   | tr = Simge:
  | ro = Pictogramă:
+
   | zh-hans = 图标:
   | zh-hans = 图示:
 
 
   | zh-hant = 圖示:
 
   | zh-hant = 圖示:
 
   }}''' {{!!}} {{{class}}}
 
   }}''' {{!!}} {{{class}}}
Line 46: Line 113:
 
{{#if: {{{type|}}} |
 
{{#if: {{{type|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Type:
 +
  | ar = النوع:
 +
  | cs = Typ:
 +
  | da = Type:
 
   | de = Typ:
 
   | de = Typ:
  | en = Type:
 
 
   | es = Tipo:
 
   | es = Tipo:
 
   | fi = Tyyppi:
 
   | fi = Tyyppi:
   | fr = Type:
+
   | fr = Type :
 
   | hu = Típus:
 
   | hu = Típus:
 
   | it = Tipo:
 
   | it = Tipo:
 +
  | ja = タイプ:
 +
  | ko = 병과 유형:
 
   | lt = Tipas:
 
   | lt = Tipas:
 +
  | nl = Type:
 
   | no = Type:
 
   | no = Type:
 
   | pl = Typ:
 
   | pl = Typ:
 
   | pt = Tipo:
 
   | pt = Tipo:
 +
  | pt-br = Tipo:
 +
  | ro = Tip:
 +
  | ru = Тип:
 
   | sv = Typ:
 
   | sv = Typ:
   | ru = Тип:
+
   | tr = Tür:
  | ro = Tip:
 
 
   | zh-hans = 类型:
 
   | zh-hans = 类型:
 
   | zh-hant = 類型:
 
   | zh-hant = 類型:
Line 66: Line 141:
 
{{#if: {{{health|}}} |
 
{{#if: {{{health|}}} |
 
{{!}} valign="top" {{!}} '''{{lang
 
{{!}} valign="top" {{!}} '''{{lang
 +
  | en = Health:
 +
  | ar = هيلث:
 +
  | cs = Zdraví:
 +
  | da = Helbred:
 
   | de = Gesundheit:
 
   | de = Gesundheit:
  | en = Health:
 
 
   | es = Salud:
 
   | es = Salud:
 
   | fi = Terveys:
 
   | fi = Terveys:
   | fr = Points de vie:
+
   | fr = Points de vie :
 
   | hu = Életerő:
 
   | hu = Életerő:
 
   | it = Salute:
 
   | it = Salute:
 +
  | ja = ヘルス:
 +
  | ko = 체력:
 
   | lt = Sveikata:
 
   | lt = Sveikata:
 +
  | nl = Gezondheid:
 
   | no = Helse:
 
   | no = Helse:
 
   | pl = Zdrowie:
 
   | pl = Zdrowie:
   | pt = Energia:
+
   | pt = Vida:
 +
  | pt-br = Vida:
 +
  | ro = Viaţă:
 +
  | ru = Здоровье:
 
   | sv = Hälsa:
 
   | sv = Hälsa:
   | ru = Здоровье:
+
   | tr = Sağlık:
  | ro = Viaţă:
 
 
   | zh-hans = 生命值:
 
   | zh-hans = 生命值:
 
   | zh-hant = 生命值:
 
   | zh-hant = 生命值:
Line 86: Line 169:
 
{{#if: {{{armor|}}} |
 
{{#if: {{{armor|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Armor:
 +
  | ar = الدرع:
 +
  | cs = Brnění:
 +
  | da = Rustning:
 
   | de = Rüstung:
 
   | de = Rüstung:
  | en = Armor:
 
 
   | es = Armadura:
 
   | es = Armadura:
   | fr = Armure:
+
   | fr = Armure :
 
   | hu = Páncél:
 
   | hu = Páncél:
 
   | it = Armatura:
 
   | it = Armatura:
 +
  | ja = アーマー:
 +
  | ko = 무장:
 +
  | nl = Uitrusting:
 
   | no = Armor:
 
   | no = Armor:
 
   | pl = Pancerz:
 
   | pl = Pancerz:
 +
  | pt = Armadura:
 +
  | pt-br = Armadura:
 +
  | ro = Armură:
 +
  | ru = Броня:
 
   | sv = Pansar:
 
   | sv = Pansar:
 +
  | tr = Zırh:
 
   | zh-hans = 装甲:
 
   | zh-hans = 装甲:
 
   | zh-hant = 裝甲:
 
   | zh-hant = 裝甲:
Line 101: Line 195:
 
{{#if: {{{armor-type|}}} |
 
{{#if: {{{armor-type|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Armor type:
 +
  | ar = نوع الدرع:
 +
  | cs = Druh brnění:
 +
  | da = Rustningstype:
 
   | de = Rüstungs-Typ:
 
   | de = Rüstungs-Typ:
  | en = Armor type:
 
 
   | es = Tipo de armadura:
 
   | es = Tipo de armadura:
   | fr = Type d'armure:
+
   | fr = Type d'armure :
 
   | hu = Páncéltípus:
 
   | hu = Páncéltípus:
 
   | it = Tipo di Armatura:
 
   | it = Tipo di Armatura:
 +
  | ja = アーマーの種類:
 +
  | ko = 무장 유형:
 +
  | nl = Uitrustingstype:
 
   | no = Armor type:
 
   | no = Armor type:
 +
  | pl = Typ pancerza:
 +
  | pt = Tipo de armadura:
 +
  | pt-br = Tipo de armadura:
 +
  | ro = Tipul armurii:
 +
  | ru = Тип брони:
 
   | sv = Pansartyp:
 
   | sv = Pansartyp:
   | pl = Typ pancerza:
+
   | tr = Zırh tipi:
 
   | zh-hans = 装甲类型:
 
   | zh-hans = 装甲类型:
 
   | zh-hant = 裝甲類型:
 
   | zh-hant = 裝甲類型:
Line 116: Line 221:
 
{{#if: {{{speed|}}} |
 
{{#if: {{{speed|}}} |
 
{{!}} valign="top" {{!}} '''{{lang
 
{{!}} valign="top" {{!}} '''{{lang
 +
  | en = Speed:
 +
  | ar = السرعة:
 +
  | cs = Rychlost:
 +
  | da = Hastighed:
 
   | de = Geschwindigkeit:
 
   | de = Geschwindigkeit:
  | en = Speed:
 
 
   | es = Velocidad:
 
   | es = Velocidad:
 
   | fi = Nopeus:
 
   | fi = Nopeus:
   | fr = Vitesse:
+
   | fr = Vitesse :
 
   | hu = Sebesség:
 
   | hu = Sebesség:
 
   | it = Velocità:
 
   | it = Velocità:
 +
  | ja = 移動速度:
 +
  | ko = 이동 속도:
 
   | lt = Greitis:
 
   | lt = Greitis:
 +
  | nl = Snelheid:
 
   | no = Fart:
 
   | no = Fart:
   | pl = Prędkość:
+
   | pl = Szybkość:
 
   | pt = Velocidade:
 
   | pt = Velocidade:
 +
  | pt-br = Velocidade:
 +
  | ro = Viteză:
 +
  | ru = Скорость:
 
   | sv = Fart:
 
   | sv = Fart:
   | ru = Скорость:
+
   | tr = Hız:
  | ro = Viteză:
 
 
   | zh-hans = 移动速度:
 
   | zh-hans = 移动速度:
 
   | zh-hant = 移動速度:
 
   | zh-hant = 移動速度:
 
   }}''' {{!!}} {{{speed}}}
 
   }}''' {{!!}} {{{speed}}}
 
{{!}}-}}
 
{{!}}-}}
|}<includeonly>{{#switch:{{NAMESPACE}}
+
{{#if:{{#ifexist: File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png|¬}}{{#ifexist: File:{{BASEPAGENAME}}VidSplash.png|¬}} |
 +
! colspan="2" {{!}} [[Meet the {{BASEPAGENAME}}{{if lang}}|{{lang
 +
  | en = Meet the {{Class name|{{BASEPAGENAME}}}}
 +
  | ar = {{Class name|{{BASEPAGENAME}}}} إلتقي ب
 +
  | cs = Poznej {{class name|{{BASEPAGENAME}}}}
 +
  | da = Mød {{Class name|{{BASEPAGENAME}}}}en
 +
  | de = Der {{Class name|{{BASEPAGENAME}}}} stellt sich vor
 +
  | es = Conoce al {{Class name|{{BASEPAGENAME}}}}
 +
  | fi = Tapaa {{Class name|{{BASEPAGENAME}}}}
 +
  | fr = À la rencontre {{#switch: {{BASEPAGENAME}}
 +
        | Scout = du Scout
 +
        | Soldier = du Soldier
 +
        | Pyro = du Pyro
 +
        | Demoman = du Demoman
 +
        | Heavy = du Heavy
 +
        | Engineer = de l'Engineer
 +
        | Medic = du Medic
 +
        | Sniper = du Sniper
 +
        | Spy = du Spy}}
 +
  | hu = Találkozás a {{Class name|{{BASEPAGENAME}}}}
 +
  | ko = {{Class name|{{BASEPAGENAME}}}}를 만나다
 +
  | nl = Ontmoet de {{Class name|{{BASEPAGENAME}}}}
 +
  | pl = Poznajcie {{#switch: {{BASEPAGENAME}}
 +
        | Scout = Skauta
 +
        | Soldier = Żołnierza
 +
        | Pyro = Pyro
 +
        | Demoman = Demomana
 +
        | Heavy = Grubego
 +
        | Engineer = Inżyniera
 +
        | Medic = Medyka
 +
        | Sniper = Snajpera
 +
        | Spy = Szpiega}}
 +
  | pt = Meet the {{Class name|{{BASEPAGENAME}}}}
 +
  | pt-br = Conheça {{#switch: {{BASEPAGENAME}}| Pyro =| #default =o&nbsp;}}{{Class name|{{BASEPAGENAME}}}}
 +
  | ro = Cunoaște-l pe {{Class name|{{BASEPAGENAME}}}}
 +
  | ru = Представляем класс {{Class name|{{BASEPAGENAME}}}}
 +
  | sv = Möt {{Class name|{{BASEPAGENAME}}}}en
 +
  | tr = {{Class name|{{BASEPAGENAME}}}} ile Tanışın
 +
  | zh-hans = 拜见{{Class name|{{BASEPAGENAME}}}}
 +
  | zh-hant = 專訪{{Class name|{{BASEPAGENAME}}}}
 +
  }}]]
 +
{{!}}-
 +
 
 +
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{BASEPAGENAME}}VidSplash{{#ifexist: File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png|{{if lang | non-en = _{{SUBPAGENAME}}}}}}.png|300px|link=Meet the {{BASEPAGENAME}}{{if lang}}]] <!-- If File:DemomanVidSplash_ru.png exists, it is used. Otherwise, File:DemomanVidSplash.png is used. -->
 +
{{!}}- }}
 +
{{!}}}<includeonly>{{#switch:{{NAMESPACE}}
 
  | User
 
  | User
 
  | User talk = <!-- null -->&nbsp;
 
  | User talk = <!-- null -->&nbsp;
 
  | #default = {{#switch:{{lc:{{{game|}}}}}
 
  | #default = {{#switch:{{lc:{{{game|}}}}}
 
   | tfc = {{lang cat|Classes (Classic)}}{{lang cat|1={{BASEPAGENAME}}}}
 
   | tfc = {{lang cat|Classes (Classic)}}{{lang cat|1={{BASEPAGENAME}}}}
   | #default = {{#ifeq:{{BASEPAGENAME}}|Horseless Headless Horsemann||{{lang cat|Classes}}}}
+
   | #default = {{#ifeq:{{BASEPAGENAME}}|Horseless Headless Horsemann|{{#ifeq:{{BASEPAGENAME}}|Ghost||{{lang cat|Classes}}}}|{{lang cat|Classes}}}}
 
   }}
 
   }}
  }}</includeonly><noinclude>{{clr}}
+
  }}</includeonly>
 +
 
 +
}}<noinclude>{{clr}}
  
{{translation switching|de, es, fi, fr, hu, it, lt, no, pl, pt, sv, ru, ro, zh-hans, zh-hant}}
+
{{translation switching|en, ar, cs, da, de, es, fr, hu, ko, nl, pl, pt, pt-br, ro, ru, sv, tr, zh-hans, zh-hant}}
 
{{Ambox
 
{{Ambox
 
| type    = style
 
| type    = style
 
| image    = Warning_yellow.png
 
| image    = Warning_yellow.png
| contents = This template '''MUST''' not be used on User pages.
+
| contents = This template '''MUST NOT''' be used on User pages. Please use [[Template:User infobox]] instead.
 
}}
 
}}
 
{{Template doc}}
 
{{Template doc}}
 
[[Category:Infobox templates|Class infobox]]
 
[[Category:Infobox templates|Class infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:01, 27 November 2024

Class infobox
Class infobox
Basic Information

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

Usage

{{Class infobox
| game =
| class-name-override = 
| image = 
| imagewidth =
| 3d-model = 
| class = 
| type = 
| health = 
| armor = 
| armor-type = 
| speed = 
}}