Jump to content

Template:Dress Up Infobox: Difference between revisions

From The Petit Planet Wiki
Eleiyas (talk | contribs)
idk what tags is doing here, but I fixed the categorization stuff.
Updated to DRUID infobox
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly>{{#invoke:Infobox|main
  <title source="title">
|kind = Dress Up
    <default>{{PAGENAME|{{{title}}}}}</default>
|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
   </data>
|Information = Category, Type, Quality, Set, Tags, Selling Price
  <data source="set">
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
    <label>Set</label>
|Type = {{#if:{{{type|}}}|[[{{{type}}}]]}}
    <format>[[{{{set}}}]]</format>
|Quality = <!--
  </data>
-->{{#if:{{{quality|}}}|<!--
  <data source="tags">
   --><span class="quality-label quality-{{lc:{{{quality|none}}}}}"><!--
    <label>Tags</label>
     -->{{{quality|None}}}<!--
    <format>{{List|{{{tags}}}}}</format>
   --></span><!--
</data>
-->}}
  <data source="source">
|Set = {{#if:{{{set_link|{{{set|}}}}}}|[[{{{set_link|{{{set}}}}}}|{{{set}}}]]}}
    <label>Source</label>
|Tags = {{#if:{{#explode:{{{tags}}}|;|1}}|{{List|{{{tags}}}}}|{{{tags|}}}}}
    <format>{{List|{{{source}}}}}</format>
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|x={{{sell|{{{price}}}}}}}}}}
</data>
 
  <data source="sell">
|Description_collapsible = Yes
    <label>Selling Price</label>
|Description = DescriptionText
    <format>{{Item|Dough|x={{{sell}}}}}</format>
|DescriptionText_wide = Yes
</data>
|DescriptionText = {{{description|}}}
</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]]<!--
   ID
   Number
-->{{#if:{{{id|}}}|[[Category:Dress Up Items|{{{id|}}}]]|[[Category:Dress Up Items]][[Category:Dress Up Items Missing ID]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Dress Up Items|{{{number|}}}]]|[[Category:Dress Up Items]][[Category:Dress Up Items Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}}]]}}<!--
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
  {{#if:{{{quality|}}}|[[Category:Dress Up Items by Quality|{{#switch:{{{quality|}}}
  |Gray    = 0
  |Green    = 1
  |Purple  = 2
  |Gold    = 3
  |#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