Template:Infobox Item: Difference between revisions

From Guinea Isles Wiki
No edit summary
m Protected "Template:Infobox Item" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
{{#invoke:Infobox Item|main}}<noinclude>{{/doc}}</noinclude>
{{Documentation}}
<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"| {{{image|Image Path}}}
|-
!colspan="2"|Properties
|-
| Category || {{{category|Item Category}}}
|-
| Max Stack || {{Stack Size|{{{stack_size|100}}}}}
|-
| Value || {{Gold|{{{value|1}}}}}
|-
| Sellable || {{{sellable|Yes}}}
|}

Latest revision as of 08:24, 19 September 2025

Item
Properties
Value 1G
Stack Size 100
Sellable Yes
Discoverable Yes
Donatable No

A template for in-game items.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Nameitem_name Display Name

The display name of the item in-game.

Default
Blank Item
Example
Plainwood Log
Auto value
Item
Stringrequired
Imageimage

The 16x16 item image.

Filesuggested
Descriptiondesc

If the item has a special description in-game.

Example
Fish 25% faster when used as bait.
Stringoptional
Categorycategory

The item's category in-game.

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

Default maximum stack of the item.

Default
100
Auto value
100
Numberoptional
Valuevalue

The default value of the item in-game.

Default
1
Auto value
1
Numbersuggested
Sellablesellable

Whether the item can be sold to at least one shop.

Default
1
Auto value
1
Booleansuggested
Discoverablediscoverable

Whether the items counts towards in the Items Discovered total in the stats menu.

Default
1
Auto value
1
Booleansuggested
Donatabledonatable

Whether the item can be donated to the museum.

Default
0
Auto value
0
Booleansuggested