Template:Set Infobox: Difference between revisions
mNo edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| (22 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>< | <includeonly>{{#invoke:Infobox|main | ||
|kind = Set | |||
|sep = , | |||
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}} | |||
|title = <!-- | |||
-->{{{title|<!-- | |||
-->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!-- | |||
-->{{{name|{{PAGENAME}}}}}<!-- | |||
-->}}} | |||
|subtitle = {{{subtitle|}}} | |||
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} {{{type|}}}.png]]}} | |||
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}} | |||
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}} | |||
|sections = Information | |||
|Information_collapsible = Yes | |||
|Information = Type, Group, Tags, Quality, Source, Reward | |||
|Type = <!-- | |||
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!-- | |||
-->{{List|[[{{{type}}}]]}}|<!-- | |||
-->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!-- | |||
-->}} | |||
|Group = <!-- | |||
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!-- | |||
< | -->{{List|[[{{{group}}}]]}}|<!-- | ||
Set page display title if | -->{{#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=<!-- | |||
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}}||<!-- | -->{{#ifeq:{{NAMESPACE}}||<!-- | ||
-->{{#if:{{{name | -->{{#if:{{{name|}}}|<!-- | ||
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!-- | |||
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!-- | |||
-->}}<!-- | |||
-->}}<!-- | -->}}<!-- | ||
--> | -->[[Category:Sets]]<!-- | ||
-->{{#if:{{{ | Sort | ||
-->{{#if:{{{ | -->{{#if:{{{number|}}}|[[Category:Set|{{{number}}}]]|[[Category:Set]][[Category:Set Missing Number]]}}<!-- | ||
-->{{#if:{{{ | Type and Group | ||
-->{{#if:{{{ | -->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}}}<!-- | ||
-->{{#if:{{{group|}}}|{{Array|{{{group}}}|;|[[Category:{item}]]}}}}<!-- | |||
-->{{#if:{{{tags|}}}|{{Array|{{{tags}}}|;|[[Category:{item}]]}}}}<!-- | |||
Quality | |||
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}} | -->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}} | ||
{{#if:{{{quality|}}}|[[Category: | {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}} | ||
|Gray | |Gray = 0 | ||
|Green | |Green = 1 | ||
|Purple | |Purple = 2 | ||
|Gold | |Gold = 3 | ||
|#default = 4 | |#default = 4 | ||
}}]]}}<!-- | }}]]}}<!-- | ||
--> | -->}}<!-- | ||
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude> | |||
--> | |||