Template:Set Infobox: Difference between revisions

mNo edit summary
Added bucket. sources->source to match all other infoboxes. Moved "Source" pluralization to Source_label
Line 18: Line 18:


|Information_collapsible = Yes
|Information_collapsible = Yes
|Information = Type, Group, Quality, Source{{#if:{{#explode:{{{sources}}}|;|1}}|s|}}, Reward
|Information = Type, Group, Quality, Source, Reward
|Type = <!--
|Type = <!--
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!--
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!--
   -->{{Array|{{{type}}}|;|* [[{item}]]{newline} }}|<!--
   -->{{List|[[{{{type}}}]]}}|<!--
   -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!--
   -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!--
-->}}
-->}}
|Group = <!--
|Group = <!--
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!--
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!--
   -->{{Array|{{{group}}}|;|* [[{item}]]{newline} }}|<!--
   -->{{List|[[{{{group}}}]]}}|<!--
   -->{{#if:{{{group|}}}|[[{{{group}}}]]}}<!--
   -->{{#if:{{{group|}}}|[[{{{group}}}]]}}<!--
-->}}
-->}}
|Quality = <!--
|Quality = <!--
-->{{#if:{{{quality|}}}|<!--
-->{{#if:{{{quality|}}}|<!--
   --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
   --><span class="quality-label quality-{{lc:{{{quality}}}}}"><!--
     -->{{{quality|None}}}<!--
     -->{{{quality}}}<!--
   --></span><!--
   --></span><!--
-->}}
-->}}
|Source{{#if:{{#explode:{{{sources}}}|;|1}}|s|}} = <!--
|Source = <!--
-->{{#if:{{#explode:{{{sources}}}|;|1}}|<!--
-->{{#if:{{#explode:{{{source}}}|;|1}}|<!--
   -->{{Array|{{{sources}}}|;|* [[{item}]]{newline} }}|<!--
   -->{{List|[[{{{source}}}]]}}|<!--
   -->{{#if:{{{sources|}}}|[[{{{sources}}}]]}}<!--
   -->{{#if:{{{source|}}}|[[{{{source}}}]]}}<!--
-->}}
-->}}
|Reward = {{#switch:{{{type}}}<!--
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
|Reward = {{#switch:{{{type|}}}<!--
-->|Creature Set = {{Item|Omni-Voucher|x={{{reward|25}}}}}<!--
-->|Creature Set = {{Item|Omni-Voucher|x={{{reward|25}}}}}<!--
-->|Furniture Set = {{Item|Dough|x={{{reward|400}}}}}<!--
-->|Furniture Set = {{Item|Dough|x={{{reward|400}}}}}<!--
Line 50: Line 51:
|DescriptionText_wide = Yes
|DescriptionText_wide = Yes
|DescriptionText = {{{description|}}}
|DescriptionText = {{{description|}}}
}}<!--
-->{{#invoke:Bucket|put|sets
|+templateargs = name, number, quality, type, group, source, description, images
|page_id = {{PAGEID}}
|source-delimiter = ;
|reward = {{#switch:{{{type|}}}<!--
-->|Creature Set = {{Item|Omni-Voucher|x={{{reward|25}}}}}<!--
-->|Furniture Set = {{Item|Dough|x={{{reward|400}}}}}<!--
-->|#default = <!--
-->}}
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|removed = {{{removed|0}}}
}}<!--
}}<!--