Jump to content

Template:Item Infobox: Difference between revisions

From Untitled Monster Game
imported>Ziebster
No edit summary
imported>Ziebster
No edit summary
 
(33 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>
  <image source="image1">
    <caption source="caption-image1"/>
  </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>Rarity</label>
      <label>Effects</label>
   </data>
    </data>
   <data source="shop_price">
     <data source="rarity">
     <label>Shop Price</label>
      <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
  | effects=Example
|shop_price=Example
  | rarity=Example
|image1=DigiExample.png
  | shop_price=Example}}
|other=Example
<pre>
}}<pre>
{{Item Infobox
{{Item Infobox
  | name=Example
|name=
  | image=Example.jpg
|image=
  | caption-Image=Example
|type=
  | type=Example
|effects=
  | effects=Example
|rarity=
  | rarity=Example
|shop_price=
  | shop_price=Example}}
|header1=
|header2=
|effects2=
|rarity2=
|shop_price2=
|header3=
|effects3=
|rarity3=
|shop_price3=
|image1=
|other=
}}
</pre>
</pre>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"caption-Image": {
"image": {
"description": "A caption describing the item",
"label": "Image",
"type": "string"
"description": "A picture of the in-game item",
"type": "wiki-file-name",
"suggested": true
},
},
"type": {
"type": {
Line 66: Line 108:
"Consumable",
"Consumable",
"Left Hand",
"Left Hand",
"Backpack"
"Back"
],
],
"required": true
"required": true
},
"heading1": {
"label": "Heading 1",
"type": "string",
"description": "Optional panel title 1"
},
},
"rarity": {
"rarity": {
Line 81: Line 128:
"Legendary",
"Legendary",
"Event"
"Event"
],
]
"suggested": true
},
},
"effects": {
"effects": {
Line 91: 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"
"suggested": true
},
"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"
]
},
"effects2": {
"label": "Effects (2)",
"description": "The effects applied when the item is equipped",
"type": "string",
"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"
]
},
},
"image": {
"effects3": {
"label": "Image",
"label": "Effects (3)",
"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_price": {
"shop_price3": {
"label": "Shop Price",
"label": "Shop Price (3)",
"description": "Shop price, if applicable",
"description": "Shop price, if applicable",
"type": "string"
"type": "string"
}
}
},
},
"sets": [],
"paramOrder": [
"paramOrder": [
"name",
"image",
"image",
"caption-Image",
"type",
"type",
"heading1",
"rarity",
"effects",
"effects",
"rarity",
"shop_price",
"shop_price"
"heading2",
"rarity2",
"effects2",
"shop_price2",
"heading3",
"rarity3",
"effects3",
"shop_price3"
],
],
"format": "block"
"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