Difference between revisions of "Template:Class infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (1) Fixed the issue of no "Meet The Medic" caption; 2) changed the way the title of "Meet The..." is displayed in Polish (until now the name was displayed in Nominative while meant to be in Accusative))
(Added image parameter for both of the 3D viewers to allow for image overrides that aren't the basepagename)
 
(44 intermediate revisions by 28 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 = معلومات مختصرة
 
   | ar = معلومات مختصرة
 
   | cs = Základní informace
 
   | cs = Základní informace
 
   | da = Grundlæggende information
 
   | 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 = 기본 정보
 
   | ko = 기본 정보
 
   | lt = Svarbiausia Info
 
   | lt = Svarbiausia Info
   | nl = Algemene Informatie
+
   | 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ção Básica
+
   | pt-br = Informações básicas
 
   | ro = Informaţii generale
 
   | ro = Informaţii generale
 
   | ru = Основная информация
 
   | ru = Основная информация
 
   | sv = Basfakta
 
   | sv = Basfakta
 
   | tr = Temel Bilgiler
 
   | tr = Temel Bilgiler
   | zh-hans = 基本资讯
+
   | zh-hans = 基础信息
 
   | zh-hant = 基本資訊
 
   | zh-hant = 基本資訊
 
   }}
 
   }}
|-
+
{{!-}}
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Icon:
 
   | ar = رمز:
 
   | ar = رمز:
 
   | cs = Ikona:
 
   | cs = Ikona:
 
   | da = Ikon:
 
   | 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 = 문양:
 
   | ko = 문양:
 
   | lt = Piktograma:
 
   | lt = Piktograma:
Line 53: Line 106:
 
   | ru = Значок:
 
   | ru = Значок:
 
   | sv = Ikon:
 
   | sv = Ikon:
   | tr = Sembol:
+
   | tr = Simge:
   | zh-hans = 图示:
+
   | zh-hans = 图标:
 
   | zh-hant = 圖示:
 
   | zh-hant = 圖示:
 
   }}''' {{!!}} {{{class}}}
 
   }}''' {{!!}} {{{class}}}
Line 60: Line 113:
 
