Jump to content

Template:Set Infobox: Difference between revisions

From The Petit Planet Wiki
m Text replacement - "archive-number quality-{{lc:{{{quality|none}}}}}" to "archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"
ReisuDesign (talk | contribs)
No edit summary
 
(19 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>}}<!--
  --><span class="archive-number quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}"><!--
  -->{{{name|{{PAGENAME}}}}}<!--
    -->{{{number}}}<!--
  --></span><!--
-->}}<!--
-->{{{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, Description
|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}}|<!--
   -->{{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 = <!--
|Tags = {{#if:{{{tags|}}}|{{Array|{{{tags|}}}|;|<ul><li>{item}</li></ul>}}|}}
-->{{#if:{{{quality|}}}|<!--
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
|Source = <!--
    -->{{{quality|None}}}<!--
-->{{#if:{{#explode:{{{source}}}|;|1}}|<!--
   --></span><!--
  -->{{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}}}}}}}<!--


|Description_collapsible = Yes
-->{{#invoke:Bucket|put|sets
|Description = DescriptionText
|+templateargs = name, number, quality, type, group, source, description, images
|DescriptionText_wide = Yes
|page_id = {{PAGEID}}
|DescriptionText = {{{description|}}}
|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 49: 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]]}}

Latest revision as of 15:43, 12 October 2026

Template documentation
Note: parts of or the entire template might not be visible without values provided.

The documentation for this template is missing. Click here to create it.