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><infobox>
<includeonly>{{#invoke:Infobox|main
<title source="name">
|kind = Set
<default>{{PAGENAME}}</default>
|sep = ,
<format>{{#if:{{{icon|}}}|{{Icon|{{{name|}}}}}|}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</format>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
</title>
|title = <!--
<header name="secondary_title">{{{subtitle|}}}</header>
-->{{{title|<!--
<image source="image">
  -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
<caption source="caption"/>
  -->{{{name|{{PAGENAME}}}}}<!--
</image>
-->}}}
<data source="type">
|subtitle = {{{subtitle|}}}
<label>Type</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} {{{type|}}}.png]]}}
<format>[[{{{type}}}]]{{#if:{{{type2|}}}|<br />[[{{{type2}}}]]}}{{#if:{{{type3|}}}|<br />[[{{{type3}}}]]}}{{#if:{{{type4|}}}|<br />[[{{{type4}}}]]}}{{#if:{{{type5|}}}|<br />[[{{{type5}}}]]}}</format>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
</data>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
<data source="group">
|sections = Information
<label>Group</label>
 
<format>[[{{{group}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}{{#if:{{{group4|}}}|<br />[[{{{group4}}}]]}}{{#if:{{{group5|}}}|<br />[[{{{group5}}}]]}}</format>
|Information_collapsible = Yes
</data>
|Information = Type, Group, Tags, Quality, Source, Reward
<data source="description">
|Type = <!--
<label>Description</label>
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!--
</data>
  -->{{List|[[{{{type}}}]]}}|<!--
  <data source="quality">
  -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!--
    <label>Quality</label>
-->}}
    <format>{{{quality}}}</format>
|Group = <!--
  </data>  
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!--
</infobox>{{Namespace|main=[[Category:Sets]]<!--
  -->{{List|[[{{{group}}}]]}}|<!--
Set page display title if title is different from page name
  -->{{#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|}}}{{{displaytitle|}}}|{{#ifeq:{{{PAGENAME}}}|{{{name}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{name}}}}}}|noreplace}}}}}}}}<!--
-->{{#if:{{{name|}}}|<!--
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!--
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type|}}}]]}}<!--
-->[[Category:Sets]]<!--
-->{{#if:{{{type2|}}}|[[Category:{{{type2|}}}]]}}<!--
  Sort
-->{{#if:{{{type3|}}}|[[Category:{{{type3|}}}]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Set|{{{number}}}]]|[[Category:Set]][[Category:Set Missing Number]]}}<!--
-->{{#if:{{{type4|}}}|[[Category:{{{type4|}}}]]}}<!--
  Type and Group
-->{{#if:{{{type5|}}}|[[Category:{{{type5|}}}]]}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}}}<!--
Quality
-->{{#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:Set by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Furniture by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Gray     = 0
   |Green       = 1
   |Green   = 1
   |Purple     = 2
   |Purple   = 2
   |Gold       = 3
   |Gold     = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
-->{{#if:{{{group|}}}|[[Category:{{{group|}}}]]}}<!--
-->}}<!--
-->{{#if:{{{group2|}}}|[[Category:{{{group2|}}}]]}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
-->{{#if:{{{group3|}}}|[[Category:{{{group3|}}}]]}}<!--
-->{{#if:{{{group4|}}}|[[Category:{{{group4|}}}]]}}<!--
-->{{#if:{{{group5|}}}|[[Category:{{{group5|}}}]]}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>