Template:InfoboxItem/doc: Difference between revisions
Jump to navigation
Jump to search
Created page with "== InfoboxItem Module Variables == === Basic Information === * '''itemName''' - The name of the item * '''image''' - Filename for the item's image * '''alsoCalled''' - Alternative names for the item === Requirement Variables === * '''strength''' - Strength requirement to use the item * '''attack''' - Attack requirement to use the item * '''prayer''' - Prayer requirement to use the item * '''defence''' - Defence requirement to use the item * '''magic''' - Magic requirem..." |
(No difference)
|
Revision as of 02:45, 27 February 2025
InfoboxItem Module Variables
Basic Information
- itemName - The name of the item
- image - Filename for the item's image
- alsoCalled - Alternative names for the item
Requirement Variables
- strength - Strength requirement to use the item
- attack - Attack requirement to use the item
- prayer - Prayer requirement to use the item
- defence - Defence requirement to use the item
- magic - Magic requirement to use the item
- ranged - Ranged requirement to use the item
Property Variables
- tradeable - Whether the item can be traded
- tier - The tier/quality level of the item
- equipable - Whether the item can be equipped
- stackable - Whether multiple items can stack in inventory
- noteable - Whether the item can be converted to a note
- examineText - Text displayed when examining the item
Value Variables
- value - Base value of the item
- highAlch - High alchemy value
- lowAlch - Low alchemy value
- weight - Weight of the item
Local Variables (Internal)
- hasRequirements - Boolean indicating if any requirement exists
- reqFields - Array of requirement field names
- hasProperties - Boolean indicating if any property exists
- propFields - Array of property field names
- hasValues - Boolean indicating if any value exists
- valueFields - Array of value field names
- displayName - Formatted display name for certain fields
Format Note
The infobox is organized into sections:
- Basic information (always shown if provided)
- Requirements section (only shown if at least one requirement exists)
- Properties section (only shown if at least one property exists)
- Values section (only shown if at least one value exists)