Jump to content

Editing Template:Item 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><!--
|kind = Item
--><infobox>
|sep = ,
   <title source="name">
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|title = <!--
  </title>
-->{{{title|<!--
  <image source="image">
   -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  </image>
  -->{{{name|{{PAGENAME}}}}}<!--
  <group layout="horizontal">
-->}}}
    <data source="category">
|subtitle = {{{subtitle|}}}
      <label>Category</label>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
      <format>[[{{{category}}}]]</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="type">
|sections = Information, How to Obtain
      <label>Type</label>
 
      <format>[[{{{type}}}]]</format>
|Information_collapsible = Yes
    </data>
|Information = Category, Type, Quality, Color, Strength, Effect, Collection Score, Selling Price
  </group>
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
  <data source="quality">
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|,&nbsp;}}}}
    <label>Quality</label>
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
    <format>{{{quality}}}</format>
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  </data>
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;|sort=1}}}}
  <data source="size">
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
    <label>Size</label>
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
    <format>{{{size}}}</format>
|Effect = {{{effect|}}}
  </data>
|Collection Score = {{#ifeq:{{{category|}}}|Crop|{{#switch:{{{quality|}}}|<!--
  <data source="sellPrice">
-->|Gray|Common = +5<!--
    <label>Sell Price</label>
-->|Blue|Uncommon = +10<!--
  </data>
-->|Purple|Rare = +15<!--
  <header>How to Obtain</header>
-->|Gold|Stellar = +30<!--
    <data source="source"><label>Obtain</label></data>
-->|#default = +?<!--
</infobox><!--
-->}}<!--
-->|{{{score|}}}}}
|Selling Price = {{#if:{{{sell|{{{price|}}}}}}|{{Item|Dough|20|x={{{sell|{{{price}}}}}}}}}}
 
|How to Obtain_collapsible = Yes
|How to Obtain = Source
|Source = {{#if:{{#explode:{{{source}}}|;|1}}|{{List|{{{source}}}}}|{{{source|}}}}}
|Source_label = Source{{#if:{{#explode:{{{source}}}|;|1}}|s}}
}}{{#if:{{{description|}}}|{{Description|{{{description}}}}}}}<!--
 
-->{{#invoke:Bucket|put|items
|+templateargs = name, number, quality, category, type, strength, source, effect, description, images
|page_id = {{PAGEID}}
|sell = {{{sell|{{{price|}}}}}}
|source-delimiter = ;
|image = {{{image|{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png}}}
|images-delimiter = ;
|removed = {{{removed|0}}}
}}<!--
 
-->{{Namespace|main=<!--
-->{{Namespace|main=<!--
-->[[Category:Items]]<!--
-->[[Category:Materials]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Item|{{{number}}}]]|[[Category:Item]][[Category:Item Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Material|{{{number}}}]]|[[Category:Material]][[Category:Material Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!--
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Material]]}}<!--
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Items}}}}<!--
Quality
  Quality
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
-->{{#switch:{{{quality}}}|Gray|Blue|Purple|Gold|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}
   {{#if:{{{quality|}}}|[[Category:Material by Quality|{{#switch:{{{quality|}}}
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   |Gray       = 0
   |Gray|Common    = 0
   |Green      = 1
   |Blue|Uncommon    = 1
   |Purple     = 2
   |Purple|Rare  = 2
   |Gold       = 3
   |Gold|Stellar    = 3
   |#default = 4
   |#default = 4
   }}]]}}<!--
   }}]]}}<!--
  Set
-->{{#if:{{{set|}}}|[[Category:{{{set}}} Set Material]]}}<!--
  Size
-->{{#if:{{{size|}}}|[[Category:{{{size}}} Material]]}}<!--
-->}}<!--
-->}}<!--
--></includeonly><noinclude>{{Documentation|type=Infobox}}</noinclude>
--></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;