Template:Item infobox: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(34 intermediate revisions by 20 users not shown)
Line 7: Line 7:
| yes = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div>
| yes = <div style="text-align: center;">[[Image:{{#if:{{{image|}}}|{{{image}}}|Item {{uc:{{BASEPAGENAME}}}}.png}}|200px]]</div>
<div>
<div>
<div style="width: 50%; float: left; background: #d46f2a; font-weight: bold; text-align: center;">{{lang
<div style="width: 50%; float: left; background: #d46f2a; font-weight: bold; text-align: center;">{{Character|p-body}}</div>
    | en = P-body
<div style="width: 50%; float: right; background: #0090ff; font-weight: bold; text-align: center;">{{Character|atlas}}</div>
    | pt-br = P-body
    | ru = Пи-боди
    }}</div>
<div style="width: 50%; float: right; background: #0090ff; font-weight: bold; text-align: center;">{{lang
    | en = Atlas
    | pt-br = Atlas
    | ru = Атлас
    }}</div>
</div>
</div>
<div>
<div>
Line 26: Line 18:
</div>
</div>
</div>
</div>
| two-items = <div class="section" style="background: #d46f2a;">{{lang
| two-items = <div class="section" style="background: #d46f2a;">{{Character|p-body}}</div>
    | en = P-body
    | pt-br = P-body
    | ru = Пи-боди
    }}</div>
<div style="text-align: center;">[[Image:P-body {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div>
<div style="text-align: center;">[[Image:P-body {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div>
<div class="section" style="background: #0090ff;">{{lang
<div class="section" style="background: #0090ff;">{{Character|atlas}}</div>
    | en = Atlas
    | pt-br = Atlas
    | ru = Атлас
    }}</div>
<div style="text-align: center;">[[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div>
<div style="text-align: center;">[[Image:Atlas {{#if:{{{name-override|}}}|{{{name-override}}}|{{BASEPAGENAME}}}}.png|200px]]</div>
| #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>
}}
}}
<div class="section">{{lang
<div class="section">{{lang
   | ar = معلومات أساسية  
   | ar = معلومات أساسية  
Line 51: Line 34:
   | fr = Informations de base
   | fr = Informations de base
   | hu = Alapvető információk
   | hu = Alapvető információk
   | it = Informazioni di base
   | it = Informazioni di Base
   | ja = インフォメーション
   | ja = インフォメーション
   | ko = 기본 정보
   | ko = 기본 정보
   | nl = Basis informatie
   | nl = Basisinformatie
   | no = Grunnleggende informasjon
   | no = Grunnleggende informasjon
   | pl = Podstawowe informacje
   | pl = Podstawowe informacje
   | pt = Informações Básicas
   | pt = Informações Básicas
   | pt-br = Informação Básica
   | pt-br = Informações básicas
   | ro = Informaţii de bază
   | ro = Informaţii de bază
   | ru = Информация
   | ru = Информация
   | sv = Grundläggande Information
   | sv = Grundläggande Information
  | tr = Temel Bilgiler
   | zh-hans = 基本信息
   | zh-hans = 基本信息
   | zh-hant = 資訊
   | zh-hant = 資訊
Line 74: Line 58:
   | es = Usado por:
   | es = Usado por:
   | fr = Porté par :
   | fr = Porté par :
   | fi = Käyttää:
   | fi = Käyttäjät:
  | hu = Viselheti:
   | it = Indossato da:
   | it = Indossato da:
   | ja = 装備:
   | ja = 装備:
   | ko = 착용 클래스:
   | ko = 착용자
   | nl = Gedragen door:
   | nl = Gedragen door:
   | no = Båret av:
   | no = Båret av:
   | pl = Klasa:
   | pl = Dla postaci:
   | pt = Usado por:
   | pt = Usado por:
   | pt-br = Usado por:
   | pt-br = Usado por:
Line 86: Line 71:
   | ru = Используется:
   | ru = Используется:
   | sv = Buren av:
   | sv = Buren av:
   | zh-hans = 装备的兵种:
  | tr = Kullanan sınıf:
   | zh-hans = 可装备的兵种:
   | zh-hant = 裝備:
   | zh-hant = 裝備:
   }}</th><td>{{{used-by}}}</td></tr>}}
   }}</th><td>{{{used-by}}}</td></tr>}}
{{#if:{{{shared-from|}}}|<tr><th>{{lang
  | de = Geteilt von:
  | en = Shared from:
  | es = Procedente de:
  | fi = Jaettu:
  | fr = Partagé depuis :
  | pl = Dzielone od:
  | pt-br = Compartilhado de:
  | ru = Позаимствовано из:
  | zh-hant = 源自:
  }}</th><td>{{#switch: {{{shared-from}}}
    | tf2 = [[Image:TF2_game_icon.png|16px]] [[Team Fortress 2{{if lang}}|Team Fortress 2]]
    | #default: Please enter a known game code.
  }}</td></tr>}}
{{#if:{{{slot|}}}|<tr><th>{{lang
{{#if:{{{slot|}}}|<tr><th>{{lang
   | ar = وضع
   | ar = وضع
Line 110: Line 110:
   | zh-hant = 類型:
   | zh-hant = 類型:
   }}</th><td>{{{slot}}}</td></tr>}}
   }}</th><td>{{{slot}}}</td></tr>}}
{{#switch:{{{price|{{{item price|{{{show-price|¬}}}}}}}}}
{{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}|<tr><th>{{lang
| ¬ = {{#ifexist:Template:Dictionary/price/{{lc:{{BASEPAGENAME}}}}
   | de = Preis:
  | <tr>
   | en = Price:
  <td class="infobox-label"><!--
   | cs = Cena:
  -->[[Mann Co. Store{{if lang}}|{{lang
   | es = Precio:
   | ar = {{tooltip|سعر|سعر الأيتم في المان كو. سطور}}:
   | fi = Hinta:
   | cs = {{tooltip|Cena|Cena předmětu v Mann Co. Obchodě.}}:
   | fr = Prix :
   | da = {{tooltip|Pris|Tingens pris i Mann Co. Butikken.}}:
   | pt-br = Preço:
  | de = {{tooltip|Preis|Der Preis des Items im Mann Co. Store.}}:
   | ru = Цена:
  | en = {{tooltip|Price|The item's price in the Mann Co. Store.}}:
   | pl = Cena
   | es = {{tooltip|Precio|El precio de este objeto en la Tienda Mann Co.}}:
   | zh-hant = 價格:
   | fi = {{tooltip|Hinta|Esineen hinta Mann Co. -kaupassa.}}:
   }}</th><td>{{item price|item={{BASEPAGENAME}}}}<br>[https://store.steampowered.com/buyitem/620/{{Dictionary/defindex/{{lc:{{BASEPAGENAME}}}}}} {{common string|Buy Now}}]{{#if:{{{item-price+|}}}|<small><br/>{{{item-price+|}}}</small>}}</td></tr>}}</table>
   | 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
  | de = Gegenstand
   | en = Item
   | en = Item
  | cs = Předmět
  | es = Objeto
  | fi = Esine
  | fr = Objet
   | pt-br = Item
   | pt-br = Item
   | ru = Предмет
   | ru = Предмет
  | pl = Przedmiot
  | zh-hant = 配件
   }}</div>
   }}</div>
{{Backpack item
{{Backpack item
|item-name-local = {{#if:{{{name|}}}|{{{name}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-name-local = {{#if:{{{name|}}}|{{uc:{{{name}}}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-name = {{#if:{{{name-override|}}}|{{{name-override}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-name = {{#if:{{{name-override|}}}|{{{name-override}}}|{{uc:{{BASEPAGENAME}}}}}}
|item-level = {{{level|Level 1}}}
|item-level = {{{level|Level 1}}}
Line 167: Line 155:


</div>
</div>
</includeonly>
{{lang cat|Items}}</includeonly><noinclude>
<noinclude>
{{Translation switching|cs, de, es, fi, fr, pt-br, ru, pl, zh-hant}}
{{doc begin}}
{{doc begin}}
This template is used to display information about an item.
This template is used to display information about an item.
Line 192: Line 180:
| used-by
| used-by
| [[Atlas]], [[P-body]]
| [[Atlas]], [[P-body]]
| A list of classes that can equip the item.
| A list of bots that can equip the item.
|-
| shared from
| tf2
| The game that the item is shared from. Possible values: "<code>tf2</code>".
|-
|-
| level
| level

Latest revision as of 18:29, 25 June 2024

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 bots that can equip the item.
shared from tf2 The game that the item is shared from. Possible values: "tf2".
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)