Jump to content

Template:Item Infobox: Difference between revisions

From Untitled Monster Game
imported>Ziebster
mNo edit summary
imported>Ziebster
No edit summary
 
(49 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<infobox>
<infobox theme="item">
   <title source="name">
   <title source="name">
     <default>{{PAGENAME}}</default>
     <default>{{PAGENAME}}</default>
   </title>
   </title>
   <image source="image">
   <image source="image" />
    <caption source="caption-image"/>
  </image>
   <data source="type">
   <data source="type">
     <label>Type</label>
     <label>Type</label>
   </data>
   </data>
   <data source="effects">
   <panel>
     <label>Effects</label>
  <section>
   </data>
  <label>{{{heading1}}}</label>
   <data source="rarity">
    <data source="effects">
     <label>How to Get</label>
      <label>Effects</label>
    </data>
    <data source="rarity">
      <label>Rarity</label>
    </data>
    <data source="shop_price">
      <label>Shop Price</label>
    </data>
  </section>
  <section>
  <label>{{{heading2|Section 2}}}</label>
     <data source="effects2">
      <label>Effects</label>
    </data>
    <data source="rarity2">
      <label>Rarity</label>
    </data>
    <data source="shop_price2">
      <label>Shop Price</label>
    </data>
  </section>
   <section>
  <label>{{{heading3|Section 3}}}</label>
    <data source="effects3">
      <label>Effects</label>
    </data>
    <data source="rarity3">
      <label>Rarity</label>
    </data>
    <data source="shop_price3">
      <label>Shop Price</label>
    </data>
  </section>
  </panel>
  <image source="image1" />
   <data source="other">
     <label> </label>
   </data>
   </data>
</infobox>
</infobox>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
[[Category:Infobox templates]]
Example usage:
Example usage:
{{Item Infobox
{{Item Infobox
  | name=Example
|image=DigiExample.png
  | image=Example.jpg
|type=Example
  | caption-Image=Example
|effects=Example
  | type=Example
|rarity=Example
  | rarity=Example
|shop_price=Example
  | effects=Example}}
|image1=DigiExample.png
<pre>
|other=Example
}}<pre>
{{Item Infobox
{{Item Infobox
  | name=Example
|name=
  | image=Example.jpg
|image=
  | caption-Image=Example
|type=
  | type=Example
|effects=
  | rarity=Example
|rarity=
  | effects=Example}}
|shop_price=
|header1=
|header2=
|effects2=
|rarity2=
|shop_price2=
|header3=
|effects3=
|rarity3=
|shop_price3=
|image1=
|other=
}}
</pre>
</pre>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"caption-Image": {
"image": {
"suggested": true,
"label": "Image",
"description": "A caption describing the item",
"description": "A picture of the in-game item",
"type": "string"
"type": "wiki-file-name",
"suggested": true
},
},
"type": {
"type": {
Line 54: Line 103:
"Aura",
"Aura",
"Right Hand/Gloves",
"Right Hand/Gloves",
"Back",
"Mount",
"Mount",
"Middle Headgear",
"Middle Headgear",
"Top Headgear",
"Top Headgear",
"Consumable",
"Consumable",
"Left Hand"
"Left Hand",
"Back"
],
],
"required": true
"required": true
},
"heading1": {
"label": "Heading 1",
"type": "string",
"description": "Optional panel title 1"
},
},
"rarity": {
"rarity": {
Line 74: Line 128:
"Legendary",
"Legendary",
"Event"
"Event"
],
]
"deprecated": "Legacy term, items should keep this but it will not be added in the future"
},
},
"effects": {
"effects": {
Line 84: Line 137:
"required": true
"required": true
},
},
"name": {
"shop_price": {
"label": "Name",
"label": "Shop Price",
"description": "The name of the item.",
"description": "Shop price, if applicable",
"type": "wiki-page-name"
"type": "string"
},
"heading2": {
"label": "Heading 2",
"type": "string",
"description": "Panel title 2"
},
"rarity2": {
"label": "Rarity (2)",
"description": "The rarity of the item",
"type": "string",
"suggestedvalues": [
"Common",
"Uncommon",
"Rare",
"Epic",
"Legendary",
"Event"
]
},
},
"image": {
"effects2": {
"label": "Image",
"label": "Effects (2)",
"description": "A picture of the in-game item",
"description": "The effects applied when the item is equipped",
"type": "wiki-file-name",
"type": "string",
"suggested": true
"autovalue": "No Effect"
},
"shop_price2": {
"label": "Shop Price (2)",
"description": "Shop price, if applicable",
"type": "string"
},
"heading3": {
"label": "Heading 3",
"type": "string",
"description": "Panel title 3"
},
"rarity3": {
"label": "Rarity (3)",
"description": "The rarity of the item",
"type": "string",
"suggestedvalues": [
"Common",
"Uncommon",
"Rare",
"Epic",
"Legendary",
"Event"
]
},
"effects3": {
"label": "Effects (3)",
"description": "The effects applied when the item is equipped",
"type": "string",
"autovalue": "No Effect"
},
},
"How to Get": {
"shop_price3": {
"description": "Simple description how to get in a shortform response",
"label": "Shop Price (3)",
"required": true,
"description": "Shop price, if applicable",
"type": "string"
"type": "string"
}
}
},
},
"sets": [],
"paramOrder": [
"paramOrder": [
"name",
"image",
"image",
"caption-Image",
"type",
"type",
"heading1",
"rarity",
"effects",
"effects",
"How to Get",
"shop_price",
"rarity"
"heading2",
]
"rarity2",
"effects2",
"shop_price2",
"heading3",
"rarity3",
"effects3",
"shop_price3"
],
"format": "{{_\n|_=_\n}}"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 21:41, 30 December 2025

Example usage:

{{Item Infobox
|name=
|image=
|type=
|effects=
|rarity=
|shop_price=
|header1=
|header2=
|effects2=
|rarity2=
|shop_price2=
|header3=
|effects3=
|rarity3=
|shop_price3=
|image1=
|other=
}}

No description.

Template parameters[Edit template data]

This template has custom formatting.

ParameterDescriptionTypeStatus
Imageimage

A picture of the in-game item

Filesuggested
Typetype

The type of the item

Suggested values
Material Shirt Pants Aura Right Hand/Gloves Mount Middle Headgear Top Headgear Consumable Left Hand Back
Stringrequired
Heading 1heading1

Optional panel title 1

Stringoptional
Rarityrarity

The rarity of the item

Suggested values
Common Uncommon Rare Epic Legendary Event
Stringoptional
Effectseffects

The effects applied when the item is equipped

Auto value
No Effect
Stringrequired
Shop Priceshop_price

Shop price, if applicable

Stringoptional
Heading 2heading2

Panel title 2

Stringoptional
Rarity (2)rarity2

The rarity of the item

Suggested values
Common Uncommon Rare Epic Legendary Event
Stringoptional
Effects (2)effects2

The effects applied when the item is equipped

Auto value
No Effect
Stringoptional
Shop Price (2)shop_price2

Shop price, if applicable

Stringoptional
Heading 3heading3

Panel title 3

Stringoptional
Rarity (3)rarity3

The rarity of the item

Suggested values
Common Uncommon Rare Epic Legendary Event
Stringoptional
Effects (3)effects3

The effects applied when the item is equipped

Auto value
No Effect
Stringoptional
Shop Price (3)shop_price3

Shop price, if applicable

Stringoptional