Difference between revisions of "Template:Item infobox/Sandbox"
m |
m |
||
Line 1,671: | Line 1,671: | ||
| wear = {{{wear|}}} | | wear = {{{wear|}}} | ||
| unusual-effect = {{#switch: {{{unusual-effect|}}} | | unusual-effect = {{#switch: {{{unusual-effect|}}} | ||
− | | = | + | | = <!-- Handle blank --> |
| [#] = {{lang | | [#] = {{lang | ||
| en = [#] | | en = [#] | ||
| it = (scelto dal ricevitore) | | it = (scelto dal ricevitore) | ||
| pt-br= [escolhido pelo destinatário] | | 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}}}}} | + | | #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}}}}} }} | | item-kind = {{#if: {{{item-kind|}}} | {{item name|item type {{{item-kind}}}}} }} | ||
Line 1,683: | Line 1,683: | ||
| {{#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}}}}}}} }} | + | | 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-expiration = {{{item-expiration|}}} | | item-expiration = {{{item-expiration|}}} | ||
| item-uses = {{{item-uses|}}} | | item-uses = {{{item-uses|}}} | ||
| item-flags = {{#switch: {{{item-flags|}}} | | item-flags = {{#switch: {{{item-flags|}}} | ||
− | | | + | | = <!-- Handle blank --> |
| Promotion | | Promotion | ||
− | |||
| AchievementItem | | AchievementItem | ||
| CannotCraft | | CannotCraft | ||
Line 1,728: | Line 1,727: | ||
| NonEconomyItem | | NonEconomyItem | ||
| SpecialItem = {{attribute|{{{item-flags}}}}} | | SpecialItem = {{attribute|{{{item-flags}}}}} | ||
− | | #default = {{{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. --> |
}} | }} | ||
}} | }} |
Revision as of 18:11, 16 January 2024
This template is very complex. If you have questions about this template, feel free to ask on the IRC. |
This template must not be used on user pages. Please use {{User item infobox}} instead. |
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Item infobox/Sandbox/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, cs, de, es, fr, hu, ja, ko, pl, pt, pt-br, ro, ru, sv, tr, zh-hans (add) |
Template documentation [infobox/Sandbox/doc?action=edit&preload=Template:Documentation/preload create]