Difference between revisions of "Template:Item infobox/Sandbox"

From Team Fortress Wiki
Jump to: navigation, search
m (Sync)
m (and back)
 
Line 1,670: Line 1,670:
 
   | grade = {{{grade|}}}
 
   | grade = {{{grade|}}}
 
   | wear = {{{wear|}}}
 
   | wear = {{{wear|}}}
   | unusual-effect = {{{unusual-effect|}}}
+
   | unusual-effect = {{#switch: {{{unusual-effect|}}}
   | item-kind = {{{item-kind|}}}
+
    | = <!-- Handle blank -->
 +
    | [#] = {{lang
 +
              | en = [#]
 +
              | it = (scelto dal ricevitore)
 +
              | pt-br= [escolhido pelo destinatário]
 +
            }} <!-- We certainly could simply add a token for this in the dictionary, but the bot currently can't handle this, so we're using a temp #switch instead. -->
 +
    | #default = {{item name|{{{unusual-effect}}}}} <!-- Now, the reason we are translating the unusual-effect, item kind, and other attributes here instead of directly in the bp item template is because the item infobox is only used once, and WindBOT can sync it. -->
 +
  }}
 +
   | item-kind = {{#if: {{{item-kind|}}} | {{item name|item type {{{item-kind}}}}} }}
  
 
   | {{#if:{{{item-level|}}}|item-level|null}} = {{{item-level|}}}
 
   | {{#if:{{{item-level|}}}|item-level|null}} = {{{item-level|}}}
  
   | att-1-positive = {{{att-1-positive|}}}
+
   | att-1-positive = {{#if: {{{att-1-positive|}}} | {{attribute|{{{att-1-positive}}}|{{{att-1-value|}}}|{{{att-1-value2|}}}}} }} <!-- I don't think there can be more than two values in an attribute, at least not for items that would have an item infobox. -->
   | att-1-negative = {{{att-1-negative|}}}
+
   | att-1-negative = {{#if: {{{att-1-negative|}}} | {{attribute|{{{att-1-negative}}}|{{{att-1-value|}}}|{{{att-1-value2|}}}}} }}
   | att-1-neutral = {{{att-1-neutral|}}}
+
   | att-1-neutral = {{#if: {{{att-1-neutral|}}} | {{attribute|{{{att-1-neutral}}}|{{{att-1-value|}}}|{{{att-1-value2|}}}}} }}
  
   | att-2-positive = {{{att-2-positive|}}}
+
   | att-2-positive = {{#if: {{{att-2-positive|}}} | {{attribute|{{{att-2-positive}}}|{{{att-2-value|}}}|{{{att-2-value2|}}}}} }}
   | att-2-negative = {{{att-2-negative|}}}
+
   | att-2-negative = {{#if: {{{att-2-negative|}}} | {{attribute|{{{att-2-negative}}}|{{{att-2-value|}}}|{{{att-2-value2|}}}}} }}
   | att-2-neutral = {{{att-2-neutral|}}}
+
   | att-2-neutral = {{#if: {{{att-2-neutral|}}} | {{attribute|{{{att-2-neutral}}}|{{{att-2-value|}}}|{{{att-2-value2|}}}}} }}
  
   | att-3-positive = {{{att-3-positive|}}}
+
   | att-3-positive = {{#if: {{{att-3-positive|}}} | {{attribute|{{{att-3-positive}}}|{{{att-3-value|}}}|{{{att-3-value2|}}}}} }}
   | att-3-negative = {{{att-3-negative|}}}
+
   | att-3-negative = {{#if: {{{att-3-negative|}}} | {{attribute|{{{att-3-negative}}}|{{{att-3-value|}}}|{{{att-3-value2|}}}}} }}
   | att-3-neutral = {{{att-3-neutral|}}}
+
   | att-3-neutral = {{#if: {{{att-3-neutral|}}} | {{attribute|{{{att-3-neutral}}}|{{{att-3-value|}}}|{{{att-3-value2|}}}}} }}
  
   | att-4-positive = {{{att-4-positive|}}}
+
   | att-4-positive = {{#if: {{{att-4-positive|}}} | {{attribute|{{{att-4-positive}}}|{{{att-4-value|}}}|{{{att-4-value2|}}}}} }}
   | att-4-negative = {{{att-4-negative|}}}
+
   | att-4-negative = {{#if: {{{att-4-negative|}}} | {{attribute|{{{att-4-negative}}}|{{{att-4-value|}}}|{{{att-4-value2|}}}}} }}
   | att-4-neutral = {{{att-4-neutral|}}}
+
   | att-4-neutral = {{#if: {{{att-4-neutral|}}} | {{attribute|{{{att-4-neutral}}}|{{{att-4-value|}}}|{{{att-4-value2|}}}}} }}
  
   | att-5-positive = {{{att-5-positive|}}}
+
   | att-5-positive = {{#if: {{{att-5-positive|}}} | {{attribute|{{{att-5-positive}}}|{{{att-5-value|}}}|{{{att-5-value2|}}}}} }}
   | att-5-negative = {{{att-5-negative|}}}
+
   | att-5-negative = {{#if: {{{att-5-negative|}}} | {{attribute|{{{att-5-negative}}}|{{{att-5-value|}}}|{{{att-5-value2|}}}}} }}
   | att-5-neutral = {{{att-5-neutral|}}}
+
   | att-5-neutral = {{#if: {{{att-5-neutral|}}} | {{attribute|{{{att-5-neutral}}}|{{{att-5-value|}}}|{{{att-5-value2|}}}}} }}
  
   | att-6-positive = {{{att-6-positive|}}}
+
   | att-6-positive = {{#if: {{{att-6-positive|}}} | {{attribute|{{{att-6-positive}}}|{{{att-6-value|}}}|{{{att-6-value2|}}}}} }}
   | att-6-negative = {{{att-6-negative|}}}
+
   | att-6-negative = {{#if: {{{att-6-negative|}}} | {{attribute|{{{att-6-negative}}}|{{{att-6-value|}}}|{{{att-6-value2|}}}}} }}
   | att-6-neutral = {{{att-6-neutral|}}}
+
   | att-6-neutral = {{#if: {{{att-6-neutral|}}} | {{attribute|{{{att-6-neutral}}}|{{{att-6-value|}}}|{{{att-6-value2|}}}}} }}
  
   | att-7-positive = {{{att-7-positive|}}}
+
   | att-7-positive = {{#if: {{{att-7-positive|}}} | {{attribute|{{{att-7-positive}}}|{{{att-7-value|}}}|{{{att-7-value2|}}}}} }}
   | att-7-negative = {{{att-7-negative|}}}
+
   | att-7-negative = {{#if: {{{att-7-negative|}}} | {{attribute|{{{att-7-negative}}}|{{{att-7-value|}}}|{{{att-7-value2|}}}}} }}
   | att-7-neutral = {{{att-7-neutral|}}}
+
   | att-7-neutral = {{#if: {{{att-7-neutral|}}} | {{attribute|{{{att-7-neutral}}}|{{{att-7-value|}}}|{{{att-7-value2|}}}}} }}
  
   | att-8-positive = {{{att-8-positive|}}}
+
   | att-8-positive = {{#if: {{{att-8-positive|}}} | {{attribute|{{{att-8-positive}}}|{{{att-8-value|}}}|{{{att-8-value2|}}}}} }}
   | att-8-negative = {{{att-8-negative|}}}
+
   | att-8-negative = {{#if: {{{att-8-negative|}}} | {{attribute|{{{att-8-negative}}}|{{{att-8-value|}}}|{{{att-8-value2|}}}}} }}
   | att-8-neutral = {{{att-8-neutral|}}}
+
   | att-8-neutral = {{#if: {{{att-8-neutral|}}} | {{attribute|{{{att-8-neutral}}}|{{{att-8-value|}}}|{{{att-8-value2|}}}}} }}
 +
| item-description = {{#if: {{{item-description|}}} | {{{item-description-override|{{item description|{{BASEPAGENAME}}}}}}} }} <!-- If set at all, we use the dictionary entry instead. Eventually, all item-descriptions should have a value of "yes". If, for some odd reason, the description can't be stored in the dictionary, we use item-description-override to display a custom one. -->
  
| item-description = {{{item-description|}}}
 
 
  | item-expiration = {{{item-expiration|}}}
 
  | item-expiration = {{{item-expiration|}}}
 
  | item-uses = {{{item-uses|}}}
 
  | item-uses = {{{item-uses|}}}
  | item-flags = {{{item-flags|}}}
+
  | item-flags = {{#switch: {{{item-flags|}}}
 +
  | = <!-- Handle blank -->
 +
  | Promotion
 +
  | AchievementItem
 +
  | CannotCraft
 +
  | CannotTrade
 +
  | CannotTradeOrCraft
 +
  | NonEconomyItem
 +
  | SpecialItem = {{attribute|{{{item-flags}}}}}
 +
  | #default = {{{item-flags|}}} <!-- This #switch should be removed after migration. It's only here to prevent the breaking of translated pages. {{attribute|{{{item-flags}}}}} is enough. -->
 +
  }}
 
  }}
 
  }}
 
  </td>
 
  </td>

Latest revision as of 18:21, 16 January 2024