Template:Item/doc: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>FANDOM
m 1 revision imported
 
Create: Minecraft Mod Wiki>Joker876
No edit summary
Line 3: Line 3:


== Syntax ==
== Syntax ==
<pre>
{{PsHead}}
{{Item
{{Ps|title|no|string|The title of the infobox.|{{T|PAGENAME|link=w:c:mediawiki:Help:Magic_words#URL_encoded_page_names}}}}
| title         =  
{{Ps|image|no|string|The image.|{{T|PAGENAME|link=w:c:mediawiki:Help:Magic_words#URL_encoded_page_names}}.png}}
| image         = [e.g. "Example.jpg"]
{{Ps|slot|no|any|The item(s) in the slot underneath the image. Set to <code>none</code> to remove. Accepts any input.|<code><nowiki>{{Slot|</nowiki>{{T|PAGENAME|link=w:c:mediawiki:Help:Magic_words#URL_encoded_page_names}}<nowiki>}}</nowiki>}}
| imagecaption  =
{{Ps|type|no|string|The type of the item. Example inputs are "Material", "Tool", "Food", etc.|Item}}
| type          =
{{Ps|rarity|no|string|The {{MC|Rarity}} of the item.}}
| effects      =
{{Ps|durability|no|num|The durability of the item, if applicable.}}
| source        =
{{Ps|renewable|yes|bool|Whether or not the item is [[Renewable resource|Renewable]].|?}}
| buy          =
{{Ps|stackable|yes|bool/num|Whether or not the item is Stackable. Accepts inputs such as <code>Yes (64)</code>.|?}}
| sell          =  
{{Ps|restores|no|number|The amount of {{MC|Hunger}} restored by the food item, if applicable.}}
}}
{{Ps|effects|no|any|The {{MC|Status effect|Status effects}} given upon consuming the food item, if applicable.}}
</pre>
{{PsFoot}}
 
<includeonly>[[Category:Infobox Templates]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
== Sample output ==
{{Item
| title        = Power Flower
| image        = Example.jpg
| type          = Food
| effects      = +1 Fire
| source        = Vendor
| buy          = 5g
| sell          = 1g
}}<pre>
{{Item
| title        = Power Flower
| image        = Example.jpg
| type          = Food
| effects      = +1 Fire
| source        = Vendor
| buy          = 5g
| sell          = 1g
}}
</pre><includeonly>[[Category:Templates|{{PAGENAME}}]][[Category:Templates/Infobox|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 11:30, 28 April 2021

Description

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

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.