Template:Item: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
No edit summary
BoxWithout (talk | contribs)
m 15 revisions imported
 
(8 intermediate revisions by 3 users not shown)
Line 8: Line 8:
<data source="slot">
<data source="slot">
<format>{{#ifeq:{{{slot|}}}|none||{{{slot}}}}}</format>
<format>{{#ifeq:{{{slot|}}}|none||{{{slot}}}}}</format>
<default>{{Slot|{{PAGENAME}}}}</default>
<default>{{Mainonly|{{Slot|{{PAGENAME}}}}}}</default>
</data>
</data>
<data source="type">
<data source="type">
Line 17: Line 17:
</data>
</data>
<data source="durability">
<data source="durability">
<label>{{MC|Item Durability|Durability}}</label>
<label>{{MC|Item_Durability|Durability}}</label>
</data>
</data>
<data source="renewable">
<data source="renewable">
<label>[[Renewable resource|Renewable]]</label>
<label>{{MC|Renewable resource|Renewable}}</label>
<default>?[[Category:Missing renewability]]</default>
<format>{{{renewable}}}{{#switch:{{lc:{{{renewable}}}}}
|no=[[Category:Non-renewable resources]]
|yes=[[Category:Renewable resources]]
|#default=[[Category:Items with invalid renewability]]
}}</format>
<default>?{{Mainonly|[[Category:Missing renewability]]}}</default>
</data>
</data>
<data source="stackable">
<data source="stackable">
<label>Stackable</label>
<label>Stackable</label>
<default>?[[Category:Missing stackability]]</default>
<default>?{{Mainonly|[[Category:Missing stackability]]}}</default>
</data>
</data>
<data source="restores">
<data source="restores">
<label>[[Food Items|Restores]]</label>
<label>{{Mc|Food|Restores}}</label>
<format>{{Hunger|{{{restores|}}}}}</format>
<format>{{Hunger|{{{restores|}}}}}</format>
</data>
</data>
<data source="effects">
<data source="effects">
<label>{{MC|Status effect|Status effects}}</label>
<label>{{MC|Status_effect|Status effects}}</label>
</data>
</data>
</infobox><noinclude>{{Documentation}}</noinclude>
</infobox><noinclude>{{Documentation}}</noinclude>

Latest revision as of 21:33, 14 February 2025

[view | edit | history | purge]Documentation

Description[edit source]

To use this template, add the {{Item}} template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.

Syntax[edit source]

Parameter R? Type Description Default
title
No
/
The title of the infobox. {{PAGENAME}}
image
No
/
The image. {{PAGENAME}}.png
slot
No
/
The item(s) in the slot underneath the image. Set to none to remove. Accepts any input. {{Slot|{{PAGENAME}}}}
type
No
/
The type of the item. Example inputs are "Material", "Tool", "Food", etc. Item
rarity
No
/
The Rarity of the item.
durability
No
/
The durability of the item, if applicable.
renewable
Yes
/
Whether or not the item is Renewable. ?
stackable
Yes
/
Whether or not the item is Stackable. Accepts inputs such as Yes (64). ?
restores
No
/
The amount of Hunger restored by the food item, if applicable.
effects
No
/
The Status effects given upon consuming the food item, if applicable.
[view | edit | history | purge]The above documentation is transcluded from Template:Item/doc.