Difference between revisions of "User:RJackson/Template:Buy item/3"

From Team Fortress Wiki
Jump to: navigation, search
(Moving last edit to it's own variant.)
 
m (didn't paste it all, for some reason)
Line 1,274: Line 1,274:
 
     | ko = 탄약 종류
 
     | ko = 탄약 종류
 
     | it = Tipo di Munizioni:
 
     | it = Tipo di Munizioni:
     | nl = Munitie
+
     | nl = Munitietype:
 +
    | no = Type ammunisjon:
 +
    | pl = Rodzaj amunicji:
 +
    | pt = Tipo de munição:
 +
    | pt-br = Tipo de munição:
 +
    | ru = Тип боеприпасов:
 +
    | ro = Tipul muniţiei:
 +
    | sv = Ammunitionstyp
 +
    | tr = Cephane Tipi
 +
    | zh-hans = 子弹类型:
 +
    | zh-hant = 子彈類型:
 +
    }}</td><!--
 +
  --><td class="infobox-data">{{{ammo-type}}}</td>
 +
  </tr>
 +
}}{{#if:{{{reload-type|{{{reload|}}}}}}
 +
| <tr><!--
 +
 +
// 'reload-type'
 +
 
 +
--><td class="infobox-label">{{lang
 +
    | ar = نوع الريلود :
 +
    | cs = Typ nabíjení:
 +
    | da = Ladnings type:
 +
    | de = Nachladetyp:
 +
    | en = Reload type:
 +
    | fi = Lataustapa:
 +
    | fr = Type de rechargement :
 +
    | hu = Újratöltés típusa:
 +
    | ja = リロードタイプ:
 +
    | ko = 장전 방식
 +
    | es = Tipo de recarga:
 +
    | it = Tipo di Ricarica:
 +
    | nl = Type lading:
 +
    | no = Type lading:
 +
    | pl = Przeładowywanie:
 +
    | pt = Tipo de Recarga:
 +
    | pt-br = Tipo de recarga:
 +
    | ro = Tip de reîncărcare:
 +
    | ru = Тип перезарядки:
 +
    | sv = Laddningstyp
 +
    | tr = Dolduruş Tipi
 +
    | zh-hans = 填充类型:
 +
    | zh-hant = 填充類型:
 +
    }}</td><!--
 +
  --><td class="infobox-data">{{{reload-type|{{{reload}}}}}}
 +
  </td>
 +
  </tr>
 +
}}<!-- End 'reload-type' -->
 +
| {{ns:0}}<!-- NULL: hide ammunition for all types excluding weapons. -->
 +
}}
 +
}}<!-- End ammunition switch.
 +
 +
// Loadout Stats
 +
 
 +
