Jump to content

Template:Dress Up Infobox: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
No edit summary
Updated to DRUID infobox
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
  <title source="name">
|kind = Dress Up
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|sep = ,
  </title>
|title = <!--
  <image source="image">
-->{{{title|<!--
    <caption source="caption-image"/>
-->{{#if:{{{number|}}}|<!--
  </image>
  --><span class="archive-number quality-{{lc:{{{quality|none}}}}}"><!--
  <group layout="horizontal">
    -->{{{number}}}<!--
  <data source="category">
  --></span><!--
    <label>Category</label>
-->}}<!--
    <format>[[{{{category}}}]]</format>
-->{{{name|{{PAGENAME}}}}}<!--
  </data>
-->}}}
  <data source="type">
|subtitle = {{{subtitle|}}}
    <label>Type</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
    <format>[[{{{type}}}]]</format>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
  </data>
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
   </group>
|sections = Information, Description, How to Obtain
  <data source="quality">
 
    <label>Quality</label>
|Information_collapsible = Yes
     <format>{{{quality}}}</format>
|Information = Category, Type, Quality, Set, Tags, Selling Price
   </data>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  <data source="set">
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
    <label>Set</label>
|Quality = <!--
    <format>[[{{{set}}}]]</format>
-->{{#if:{{{quality|}}}|<!--
  </data>
   --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
  <data source="tags">
     -->{{{quality|None}}}<!--
    <label>Tags</label>
   --></span><!--
    <format>{{List|{{{tags}}}}}</format>
-->}}
</data>
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
  <data source="source">
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}}
    <label>Source</label>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}}}}}
    <format>{{List|{{{source}}}}}</format>
 
</data>
|Description_collapsible = Yes
  <data source="sell">
|Description = DescriptionText
    <label>Selling Price</label>
|DescriptionText_wide = Yes
    <format>{{Item|Dough|x={{{sell}}}}}</format>
|DescriptionText = {{{description|}}}
</data>
 
</infobox><!--
|How to Obtain_collapsible = Yes
|How to Obtain = Source
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Dress Up]]<!--
-->[[Category:Dress Up]]<!--
Line 45: Line 49:
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
Quality
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Dress Up Items by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Dress Up Items by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Gray     = 0
   |Green       = 1
   |Green   = 1
   |Purple     = 2
   |Purple   = 2
   |Gold       = 3
   |Gold     = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
     Tags
     Tags
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item}{{{type}}}]]}}}}}}<!--
-->{{#if:{{{tags|}}}|{{Cat List|{{{tags}}}|{item} Dress Up|{{#if:{{{category|}}}|[[Category:{item} {{{category}}}]]}}{{#if:{{{type|}}}|[[Category:{item} {{{type}}}]]}}}}}}<!--
 
  Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Dress Up Items]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>

Latest revision as of 13:18, 21 February 2026

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

Infobox for Dress Up items.

Syntax[edit source]

{{Outfit Infobox
|name         = Page Name
|number       = Sorting Number
|image        = [Image].png
|category     = Outfit/Styling
|type         = Headwear/Skin Tone
|quality      = Quality Color
|set          = Set (If Any)
|sellPrice    = Sell Price at Glenn's
|source       = Source of Item
}}

Example[edit source]

001Handcrafted Tree Sapling Hat
Category
Quality
Gray
Set
How to Obtain
Source
Main Quest