Difference between revisions of "Template:Pickup infobox"

From Team Fortress Wiki
Jump to: navigation, search
m (Add 3D viewer)
 
(28 intermediate revisions by 23 users not shown)
Line 1: Line 1:
{| class="infobox" width="214px"
+
{| class="infobox" width="150px"
! colspan="2" | {{{pickup-name-override|{{BASEPAGENAME}}}}}
+
! colspan="2" style="background-color:#F3A957;" | {{{pickup-name-override|{{{NAME|{{{name|{{BASEPAGENAME}}}}}}}}}}}
 
|-
 
|-
 
| colspan=2 style="text-align:center;" |
 
| colspan=2 style="text-align:center;" |
{{{!}}width="100%" class="transparent"
+
{{{!}} width="100%" class="transparent"
{{!}} style="margin: 0 auto;"{{!}}[[Image:{{{pickup-image|Screenshot needed.png}}}|214px|{{BASEPAGENAME}} image]]<br>
+
{{!}} style="margin: 0 auto;" {{!}} {{#if: {{{3d-image-1|}}}
 +
  | {{#invoke:3D viewer advanced|viewer_new}}
 +
  | [[File:{{{image|{{{pickup-image|Screenshot needed.png}}}}}}|{{{imagewidth|150px}}}|alt={{BASEPAGENAME}}]]<br>
 +
  }}
 
{{!}}}
 
{{!}}}
 
|-
 
|-
 
| '''{{lang
 
| '''{{lang
 +
  | ar = نوع بيك أب:
 
   | de = Art:
 
   | de = Art:
 +
  | da = Type:
 
   | en = Pickup Type:
 
   | en = Pickup Type:
 +
  | es = Tipo de recogida:
 +
  | fi = Poimittavan esineen tyyppi:
 +
  | fr = Type de recharge
 +
  | hu = Típus:
 +
  | it = Tipo di raccolta:
 +
  | ja = 種類
 +
  | ko = 보급품 종류
 +
  | nl = Opraap type:
 
   | pl = Typ znajdźki:
 
   | pl = Typ znajdźki:
 
   | pt = Tipo de coletável:
 
   | pt = Tipo de coletável:
   | ru = Тип:
+
  | pt-br = Tipo de coletável:
   }}''' || {{{pickup-type}}}
+
   | ru = Внутри могут находиться:
|}<includeonly>{{lang cat|Pickups}}</includeonly><noinclude>
+
  | sv = Uppplockningstyp:
 +
  | tr = Tedarik Türü:
 +
  | zh-hans = 拾取物类型:
 +
  | zh-hant = 撿取類型:
 +
   }}''' || {{{type|{{{pickup-type}}}}}}
 +
|}<includeonly>{{#switch:{{lc:{{{game|}}}}}
 +
| tfc = {{lang cat|Pickups (Classic)}}
 +
| tf2 | #default = {{lang cat|Pickups}}
 +
}}</includeonly><noinclude>
 
{{clr}}
 
{{clr}}
{{translation switching|de, pl, pt, ru}}
+
{{translation switching|en, ar, da, de, es, fi, fr, hu, it, ja, ko, nl, pl, pt, pt-br, ru, sv, tr, zh-hans, zh-hant}}
 
{{Template doc}}
 
{{Template doc}}
 
[[Category:Infobox templates|Pickup infobox]]
 
[[Category:Infobox templates|Pickup infobox]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:44, 3 May 2024

Pickup infobox
Pickup infobox
Pickup Type: {{{pickup-type}}}

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

This template adds in information box to articles on pickups. It adds pages to Category:Pickups.

Usage

{{Pickup infobox
| name = (Only use this if the game is TFC)
| game = 
| image = 
| 3d-image-n = 
| 3d-button-n = 
| 3d-viewname-n = 
| type =
}}

Parameters

Parameter Required? Function
name No The name of the pickup if it is anything other than the page name. Use this on translated articles.
game No Team Fortress Classic pages need to set this parameter to "tfc".
image Yes Image of the pickup, resized to 144px wide. Defaults to File:Screenshot needed.png.
3d-[...] No See documentation at Module:3D viewer advanced.
type Yes The type of pickup.