Jump to content

Template:ItemEntry: Difference between revisions

From Apogea Wiki
Dane (talk | contribs)
Create ItemEntry template for Cargo data storage (via create-page on MediaWiki MCP Server)
 
Dane (talk | contribs)
Change range to rng (SQL keyword) (via update-page on MediaWiki MCP Server)
Line 6: Line 6:
|type=String
|type=String
|weight=Float
|weight=Float
|range=Integer
|rng=Integer
|damage=Integer
|damage=Integer
|health=Integer
|health=Integer
Line 31: Line 31:
|type={{{type|}}}
|type={{{type|}}}
|weight={{{weight|}}}
|weight={{{weight|}}}
|range={{{range|}}}
|rng={{{rng|}}}
|damage={{{damage|}}}
|damage={{{damage|}}}
|health={{{health|}}}
|health={{{health|}}}

Revision as of 00:34, 28 January 2026

Error: "desc" cannot be used as a Cargo Field name, because it is an SQL keyword.
Documentation
stores item data to the Cargo Items table. Pages using this template are automatically added to Category:Items.

Usage

{{ItemEntry
|name=Item Name
|sprite=Sprite Name
|slot=Equipment Slot
|type=Type1,Type2
|weight=10.5
|rng=2
|damage=10
|health=5
|mana=5
|ability=3
|magic=2
|armor=5
|defense=3
|move_speed=1
|attack_speed=2
|size=6
|container=8
|health_regen=1
|mana_regen=1
|description=Item description text
|rarity=common
}}

Parameters

Parameter Type Description
name String Item name (required)
sprite String Sprite filename (defaults to name if omitted)
slot String Equipment slot (e.g., Weapon, Feet, Head)
type List Item types, comma-separated (e.g., Light Armor,Light Boots). Creates a category for each type.
weight Float Weight in oz
rng Integer Attack range
damage Integer Damage value
health Integer HP bonus
mana Integer MP bonus
ability Integer Ability bonus
magic Integer Magic bonus
armor Integer Armor value
defense Integer Defense bonus
move_speed Integer Movement speed bonus
attack_speed Integer Attack speed bonus
size Integer Equip size (1-10)
container Integer Container slots
health_regen Integer HP regeneration bonus
mana_regen Integer MP regeneration bonus
description Text In-game item description
rarity String Item rarity (common, uncommon, rare, epic, legendary)

Example

{{ItemEntry
|name=Leather Boots
|sprite=Leather Boots
|slot=Feet
|type=Light Armor,Light Boots
|armor=1
|health_regen=1
|weight=10
|rarity=common
}}

Notes

  • Use with {{Infobox Item|Item Name}} to display the item infobox
  • After adding or modifying entries, you may need to purge the page or recreate the Cargo table
  • Omit parameters that don't apply to the item
The above documentation is transcluded from Template:ItemEntry/doc. Edit