Editing Template:Set Infobox

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
<includeonly>{{#invoke:Infobox|main
<includeonly><infobox>
|kind = Set
<title source="name">
|sep = ,
<default>{{PAGENAME}}</default>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
<format>{{#if:{{{icon|}}}|{{Icon|{{{name|}}}}}|}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}</format>
|title = <!--
</title>
-->{{{title|<!--
<header name="secondary_title">{{{subtitle|}}}</header>
  -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
<image source="image">
  -->{{{name|{{PAGENAME}}}}}<!--
<caption source="caption"/>
-->}}}
</image>
|subtitle = {{{subtitle|}}}
<data source="type">
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} {{{type|}}}.png]]}}
<label>Type</label>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
<format>[[{{{type}}}]]{{#if:{{{type2|}}}|<br />[[{{{type2}}}]]}}{{#if:{{{type3|}}}|<br />[[{{{type3}}}]]}}{{#if:{{{type4|}}}|<br />[[{{{type4}}}]]}}{{#if:{{{type5|}}}|<br />[[{{{type5}}}]]}}</format>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
</data>
|sections = Information
<data source="group">
 
<label>Group</label>
|Information_collapsible = Yes
<format>[[{{{group}}}]]{{#if:{{{group2|}}}|<br />[[{{{group2}}}]]}}{{#if:{{{group3|}}}|<br />[[{{{group3}}}]]}}{{#if:{{{group4|}}}|<br />[[{{{group4}}}]]}}{{#if:{{{group5|}}}|<br />[[{{{group5}}}]]}}</format>
|Information = Type, Group, Tags, Quality, Source, Reward
</data>
|Type = <!--
<data source="description">
-->{{#if:{{#explode:{{{type}}}|;|1}}|<!--
<label>Description</label>
  -->{{List|[[{{{type}}}]]}}|<!--
</data>
  -->{{#if:{{{type|}}}|[[{{{type}}}]]}}<!--
  <data source="quality">
-->}}
    <label>Quality</label>
|Group = <!--
    <format>{{{quality}}}</format>
-->{{#if:{{#explode:{{{group}}}|;|1}}|<!--
  </data>  
  -->{{List|[[{{{group}}}]]}}|<!--
</infobox>{{Namespace|main=[[Category:Sets]]<!--
  -->{{#if:{{{group|}}}|[[{{{group}}}]]}}<!--
Set page display title if title is different from page name
-->}}
|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|}}}|{{#ifeq:{{{PAGENAME}}}|{{{name}}}||{{#ifeq:{{lc:{{{displaytitle|}}}}}|no||{{DISPLAYTITLE:{{{displaytitle|{{{name}}}}}}|noreplace}}}}}}}}<!--
-->{{DISPLAYTITLE:{{{name|}}}|noreplace}}<!--
-->{{#ifeq:{{{name|}}}|{{#titleparts:{{PAGENAME}}}}||[[Category:Pages with Custom Title]]}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->[[Category:Sets]]<!--
-->{{#if:{{{type|}}}|[[Category:{{{type|}}}]]}}<!--
  Sort
-->{{#if:{{{type2|}}}|[[Category:{{{type2|}}}]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Set|{{{number}}}]]|[[Category:Set]][[Category:Set Missing Number]]}}<!--
-->{{#if:{{{type3|}}}|[[Category:{{{type3|}}}]]}}<!--
  Type and Group
-->{{#if:{{{type4|}}}|[[Category:{{{type4|}}}]]}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}}}<!--
-->{{#if:{{{type5|}}}|[[Category:{{{type5|}}}]]}}<!--
-->{{#if:{{{group|}}}|{{Array|{{{group}}}|;|[[Category:{item}]]}}}}<!--
Quality
-->{{#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:Furniture by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Set 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|}}}]]}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
-->{{#if:{{{group2|}}}|[[Category:{{{group2|}}}]]}}<!--
-->{{#if:{{{group3|}}}|[[Category:{{{group3|}}}]]}}<!--
-->{{#if:{{{group4|}}}|[[Category:{{{group4|}}}]]}}<!--
-->{{#if:{{{group5|}}}|[[Category:{{{group5|}}}]]}}<!--
-->}}</includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
Please note that all contributions to The Petit Planet Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see Petit Planet Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)
Preview page with this template
Below are commonly used wikitext from MediaWiki:Edittools. Click on any to insert them in the edit box.
File Pages==Summary====Licensing=={{Fairuse}}{{File|}}
Dynamic Page List¦²«»²{¦}²«»«/»«!----»
Array in DPL¹^2{}^2^2{¹}^2
Parser Functions{{#if:||}}
{{#ifeq:|||}}
{{#expr:}}
{{#switch:||#default=}}
{{#replace:||}}
{{#titleparts:}}
{{#tag:|}}
Markup{{}}|[][[]][[Category:]]#REDIRECT [[]] [[Category:Redirect Pages]]<code></code><includeonly></includeonly><noinclude></noinclude><nowiki></nowiki><!----><br>§
Notices{{Stub|}}{{Stub Dialogue}}{{Upcoming}}{{Under Construction}}{{Placeholder|}}
Magic Words{{!}}{{formatnum:}}{{lc:}}{{uc:}}{{PAGENAME}}{{FULLPAGENAME}}{{ROOTPAGENAME}}{{BASEPAGENAME}}{{SUBPAGENAME}}{{DISPLAYTITLE:|noreplace}}__TOC____NOTOC____EXPECTUNUSEDCATEGORY____HIDDENCAT__
HTML Entities&mdash;&nbsp;&comma;&shy;