-->{{#switch:{{lc:{{{loadout|¬}}}}}
 +
| no
 +
| ¬ = {{ns:0}}<!-- Hide loadout by default, and if loadout is set to 'no' -->
 +
| #default = <tr>
 +
  <th class="infobox-header" colspan="2">{{lang
 +
    | ar = حالة لودأوت
 +
    | cs = Vlastnosti ve výbavě
 +
    | da = Udrustnings Statestik
 +
    | de = Inventar
 +
    | en = Loadout Stats
 +
    | es = Estadísticas
 +
    | fi = Varustelastiominaisuudet
 +
    | fr = Statistiques
 +
    | hu = Statisztikák
 +
    | ja = バックパック内表示
 +
    | ko = 로드아웃 상태
 +
    | it = Statistiche
 +
    | nl = Uitrustingsstatistieken:
 +
    | no = Inventar Statistikk
 +
    | pl = Statystyki
 +
    | pt = Estatísticas
 +
    | pt-br = Atributos
 +
    | ro = Statistici
 +
    | ru = Снаряжение
 +
    | sv = Statistik
 +
    | tr = Ekipman İstatistikleri
 +
    | zh-hans = 选单显示
 +
    | zh-hant = 選單顯示
 +
    }}</th>
 +
  </tr><tr>
 +
  <td colspan="2" style="text-align:center;"><!--
 +
 
 +
    // The following relies on functionality provided by the {{Backpack item}} template.
 +
 
 +
  -->{{Backpack item
 +
| file-link = yes
 +
| custom-icon = {{{custom-icon|}}}
 +
| quality = {{{quality|Unique}}}
 +
| item-name = {{BASEPAGENAME}}
 +
| item-name-local = {{#if:{{{loadout-name|}}}
 +
  | {{{loadout-name}}}
 +
  | {{#if:{{{name|{{{NAME|{{{title|{{{item-name-override|}}}}}}}}}}}}
 +
  | {{{name|{{{NAME|{{{title|{{{item-name-override|}}}}}}}}}}}}
 +
  | {{#if:{{{loadout-prefix|{{{hide-loadout-prefix|}}}}}}
 +
    | {{ns:0}}<!-- Set hide-loadout-prefix to anything to skip this. -->
 +
    | {{if lang
 +
    | en = {{#switch:{{lc:{{{quality|{{{type|}}}}}}}}
 +
      | normal <!-- For if 'quality' is set to 'normal' -->
 +
      | hats | head | headwear | hat | misc item | misc. item | misc. | misc | miscellaneous | miscellaneous item
 +
      | tools | tool | action item | action | action taunt = {{ns:0}}<!-- Hats, misc and tools usually don't have "The". -->
 +
      | yes | #default = The {{BASEPAGENAME}}
 +
      }}
 +
    | non-en = {{item name|{{BASEPAGENAME}}}}<!-- Ignore this for non-English pages. -->
 +
    }}
 +
    }}
 +
  }}
 +
  }}
 +
| item-level = {{#if:{{{level|}}}
 +
  | {{{level}}}
 +
  | {{#switch:{{lc:{{{type|}}}}}
 +
  | hats | head | headwear | hat = {{lang
 +
    | en = Level 1–100 Hat
 +
    | de = Level 1–100 Hut
 +
    | es = Sombrero Nivel 1–100
 +
    | fi = Tason 1-100 Hattu
 +
    | fr = Chapeau niveau 1-100
 +
    | hu = 1-100. szintű sapka
 +
    | nl = Niveau 1-100 Hoed
 +
    | ko = 레벨 1-100 모자
 +
    | it = Cappello Livello 1–100
 +
    | ru = Головной убор 1-100-го уровня
 +
    | zh-hant = 等級 1-100 頭飾
 +
    | de = Hut Level 1-100
 +
    | pt-br = Chapéu Nível 1-100
 +
    }}
 +
  | #default = {{lang
 +
    | ar = مستوى 1–100
 +
    | cs = Level 1–100
 +
    | da = Niveau 1–100
 +
    | de = Level 1–100
 +
    | en = Level 1–100
 +
    | es = Nivel 1–100
 +
    | fi = Taso 1–100
 +
    | fr = Niveau 1–100
 +
    | hu = 1–100. szintű
 +
    | it = Livello 1–100
 +
    | ja = レベル 1–100
 +
    | ko = 레벨 1–100
 +
    | nl = Niveau 1–100
 +
    | no = Nivå 1–100
 +
    | pl = Poziom 1–100
 +
    | pt = Nível 1–100
 +
    | pt-br = Nível 1–100
 +
    | ro = Nivel 1–100
 +
    | ru = 1–100-го уровня
 +
    | sv = Nivå 1–100
 +
    | tr = Seviye 1–100
 +
    | zh-hans = 等级 1–100
 +
    | zh-hant = 等級 1–100
 +
    }}
 +
  }}
 +
  }}
 +
| null = <!--
 +
 
 +
  // Ideally, 'positive-attributes', 'negative-attributes', etc, would no longer be used.
 +
  // When all pages are swept over all instances of these parameters should be changed.
 +
  // All hat descriptions should also use 'item-description' over 'neutral-attributes'.
 +
 
 +
  -->
 +
  | att-1-positive = {{{att-1-positive|}}}
 +
  | att-1-negative = {{{att-1-negative|}}}
 +
  | att-1-neutral = {{#if:{{{att-1-neutral|}}}
 +
  | {{{att-1-neutral|}}}
 +
  | {{#switch:{{lc:{{{type|}}}}}
 +
  | weapon
 +
  | weapons = {{{neutral-attributes|}}}
 +
  | #default = {{ns:0}}<!-- NULL -->
 +
  }}
 +
  }}
 +
 
 +
  | att-2-positive = {{{att-2-positive|{{{positive-attributes|}}}}}}
 +
  | att-2-negative = {{{att-2-negative|}}}
 +
  | att-2-neutral = {{{att-2-neutral|}}}
 +
 
 +
  | att-3-positive = {{{att-3-positive|}}}
 +
  | att-3-negative = {{{att-3-negative|{{{negative-attributes|}}}}}}
 +
  | att-3-neutral = {{{att-3-neutral|}}}
 +
 
 +
  | att-4-positive = {{{att-4-positive|}}}
 +
  | att-4-negative = {{{att-4-negative|}}}
 +
  | att-4-neutral = {{{att-4-neutral|}}}
 +
 
 +
  | att-5-positive = {{{att-5-positive|}}}
 +
  | att-5-negative = {{{att-5-negative|}}}
 +
  | att-5-neutral = {{{att-5-neutral|}}}
 +
 
 +
  | att-6-positive = {{{att-6-positive|}}}
 +
  | att-6-negative = {{{att-6-negative|}}}
 +
  | att-6-neutral = {{{att-6-neutral|}}}
 +
 
 +
  | att-7-positive = {{{att-7-positive|}}}
 +
  | att-7-negative = {{{att-7-negative|}}}
 +
  | att-7-neutral = {{{att-7-neutral|}}}
 +
 
 +
  | att-8-positive = {{{att-8-positive|}}}
 +
  | att-8-negative = {{{att-8-negative|}}}
 +
  | att-8-neutral = {{{att-8-neutral|}}}
 +
 
 +
| item-description = {{#if:{{{item-description|}}}
 +
  | {{{item-description|}}}
 +
  | {{#switch:{{lc:{{{type|}}}}}
 +
  | hats
 +
  | head
 +
  | hat
 +
  | headwear = {{{neutral-attributes|}}}
 +
  | #default = {{ns:0}}<!-- NULL -->
 +
  }}
 +
  }}
 +
| item-expiration = {{{item-expiration|}}}
 +
| item-uses = {{{item-uses|}}}
 +
| item-flags = {{{item-flags|}}}
 +
}}
 +
