Template:Set Infobox: Difference between revisions
mNo edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| (14 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
|kind = Set | |kind = Set | ||
|sep = , | |sep = , | ||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |title = <!-- | ||
-->{{{title|<!-- | -->{{{title|<!-- | ||
-->{{#if:{{{number|}}}| | -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | ||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | -->}}} | ||
|subtitle = {{{subtitle|}}} | |subtitle = {{{subtitle|}}} | ||
| Line 15: | Line 12: | ||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | ||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | ||
|sections = Information | |sections = Information | ||
|Information_collapsible = Yes | |Information_collapsible = Yes | ||
|Information = Type, Group, Quality, | |Information = Type, Group, Tags, Quality, Source, Reward | ||
|Type = <!-- | |Type = <!-- | ||
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!-- | -->{{#if:{{#explode:{{{type}}}|;|1}}|<!-- | ||
-->{{ | -->{{List|[[{{{type}}}]]}}|<!-- | ||
-->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!-- | -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!-- | ||
-->}} | -->}} | ||
|Group = <!-- | |Group = <!-- | ||
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!-- | -->{{#if:{{#explode:{{{group}}}|;|1}}|<!-- | ||
-->{{ | -->{{List|[[{{{group}}}]]}}|<!-- | ||
-->{{#if:{{{group|}}}|[[{{{group}}}]]}}<!-- | -->{{#if:{{{group|}}}|[[{{{group}}}]]}}<!-- | ||
-->}} | -->}} | ||
| | |Tags = {{#if:{{{tags|}}}|{{Array|{{{tags|}}}|;|<ul><li>{item}</li></ul>}}|}} | ||
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}} | |||
|Source = <!-- | |||
-->{{#if:{{#explode:{{{source}}}|;|1}}|<!-- | |||
--> | -->{{List|[[{{{source}}}]]}}|<!-- | ||
-->{{#if:{{{source|}}}|[[{{{source}}}]]}}<!-- | |||
-->}} | -->}} | ||
| | |Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}} | ||
|Reward = {{#switch:{{{type|}}}<!-- | |||
-->|Creature Set = {{Item|Omni-Voucher|x={{{reward|25}}}}}<!-- | |||
-->|Furniture Set = {{#if:{{{removed|}}}|{{Item|Dough|x={{{reward|400}}}}}|{{Item|Lucasprout|x={{#switch:{{{quality}}}|Stellar=80|Rare=40|Uncommon=20}}}}}}<!-- | |||
-->|#default = <!-- | |||
-->}} | -->}} | ||
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!-- | |||
| | -->{{#invoke:Bucket|put|sets | ||
| | |+templateargs = name, number, quality, type, group, source, description, images | ||
| | |page_id = {{PAGEID}} | ||
| | |source-delimiter = ; | ||
|reward = {{#switch:{{{type|}}}<!-- | |||
-->|Creature Set = Omni-Voucher<!-- | |||
-->|Furniture Set = Dough<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|reward_amount = {{#switch:{{{type|}}}<!-- | |||
-->|Creature Set = {{{reward|25}}}<!-- | |||
-->|Furniture Set = {{{reward|400}}}<!-- | |||
-->|#default = <!-- | |||
-->}} | |||
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} {{{type|}}}.png}}} | |||
|images-delimiter = ; | |||
|removed = {{{removed|0}}} | |||
}}<!-- | }}<!-- | ||
-->{{Namespace|main=<!-- | -->{{Namespace|main=<!-- | ||
Set page display title if name is different from page name | |||
The namespace check is necessary since the magic words need additional masking. | |||
-->{{#ifeq:{{NAMESPACE}}||<!-- | |||
-->{{#if:{{{name|}}}|<!-- | |||
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!-- | |||
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->[[Category:Sets]]<!-- | -->[[Category:Sets]]<!-- | ||
Sort | Sort | ||
| Line 55: | Line 75: | ||
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}}}<!-- | -->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}}}<!-- | ||
-->{{#if:{{{group|}}}|{{Array|{{{group}}}|;|[[Category:{item}]]}}}}<!-- | -->{{#if:{{{group|}}}|{{Array|{{{group}}}|;|[[Category:{item}]]}}}}<!-- | ||
-->{{#if:{{{tags|}}}|{{Array|{{{tags}}}|;|[[Category:{item}]]}}}}<!-- | |||
Quality | Quality | ||
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}} | -->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}} | ||