Template:Furniture Infobox: Difference between revisions
Storing name in bucket |
Added auto-pluralization for color, material, and source labels |
||
| Line 31: | Line 31: | ||
|Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |Indoor Area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | ||
|Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |Outdoor Area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | ||
|Folio Score = {{#switch:{{{quality|}}} | |Folio Score = {{#switch:{{{quality|}}}<!-- | ||
-->|Gray = +5<!-- | |||
-->|Green = +10<!-- | |||
-->|Purple = +{{{score|20}}}<!-- | |||
-->|Gold = +20<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|{item}|, }}}} | |Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|{item}|, }}}} | ||
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}} | |||
|Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|{item}|, }}}} | |Material = {{#if:{{{material|}}}|{{Array|{{{material}}}|;|{item}|, }}}} | ||
|Material_label = Material{{#if:{{#explode:{{{material}}}|;|1}}|s}} | |||
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | |Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}} | ||
| Line 49: | Line 52: | ||
|How to Obtain = Source, Inspo Card | |How to Obtain = Source, Inspo Card | ||
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}} | |Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}} | ||
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | |||
|Inspo Card = {{{inspo|}}} | |Inspo Card = {{{inspo|}}} | ||
}}<!-- | }}<!-- | ||
| Line 58: | Line 62: | ||
|in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | |in_area = {{#if:{{{in_area|}}}|{{#replace:{{{in_area}}}|x|×}}}} | ||
|out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | |out_area = {{#if:{{{out_area|}}}|{{#replace:{{{out_area}}}|x|×}}}} | ||
|folio_score = {{#switch:{{{quality|}}} | |folio_score = {{#switch:{{{quality|}}}<!-- | ||
-->|Gray = 5<!-- | |||
-->|Green = 10<!-- | |||
-->|Purple = {{{score|20}}}<!-- | |||
-->|Gold = 20<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|color-delimiter = ; | |color-delimiter = ; | ||
|material-delimiter = ; | |material-delimiter = ; | ||