</td>
 +
</tr>
 +
}}<!-- Close 'loadout' #if -->
 +
 
 +
</table></div><!-- End table --><!--
 +
 
 +
// Automatic display title.
 +
// Its value comes from the "name" parameter (so the same name is shown for the title of the infobox, displayed title of the page
 +
// and the item name in the loadout stats).
 +
 
 +
-->{{#ifeq:{{{DISPLAYTITLE|{{{displaytitle|}}}}}} | off
 +
| {{ns:0}}<!-- Ignore if 'displaytitle' has been set to 'off'. -->
 +
| {{#if:{{{name|}}}
 +
  | {{DISPLAYTITLE:{{{displaytitle|{{{DISPLAYTITLE|{{{name|}}}}}}}}}}}
 +
  | {{if lang| non-en = {{DISPLAYTITLE:{{item name|{{BASEPAGENAME}}}}}}| en = {{ns:0}}}}<!-- Ignore if 'name' isn't defined (majority of English pages). -->
 +
  }}
 +
}}<!--
 +
 
 +
// Begin categorization.
 +
 
 +
--><includeonly>{{#if:{{{cat|}}}
 +
| {{ns:0}}<!-- NULL: if 'cat' is defined. -->
 +
| {{#switch:{{lc:{{{game|}}}}}
 +
| tfc = {{#switch:{{lc:{{{type|}}}}}
 +
| weapon | weapons = {{lang cat|Weapons (Classic)}}
 +
}}
 +
| #default = {{#switch:{{lc:{{{type|}}}}}
 +
| weapons
 +
| weapon = {{#if:{{{unused|{{{beta|}}}}}}
 +
  | {{ns:0}}<!-- Only real weapons should be placed in Category:Weapons -->
 +
  | {{lang cat|Weapons}}
 +
  }}<!--
 +
--><!--
 +
  // Categorize by slot (excluding taunt kills)
 +
  -->{{#if:{{{unused|{{{beta|}}}}}}
 +
  | {{ns:0}}<!-- Remove slot categorization for unused items. -->
 +
  | {{#switch:{{lc:{{{type|}}}}}
 +
  | taunt
 +
  | tauntkill
 +
  | taunt-kill = {{ns:0}}<!-- Don't place these slot categories on taunt pages. -->
 +
  | #default = {{#switch:{{lc:{{{slot|}}}}}
 +
    | slot1 | slot 1 | 1 | primary = {{lang cat|Primary weapons}}
 +
    | slot2 | slot 2 | 2 | secondary = {{lang cat|Secondary weapons}}
 +
    | slot3 | slot 3 | 3 | melee = {{lang cat|Melee weapons}}
 +
    | pda1 | pda 1 | disguise kit = {{lang cat|PDA1 weapons}}
 +
    | pda2 | pda 2 | watch | cloak = {{lang cat|PDA2 weapons}}
 +
    | #default = [[Category:Item infobox ERROR|{{NAMESPACE}} {{BASEPAGENAME}} {{if lang}}]]<!--
 +
    // If 'slot' doesn't match any of the above, the page is not categorized, sans this maintenance category
 +
    // for tracking purposes.
 +
    -->
 +
    }}
 +
  }}
 +
  }}
 +
| hats
 +
| head
 +
| headwear
 +
| hat = {{lang cat|Hats}}
 +
| misc item
 +
| misc.
 +
| misc
 +
| misc. item
 +
| miscellaneous
 +
| miscellaneous item = {{lang cat|Miscellaneous items}}
 +
| taunt = {{lang cat|Taunts}}
 +
| tools
 +
| tool = {{lang cat|Tools}}
 +
| action item
 +
| action = {{lang cat|Action items}}
 +
| action taunt = {{lang cat|Action items}}{{lang cat|Taunts}}
 +
}}
 +
}}<!--
 +
