Template:Item infobox: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
mNo edit summary
(Some testing strings)
Line 40: Line 40:
| #default = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div>
| #default = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div>
}}
}}
{{#switch:{{{price|{{{item price|{{{show-price|¬}}}}}}}}}
| ¬ = {{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}
  | <tr>
  <td class="infobox-label"><!--
  -->[[Mann Co. Store{{if lang}}|{{lang
  | ar = {{tooltip|سعر|سعر الأيتم في المان كو. سطور}}:
  | cs = {{tooltip|Cena|Cena předmětu v Mann Co. Obchodě.}}:
  | da = {{tooltip|Pris|Tingens pris i Mann Co. Butikken.}}:
  | de = {{tooltip|Preis|Der Preis des Items im Mann Co. Store.}}:
  | en = {{tooltip|Price|The item's price in the Mann Co. Store.}}:
  | es = {{tooltip|Precio|El precio de este objeto en la Tienda Mann Co.}}:
  | fi = {{tooltip|Hinta|Esineen hinta Mann Co. -kaupassa.}}:
  | fr = {{tooltip|Prix|Le prix de cet objet dans le Magasin Mann Co.}} :
  | it = {{tooltip|Prezzo|Il prezzo dell'oggetto nel Negozio Mann Co.}}:
  | ja = {{tooltip|価格|Mann Co. Store/ja}}:
  | ko = {{tooltip|가격|만사 스토어 가격}}:
  | nl = {{tooltip|Prijs|Prijs van het item in de Mann Co. Store.}}:
  | no = {{tooltip|Pris|Gjenstandens pris i Mann Co. Butikken.}}:
  | pl = {{tooltip|Cena|Cena przedmiotu w Sklepie Mann Co.}}:
  | pt = {{tooltip|Preço|O preço deste item na Mann Co. Store}}:
  | pt-br = {{tooltip|Preço|O preço deste item na Mann Co. Store}}:
  | ro = {{tooltip|Preţ|Preţul obiectului în Magazinul Mann Co.}}:
  | ru = {{tooltip|Цена|Цена предмета в магазине Манн Ко.}}:
  | sv = {{Tooltip|Pris|Föremålets pris i Mann Co.-butiken}}:
  | zh-hans = {{tooltip|价格|曼恩公司商店的价格}}:
  | zh-hant = {{tooltip|價格|在曼恩企業商店的價格}}:
  }}]]
  </td><!--
  --><td class="infobox-data">{{item price|{{BASEPAGENAME}}}}{{#if:{{{item-price+|}}}|<small><br/>{{{item-price+|}}}</small>}}</td>
  </tr>
  }}


<div class="section">{{lang
<div class="section">{{lang
Line 122: Line 154:
|item-level = {{{level|Level 1}}}
|item-level = {{{level|Level 1}}}
|quality = {{{quality|unique}}}
|quality = {{{quality|unique}}}
| item-description = {{#if:{{{item-description|}}}
  | {{{item-description|}}}
  | {{#switch:{{lc:{{{type|}}}}}
  | hats
  | head
  | hat
  | headwear = {{{neutral-attributes|}}}
  | #default = {{ns:0}}<!-- NULL -->
  }}
  }}
|width = 254px
|width = 254px
|style = margin: 2px auto 2px auto;
|style = margin: 2px auto 2px auto;

Revision as of 15:00, 1 May 2011


The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Item infobox

This template is used to display information about an item.

Parameters

Parameter Example Description
name Spud Hat A name that will be displayed at the top of the infobox, usually this isn't necessary and will use the page title by default.
image Spudburger.png A new image to use under the item's name at the top. Use this only if necessary and stick to the set convention as much as possible.
slot Head The slot that the item is equipped in.
used-by Atlas, P-body A list of classes that can equip the item.
level Level 100 Testing Apparatus The level of the item (used in backpack example)
team-colors yes If set to yes the infobox will link to two versions of a given team colored hat image under the item image, if set to two-items the item image will be removed and the team colored images replace it, stacked vertically.
quality genuine Recolor the item name text to represent a different quality (unique by default)