Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
If you make an edit, a temporary account will be created for you.

Template:Item Infobox: Difference between revisions

Template page
m Eleiyas moved page Template:Material Infobox to Template:Item Infobox without leaving a redirect
No edit summary
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#invoke:Infobox|main
--><infobox>
|kind = Item
   <title source="name">
|sep = ,
  <format>{{#if:{{{number|}}}|<span class="number">{{{number}}} </span>}}{{{name|{{PAGENAME}}}}}</format>
|class = quality-{{#if:{{{quality|}}}|{{lc:{{{quality}}}}}|none}}
  </title>
|title = <!--
  <image source="image">
-->{{{title|<!--
  </image>
   -->{{#if:{{{number|}}}|<span class="archive-number">{{{number}}}</span>}}<!--
  <group layout="horizontal">
  -->{{{name|{{PAGENAME}}}}}<!--
    <data source="category">
-->}}}
      <label>Category</label>
|subtitle = {{{subtitle|}}}
      <format>[[{{{category}}}]]</format>
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}]]|[[File:{{{title|{{{name|{{PAGENAME}}}}}}}} Icon.png]]}}
    </data>
|images = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|[[File:²{#explode:{item}¦:¦0}²]]|,|template=1}}}}
    <data source="type">
|tabs = {{#if:{{{images|}}}|{{Array|{{{images}}}|;|²{#explode:{item}¦:¦1}²|,|template=1}}}}
      <label>Type</label>
|sections = Information, How to Obtain
      <format>[[{{{type}}}]]</format>
 
    </data>
|Information_collapsible = Yes
  </group>
|Information = Category, Type, Quality, Color, Strength, Effect, Collection Score, Selling Price
  <data source="quality">
|Category = {{#if:{{{category|}}}|[[{{{category}}}]]}}
    <label>Quality</label>
|Type = {{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[{item}]]|,&nbsp;}}}}
    <format>{{{quality}}}</format>
|Type_label = Type{{#if:{{#explode:{{{type}}}|;|1}}|s}}
  </data>
|Quality = {{#if:{{{quality|}}}|<span class="quality-label">{{{quality}}}</span>}}
  <data source="size">
|Color = {{#if:{{{color|}}}|{{Array|{{{color}}}|;|[[{item}]]|,&nbsp;|sort=1}}}}
    <label>Size</label>
|Color_label = Color{{#if:{{#explode:{{{color}}}|;|1}}|s}}
    <format>{{{size}}}</format>
|Strength = {{#if:{{{strength|}}}|+{{{strength}}}}}
  </data>
|Effect = {{{effect|}}}
  <data source="sellPrice">
|Collection Score = {{#ifeq:{{{category|}}}|Crop|{{#switch:{{{quality|}}}|<!--
    <label>Sell Price</label>
-->|Gray|Common = +5<!--
  </data>
-->|Blue|Uncommon = +10<!--
  <header>How to Obtain</header>
-->|Purple|Rare = +15<!--
    <data source="source"><label>Obtain</label></data>
-->|Gold|Stellar = +30<!--
</infobox><!--
-->|#default = +?<!--
-->}}<!--
-->|{{{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:Materials]]<!--
-->[[Category:Items]]<!--
   Sort
   Sort
-->{{#if:{{{number|}}}|[[Category:Material|{{{number}}}]]|[[Category:Material]][[Category:Material Missing Number]]}}<!--
-->{{#if:{{{number|}}}|[[Category:Item|{{{number}}}]]|[[Category:Item]][[Category:Item Missing Number]]}}<!--
   Category
   Category
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
-->{{#if:{{{category|}}}|[[Category:{{{category}}}]]}}<!--
   Type
   Type
-->{{#if:{{{type|}}}|[[Category:{{{type}}} Material]]}}<!--
-->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}]]}}|}}<!--
Quality
-->{{#if:{{{color|}}}|{{Cat List|{{{color}}}|{item} Items}}}}<!--
-->{{#switch:{{{quality}}}|Gray|Green|Purple|Gold=[[Category:{{{quality}}} Quality]]}}
  Quality
   {{#if:{{{quality|}}}|[[Category:Material by Quality|{{#switch:{{{quality|}}}
-->{{#switch:{{{quality}}}|Gray|Blue|Purple|Gold|Common|Uncommon|Rare|Stellar=[[Category:{{{quality}}} Quality]]}}
   |Gray       = 0
   {{#if:{{{quality|}}}|[[Category:Item by Quality|{{#switch:{{{quality|}}}
   |Green      = 1
   |Gray|Common    = 0
   |Purple     = 2
   |Blue|Uncommon    = 1
   |Gold       = 3
   |Purple|Rare  = 2
   |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>