-->{{#switch:{{lc:{{{type|}}}}}
 +
    | hats
 +
    | head
 +
    | headwear
 +
    | hat
 +
    | misc item
 +
    | misc.
 +
    | misc
 +
    | misc. item
 +
    | miscellaneous
 +
    | miscellaneous item
 +
    | weapon
 +
    | weapons = {{#if: {{{contributed-by|}}}|{{ns:0}}|{{#ifeq: {{lc:{{{game|}}}}}|tfc|{{ns:0}}|{{lang cat|Valve-made items|sort={{ucfirst:{{{type|-}}}}}&#32;{{BASEPAGENAME}}}}}}}}
 +
}}
 +
}}<!--
 +
 
 +
  // Deprecated parameter tracking.
 +
  // This places pages that use old parameters into dedicated categories where they can be located & fixed.
 +
  // See [[Category:Tracking categories]].
 +
 
 +
    // NONE
 +
 
 +
  // Error tracking.
 +
-->{{#if:{{{type|}}}||<!--
 +
  --><span class="error mid">ERROR {{tl|Item infobox}} missing 'type' parameter ([[Template:Item infobox#error001|Error001]]).<!--
 +
  --></span><!--
 +
  -->[[Category:Item infobox ERROR|{{NAMESPACE}} {{BASEPAGENAME}} {{if lang}}]]<!--
 +
-->}}<!--
 +
 
 +
-->{{#switch:{{lc:{{{type|}}}}}
 +
  | weapons | weapon | taunt | tauntkill | taunt-kill
 +
  | hats | head | headwear | hat | misc item | misc. item | misc. | misc | miscellaneous | miscellaneous item
 +
  | tools | tool | action item | action | action taunt = {{ns:0}}<!-- Accepted values for 'type'. -->
 +
  | blank | none | {{ns:0}} | #default = [[Category:Item infobox ERROR|{{NAMESPACE}} {{BASEPAGENAME}} {{if lang}}]]
 +
  }}<!--
 +
 
 +
  // From WindBOT.
 +
-->{{#ifeq:{{{slot|}}}|invalid|<!--
 +
  -->[[Category:Item infobox ERROR|{{NAMESPACE}} {{BASEPAGENAME}} {{if lang}}]]<!--
 +
-->|}}<!--
 +
 
 +
  // 'loadout-name' and 'loadout-prefix' usage.
 +
  -->{{#if:{{{loadout-name|}}}
 +
  | [[Category:Item infobox using 'loadout-name'|{{BASEPAGENAME}} {{SUBPAGENAME}}]]
 +
  }}{{#if:{{{loadout-prefix|}}}
 +
  | [[Category:Item infobox using 'loadout-prefix'|{{BASEPAGENAME}} {{SUBPAGENAME}}]]
 +
  }}<!--
 +
 
 +
  // Maintenance tracking.
 +
-->[[Category:Item infobox usage|{{if lang|en=&#32;{{BASEPAGENAME}}|non-en={{SUBPAGENAME}}&#32;{{BASEPAGENAME}}}}]]<!--
 +
 
 +
--></includeonly><noinclude><!-- // END TEMPLATE. -->
 +
{{clr}}
 +
{{translation switching|all languages}}
 +
{{documentation}}
 +
[[Category:Infobox templates|Item infobox]]
 +
</noinclude>

Revision as of 20:26, 2 December 2011