{{#if: {{{type|}}} |
 
{{#if: {{{type|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Type:
 
   | ar = النوع:
 
   | ar = النوع:
 
   | cs = Typ:
 
   | cs = Typ:
 
   | da = Type:
 
   | 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 = 병과 유형:
 
   | ko = 병과 유형:
 
   | lt = Tipas:
 
   | lt = Tipas:
Line 87: Line 141:
 
{{#if: {{{health|}}} |
 
{{#if: {{{health|}}} |
 
{{!}} valign="top" {{!}} '''{{lang
 
{{!}} valign="top" {{!}} '''{{lang
 +
  | en = Health:
 
   | ar = هيلث:
 
   | ar = هيلث:
 
   | cs = Zdraví:
 
   | cs = Zdraví:
 
   | da = Helbred:
 
   | 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 = 체력:
 
   | ko = 체력:
 
   | lt = Sveikata:
 
   | lt = Sveikata:
Line 102: Line 157:
 
   | no = Helse:
 
   | no = Helse:
 
   | pl = Zdrowie:
 
   | pl = Zdrowie:
   | pt = Energia:
+
   | pt = Vida:
   | pt-br = Energia:
+
   | pt-br = Vida:
 
   | ro = Viaţă:
 
   | ro = Viaţă:
 
   | ru = Здоровье:
 
   | ru = Здоровье:
Line 114: Line 169:
 
{{#if: {{{armor|}}} |
 
{{#if: {{{armor|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Armor:
 
   | ar = الدرع:
 
   | ar = الدرع:
 
   | cs = Brnění:
 
   | cs = Brnění:
 
   | da = Rustning:
 
   | 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 = 무장:
 
   | ko = 무장:
 
   | nl = Uitrusting:
 
   | nl = Uitrusting:
Line 129: Line 185:
 
   | pt = Armadura:
 
   | pt = Armadura:
 
   | pt-br = Armadura:
 
   | pt-br = Armadura:
 +
  | ro = Armură:
 
   | ru = Броня:
 
   | ru = Броня:
 
   | sv = Pansar:
 
   | sv = Pansar:
   | tr = Cephane:
+
   | tr = Zırh:
 
   | zh-hans = 装甲:
 
   | zh-hans = 装甲:
 
   | zh-hant = 裝甲:
 
   | zh-hant = 裝甲:
Line 138: Line 195:
 
{{#if: {{{armor-type|}}} |
 
{{#if: {{{armor-type|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
 +
  | en = Armor type:
 
   | ar = نوع الدرع:
 
   | ar = نوع الدرع:
 
   | cs = Druh brnění:
 
   | cs = Druh brnění:
 
   | da = Rustningstype:
 
   | 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 = 무장 유형:
 
   | ko = 무장 유형:
 
   | nl = Uitrustingstype:
 
   | nl = Uitrustingstype:
Line 153: Line 211:
 
   | pt = Tipo de armadura:
 
   | pt = Tipo de armadura:
 
   | pt-br = Tipo de armadura:
 
   | pt-br = Tipo de armadura:
 +
  | ro = Tipul armurii:
 
   | ru = Тип брони:
 
   | ru = Тип брони:
 
   | sv = Pansartyp:
 
   | sv = Pansartyp:
   | tr = Cephane Tipi:
+
   | tr = Zırh tipi:
 
   | zh-hans = 装甲类型:
 
   | zh-hans = 装甲类型:
 
   | zh-hant = 裝甲類型:
 
   | zh-hant = 裝甲類型:
Line 162: Line 221:
 
{{#if: {{{speed|}}} |
 
{{#if: {{{speed|}}} |
 
{{!}} valign="top" {{!}} '''{{lang
 
{{!}} valign="top" {{!}} '''{{lang
 +
  | en = Speed:
 
   | ar = السرعة:
 
   | ar = السرعة:
 
   | cs = Rychlost:
 
   | cs = Rychlost:
 
   | da = Hastighed:
 
   | 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à:
   | ko = 속력:
+
  | ja = 移動速度:
 +
   | ko = 이동 속도:
 
   | lt = Greitis:
 
   | lt = Greitis:
 
   | nl = Snelheid:
 
   | nl = Snelheid:
 
   | no = Fart:
 
   | no = Fart:
   | pl = Prędkość:
+
   | pl = Szybkość:
 
   | pt = Velocidade:
 
   | pt = Velocidade:
 
   | pt-br = Velocidade:
 
   | pt-br = Velocidade:
Line 187: Line 247:
 
   }}''' {{!!}} {{{speed}}}
 
   }}''' {{!!}} {{{speed}}}
 
{{!}}-}}
 
{{!}}-}}
{{#ifexist: File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png |  
+
{{#if:{{#ifexist: File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png|¬}}{{#ifexist: File:{{BASEPAGENAME}}VidSplash.png|¬}} |
! colspan="2" {{!}} {{#switch:{{BASEPAGENAME}}
+
! colspan="2" {{!}} [[Meet the {{BASEPAGENAME}}{{if lang}}|{{lang
| Pyro
+
  | en = Meet the {{Class name|{{BASEPAGENAME}}}}
| #default = <!-- NULL -->
 
| Scout
 
| Soldier
 
| Demoman
 
| Heavy
 
| Engineer
 
| Medic
 
| Sniper
 
| Spy = [[Meet the {{BASEPAGENAME}}{{if lang}}|{{lang
 
 
   | ar = {{Class name|{{BASEPAGENAME}}}} إلتقي ب
 
   | ar = {{Class name|{{BASEPAGENAME}}}} إلتقي ب
   | cs = Meet the {{Class name|{{BASEPAGENAME}}}}
+
   | cs = Poznej {{class name|{{BASEPAGENAME}}}}
 
   | da = Mød {{Class name|{{BASEPAGENAME}}}}en
 
   | da = Mød {{Class name|{{BASEPAGENAME}}}}en
 
   | de = Der {{Class name|{{BASEPAGENAME}}}} stellt sich vor
 
   | de = Der {{Class name|{{BASEPAGENAME}}}} stellt sich vor
  | en = Meet the {{Class name|{{BASEPAGENAME}}}}
 
 
   | es = Conoce al {{Class name|{{BASEPAGENAME}}}}
 
   | es = Conoce al {{Class name|{{BASEPAGENAME}}}}
 
   | fi = Tapaa {{Class name|{{BASEPAGENAME}}}}
 
   | fi = Tapaa {{Class name|{{BASEPAGENAME}}}}
   | it = Meet the {{Class name|{{BASEPAGENAME}}}}
+
   | fr = À la rencontre {{#switch: {{BASEPAGENAME}}
   | ja = Meet the {{Class name|{{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}}}}를 만나다
 
   | ko = {{Class name|{{BASEPAGENAME}}}}를 만나다
 +
  | nl = Ontmoet de {{Class name|{{BASEPAGENAME}}}}
 
   | pl = Poznajcie {{#switch: {{BASEPAGENAME}}
 
   | pl = Poznajcie {{#switch: {{BASEPAGENAME}}
 
         | Scout = Skauta
 
         | Scout = Skauta
Line 219: Line 279:
 
         | Sniper = Snajpera
 
         | Sniper = Snajpera
 
         | Spy = Szpiega}}
 
         | Spy = Szpiega}}
   | pt = Conheça o {{Class name|{{BASEPAGENAME}}}}
+
   | pt = Meet the {{Class name|{{BASEPAGENAME}}}}
   | pt-br = Conheça o {{Class name|{{BASEPAGENAME}}}}
+
   | pt-br = Conheça {{#switch: {{BASEPAGENAME}}| Pyro =| #default =o&nbsp;}}{{Class name|{{BASEPAGENAME}}}}
   | ro = Întâlneşte-l pe {{Class name|{{BASEPAGENAME}}}}
+
   | ro = Cunoaște-l pe {{Class name|{{BASEPAGENAME}}}}
 
   | ru = Представляем класс {{Class name|{{BASEPAGENAME}}}}
 
   | ru = Представляем класс {{Class name|{{BASEPAGENAME}}}}
 
   | sv = Möt {{Class name|{{BASEPAGENAME}}}}en
 
   | sv = Möt {{Class name|{{BASEPAGENAME}}}}en
Line 228: Line 288:
 
   | zh-hant = 專訪{{Class name|{{BASEPAGENAME}}}}
 
   | zh-hant = 專訪{{Class name|{{BASEPAGENAME}}}}
 
   }}]]
 
   }}]]
}}
 
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{BASEPAGENAME}}VidSplash{{if lang | non-en = _{{SUBPAGENAME}}}}.png|300px|link=Meet the {{BASEPAGENAME}}{{if lang}}]]
+
 
 +
{{!}} 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}}
+
{{!}}}<includeonly>{{#switch:{{NAMESPACE}}
 
  | User
 
  | User
 
  | User talk = <!-- null -->&nbsp;
 
  | User talk = <!-- null -->&nbsp;
Line 239: Line 299:
 
   | #default = {{#ifeq:{{BASEPAGENAME}}|Horseless Headless Horsemann|{{#ifeq:{{BASEPAGENAME}}|Ghost||{{lang cat|Classes}}}}|{{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|ar, cs, da, de, es, fi, fr, hu, it, ja, ko, lt, nl, no, pl, pt, pt-br, ro, ru, sv, tr, 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. Please use [[Template:User infobox]] instead.
+
| 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 = 
}}