Difference between revisions of "Template:Class infobox"

From Team Fortress Wiki
Jump to: navigation, search
(Added Danish)
(Added check to prevent this template from being used in user pages (Which means no more template purging. Ever. Wee!))
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" | {{#ifexist: File:{{BASEPAGENAME}}_RED_3D.jpg
+
 
 +
{{{!}} class="infobox" cellspacing="2" cellpadding="2" style="float: right; clear: right; {{{style|}}}"  
 +
{{!-}}
 +
! colspan="2" style="background-color:#F3A957;" {{!}} {{{class-name-override|{{{NAME|{{{name|{{{title|{{BASEPAGENAME}}}}}}}}}}}}}}
 +
{{!-}}
 +
{{!}} align="center" class="image" colspan="2" {{!}} {{#ifexist: File:{{BASEPAGENAME}}_RED_3D.jpg
 
   | {{3D Team Viewer
 
   | {{3D Team Viewer
 
       | image-0={{{image}}}
 
       | image-0={{{image}}}
Line 14: Line 19:
 
   | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{BASEPAGENAME}}]]
 
   | [[File:{{{image|Screenshot needed.png}}}|{{{imagewidth|300px}}}|alt={{BASEPAGENAME}}]]
 
   }}
 
   }}
|-
+
{{!-}}
! colspan="2" | {{lang
+
! colspan="2" {{!}} {{lang
 
   | en = Basic Information
 
   | en = Basic Information
 
   | ar = معلومات مختصرة
 
   | ar = معلومات مختصرة
Line 40: Line 45:
 
   | zh-hant = 基本資訊
 
   | zh-hant = 基本資訊
 
   }}
 
   }}
|-
+
{{!-}}
 
{{#if: {{{class|}}} |
 
{{#if: {{{class|}}} |
 
{{!}} '''{{lang
 
{{!}} '''{{lang
Line 245: Line 250:
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{BASEPAGENAME}}VidSplash{{{meetthe-suffix|}}}{{if lang | non-en = _{{SUBPAGENAME}}}}.png|300px|link=Meet the {{BASEPAGENAME}}{{if lang}}]]
 
{{!}} colspan="2" style="text-align:center;" {{!}} [[File:{{BASEPAGENAME}}VidSplash{{{meetthe-suffix|}}}{{if lang | non-en = _{{SUBPAGENAME}}}}.png|300px|link=Meet the {{BASEPAGENAME}}{{if lang}}]]
 
{{!}}- }}
 
{{!}}- }}
|}<includeonly>{{#switch:{{NAMESPACE}}
+
{{!}}}<includeonly>{{#switch:{{NAMESPACE}}
 
  | User
 
  | User
 
  | User talk = <!-- null -->&nbsp;
 
  | User talk = <!-- null -->&nbsp;
Line 252: Line 257:
 
   | #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|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}}
Line 258: Line 265:
 
| 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>

Revision as of 20:55, 23 November 2012

Class infobox
Class infobox
Basic Information

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

Usage

{{Infobox class
| class-name-override = 
| image = 
| imagewidth = 
| class = 
| type = 
| health = 
| armor = 
| armor-type = 
| speed = 
}}