Difference between revisions of "Template:Pickup infobox"

From Team Fortress Wiki
Jump to: navigation, search
m
m (Add 3D viewer)
 
Line 3: Line 3:
 
|-
 
|-
 
| colspan=2 style="text-align:center;" |
 
| colspan=2 style="text-align:center;" |
{{{!}}width="100%" class="transparent"
+
{{{!}} width="100%" class="transparent"
{{!}} style="margin: 0 auto;"{{!}}[[File:{{{pickup-image|Screenshot needed.png}}}|150px|{{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>
 +
  }}
 
{{!}}}
 
{{!}}}
 
|-
 
|-
Line 28: Line 31:
 
   | zh-hans = 拾取物类型:
 
   | zh-hans = 拾取物类型:
 
   | zh-hant = 撿取類型:
 
   | zh-hant = 撿取類型:
   }}''' || {{{pickup-type}}}
+
   }}''' || {{{type|{{{pickup-type}}}}}}
 
|}<includeonly>{{#switch:{{lc:{{{game|}}}}}
 
|}<includeonly>{{#switch:{{lc:{{{game|}}}}}
 
  | tfc = {{lang cat|Pickups (Classic)}}
 
  | tfc = {{lang cat|Pickups (Classic)}}

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.