Template:Infobox block: Difference between revisions
No edit summary |
renewable field should be optional |
||
| Line 2: | Line 2: | ||
| rows = | | rows = | ||
{{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }} | {{#if: {{{rarity|}}} | {{infobox row|class=list-style-none|label=[[Rarity|Rarity color]]|field={{ucfirst:{{{rarity|}}}}} }} | }} | ||
{{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }} | {{#if: {{{renewable|}}} | {{infobox row|label=[[Renewable resource|Renewable]]|field={{ #if: {{{renewable|}}} | {{{renewable}}} | ? }} }} }} | ||
{{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} {{#if: {{{maxStack|}}} | ({{{maxStack}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }} }} | {{infobox row|label=Stackable|field={{ #if: {{{stackable|}}} | {{{stackable}}} {{#if: {{{maxStack|}}} | ({{{maxStack}}}) }} | ? {{#if: {{NAMESPACE}} || {{translation category|project=0|Missing stackability}}}} }} }} | ||
{{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{#vardefineecho: correct-tool | {{ | {{infobox row|label=Tool{{ #if: {{{tool2|}}} | s }}|class=pixel-image|field={{#vardefineecho: correct-tool | {{ | ||