Template:Infobox Item: Difference between revisions

From Guinea Isles Wiki
Created
 
Parameter data
Line 1: Line 1:
{| class="infobox_item"
<noinclude>
<templatedata>
{
    "description": "",
    "params": {
        "item_name": {
            "label": "Name",
            "description": "The display name of the item.",
            "type": "string",
            "required": true
        },
        "image": {
            "label": "Image",
            "description": "The image for the item in 16x16.",
            "type": "wiki-file-name"
        },
        "category": {
            "label": "Category",
            "description": "The items's category as it appears in-game.",
            "type": "string",
            "suggestedvalues": [
        "None",
        "Tool",
        "Container",
        "Weapon",
        "Ammo",
        "Head",
        "Body",
        "Legs",
        "Trinket",
        "Food",
        "Potion",
        "Seeds",
        "Sapling",
        "Crop",
        "Herb",
        "Bait",
        "Fish",
        "Bug",
        "Ingredient",
        "Material",
        "Gem",
        "Junk"
        ]
        },
        "stack_size": {
            "label": "Stack Size",
            "description": "The item's maximum stack size.",
            "type": "number",
            "default": "100"
        },
        "value": {
            "label": "Value",
            "description": "The item's base gold value.",
            "type": "number",
            "default": "1"
        },
        "sellable": {
            "label": "Sellable",
            "description": "Whether the item can be sold.",
            "type": "boolean",
            "default": "true"
        }
    }
}
</templatedata>
</noinclude>
{| class="infobox"
!colspan="2"| {{{item_name|Blank Item}}}
!colspan="2"| {{{item_name|Blank Item}}}
|-
|-

Revision as of 14:04, 18 September 2025

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Nameitem_name

The display name of the item.

Stringrequired
Imageimage

The image for the item in 16x16.

Fileoptional
Categorycategory

The items's category as it appears in-game.

Suggested values
None Tool Container Weapon Ammo Head Body Legs Trinket Food Potion Seeds Sapling Crop Herb Bait Fish Bug Ingredient Material Gem Junk
Stringoptional
Stack Sizestack_size

The item's maximum stack size.

Default
100
Numberoptional
Valuevalue

The item's base gold value.

Default
1
Numberoptional
Sellablesellable

Whether the item can be sold.

Default
true
Booleanoptional
Blank Item
Image Path
Properties
Category Item Category
Max Stack Template:Stack Size
Value 1G
Sellable Yes