Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Item: Difference between revisions

Template page
NekoPillow (talk | contribs)
mNo edit summary
mNo edit summary
 
(92 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{#invoke:Item|Infobox|{{{1|}}}|{{{2|}}}|event={{{event|}}}|name={{{name|}}}}}{{Global}}</includeonly><noinclude>{{documentation}}</noinclude><includeonly>[[id:{{PAGENAME}}]]</includeonly>
<infobox>
    <title source="name"><default>{{PAGENAME}}</default></title>
    <image source="image" width="{{{imagewidth|210}}}px"/>
    <data source="imagecaption"></data>
    <group>
        {{ItemSprite|{{#expr: {{{id|0}}}/2}}}}  {{SeedSprite|{{#expr: {{{id|0}}}/2}}}}  {{TreeSprite|{{#expr: {{{id|0}}}/2}}}}
    </group>
    <group>
        <header>Basic Information</header>
        <data source="name"><label>Name</label><default>{{PAGENAME}}</default></data>
        <data source="rarity"><label>Rarity</label></data>
        <data source="actionType"><label>Category</label><default>{{Item/idNumber|actionType|{{{actionType}}}}}</default></data>
        <data source="editableType"><label>Properties</label><default>{{Item/idNumber|editableType|{{{editableType}}}}}</default></data>
    </group>
    <group>
        <header>Recipe</header>
        {{#if: {{{ingredient1}}} |
        <data>[[{{{ingredient1}}}]] Seed + [[{{{ingredient2}}}]] Seed</data>
        }}
    </group>
    <group>
        <header>Extra Information</header>
        <data source="spreadType"><label>Texture Type</label><default>{{Item/idNumber|spreadType|{{{spreadType}}}}}</default></data>
        <data source="collisionType"><label>Collision Type</label><default>{{Item/idNumber|collisionType|{{{collisionType}}}}}</default></data>
        <data source="clothingType"><label>Clothing Type</label><default>{{Item/idNumber|clothingType|{{{clothingType}}}}}</default></data>
        <data source="hardness"><label>Hardness</label></data>
    </group>
    <group>
        <header>Seed Information</header>
        <data source="growTime"><label>Grow Time</label></data> 
        <data source="seedStyle"><label>Style</label></data>
        <data source="seedColor" style="background-color:#{{seedColor}}"><label>Base Color</label></data>  
        <data source="overlayColor" style="background-color:#{{seedColor}}"><label>Overlay Color</label></data>
    </group>
</infobox>
[[Category:Items]]
</includeonly><noinclude><br style="clear:both;"/>
{{documentation}}</noinclude>

Latest revision as of 20:56, 23 October 2025

Template Documentation [Edit] [History] [Purge]
This is the documentation of Template:Item.

Description:

Display a infobox showing the details of an item in an article.

Usage:

{{Item|Description|Chi}}
Possible Values
Parameter Value Meaning
Chi None None
Earth Earth Chi
Fire Fire Chi
Wind Wind Chi
Water Water Chi

Example:

 Dirt (Rarity: 1)

Yep, it's dirt.
Properties
None
Data
Type Foreground Block - Foreground
Chi Earth
Texture Type 8 Directional
Collision Type Full Collision
Hardness 3 Hits
3 Hits
Restores after 8s of inactivity.
Seed Color
#603913
#A67C52
Grow Time 31s
Default Gems Drop 0 - 1
Paint Preview
None
Red
Yellow
Green
Aqua
Blue
Purple
Charcoal
id:Item