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
No edit summary
No edit summary
Line 16: Line 16:
{{#if:{{{loaded_ammo|}}}|<div class="loaded-ammo"><span class="ammo-icon">✦</span> Loaded with: {{{loaded_ammo}}}</div>}}
{{#if:{{{loaded_ammo|}}}|<div class="loaded-ammo"><span class="ammo-icon">✦</span> Loaded with: {{{loaded_ammo}}}</div>}}
{{#if:{{{damage|}}}{{{damage_mult|}}}{{{fire_rate|}}}{{{max_ammo|}}}{{{range|}}}{{{defense|}}}{{{melee_damage|}}}{{{mining_strength|}}}{{{mining_area|}}}{{{mining_yield|}}}{{{comfort|}}}{{{hunger_restored|}}}|<div class="weapon-separator"></div><div class="stats-section">{{#if:{{{damage|}}}|<div class="stat-row"><span>Damage</span> <span>{{{damage}}}</span></div>}}{{#if:{{{damage_mult|}}}|<div class="stat-row"><span>Damage Multiplier</span> <span>{{{damage_mult}}}</span></div>}}{{#if:{{{melee_damage|}}}|<div class="stat-row"><span>Melee Damage</span> <span>{{{melee_damage}}}</span></div>}}{{#if:{{{defense|}}}|<div class="stat-row"><span>Defense</span> <span>{{{defense}}}</span></div>}}{{#if:{{{fire_rate|}}}|<div class="stat-row"><span>Fire Rate</span> <span>{{{fire_rate}}}</span></div>}}{{#if:{{{max_ammo|}}}|<div class="stat-row"><span>Max Ammo</span> <span>{{{max_ammo}}}</span></div>}}{{#if:{{{range|}}}|<div class="stat-row"><span>Range</span> <span>{{{range}}}</span></div>}}{{#if:{{{mining_strength|}}}|<div class="stat-row"><span>Mining Strength</span> <span>{{{mining_strength}}}</span></div>}}{{#if:{{{mining_area|}}}|<div class="stat-row"><span>Mining Area</span> <span>{{{mining_area}}}</span></div>}}{{#if:{{{mining_yield|}}}|<div class="stat-row"><span>Mining Yield</span> <span>{{{mining_yield}}}</span></div>}}{{#if:{{{comfort|}}}|<div class="stat-row"><span>Comfort</span> <span>{{{comfort}}}</span></div>}}{{#if:{{{hunger_restored|}}}|<div class="stat-row"><span>Hunger Restored</span> <span>{{{hunger_restored}}}</span></div>}}</div>}}
{{#if:{{{damage|}}}{{{damage_mult|}}}{{{fire_rate|}}}{{{max_ammo|}}}{{{range|}}}{{{defense|}}}{{{melee_damage|}}}{{{mining_strength|}}}{{{mining_area|}}}{{{mining_yield|}}}{{{comfort|}}}{{{hunger_restored|}}}|<div class="weapon-separator"></div><div class="stats-section">{{#if:{{{damage|}}}|<div class="stat-row"><span>Damage</span> <span>{{{damage}}}</span></div>}}{{#if:{{{damage_mult|}}}|<div class="stat-row"><span>Damage Multiplier</span> <span>{{{damage_mult}}}</span></div>}}{{#if:{{{melee_damage|}}}|<div class="stat-row"><span>Melee Damage</span> <span>{{{melee_damage}}}</span></div>}}{{#if:{{{defense|}}}|<div class="stat-row"><span>Defense</span> <span>{{{defense}}}</span></div>}}{{#if:{{{fire_rate|}}}|<div class="stat-row"><span>Fire Rate</span> <span>{{{fire_rate}}}</span></div>}}{{#if:{{{max_ammo|}}}|<div class="stat-row"><span>Max Ammo</span> <span>{{{max_ammo}}}</span></div>}}{{#if:{{{range|}}}|<div class="stat-row"><span>Range</span> <span>{{{range}}}</span></div>}}{{#if:{{{mining_strength|}}}|<div class="stat-row"><span>Mining Strength</span> <span>{{{mining_strength}}}</span></div>}}{{#if:{{{mining_area|}}}|<div class="stat-row"><span>Mining Area</span> <span>{{{mining_area}}}</span></div>}}{{#if:{{{mining_yield|}}}|<div class="stat-row"><span>Mining Yield</span> <span>{{{mining_yield}}}</span></div>}}{{#if:{{{comfort|}}}|<div class="stat-row"><span>Comfort</span> <span>{{{comfort}}}</span></div>}}{{#if:{{{hunger_restored|}}}|<div class="stat-row"><span>Hunger Restored</span> <span>{{{hunger_restored}}}</span></div>}}</div>}}
{{#if:{{{special_stat_1_name|}}}{{{special_stat_2_name|}}}{{{special_stat_3_name|}}}{{{special_stat_4_name|}}}|<div class="special-stats-section">
{{#if:{{{special_stat_1_name|}}}|<div class="special-stat-group"><div class="special-stat-title">{{{special_stat_1_name}}}</div>{{#if:{{{special_stat_1_text_1|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_1_text_1}}}</div>}}{{#if:{{{special_stat_1_text_2|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_1_text_2}}}</div>}}{{#if:{{{special_stat_1_text_3|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_1_text_3}}}</div>}}{{#if:{{{special_stat_1_text_4|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_1_text_4}}}</div>}}</div>}}
{{#if:{{{special_stat_2_name|}}}|<div class="special-stat-group"><div class="special-stat-title">{{{special_stat_2_name}}}</div>{{#if:{{{special_stat_2_text_1|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_2_text_1}}}</div>}}{{#if:{{{special_stat_2_text_2|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_2_text_2}}}</div>}}{{#if:{{{special_stat_2_text_3|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_2_text_3}}}</div>}}{{#if:{{{special_stat_2_text_4|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_2_text_4}}}</div>}}</div>}}
{{#if:{{{special_stat_3_name|}}}|<div class="special-stat-group"><div class="special-stat-title">{{{special_stat_3_name}}}</div>{{#if:{{{special_stat_3_text_1|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_3_text_1}}}</div>}}{{#if:{{{special_stat_3_text_2|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_3_text_2}}}</div>}}{{#if:{{{special_stat_3_text_3|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_3_text_3}}}</div>}}{{#if:{{{special_stat_3_text_4|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_3_text_4}}}</div>}}</div>}}
{{#if:{{{special_stat_4_name|}}}|<div class="special-stat-group"><div class="special-stat-title">{{{special_stat_4_name}}}</div>{{#if:{{{special_stat_4_text_1|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_4_text_1}}}</div>}}{{#if:{{{special_stat_4_text_2|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_4_text_2}}}</div>}}{{#if:{{{special_stat_4_text_3|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_4_text_3}}}</div>}}{{#if:{{{special_stat_4_text_4|}}}|<div class="special-stat-item"><span class="special-stat-bullet">✦</span> {{{special_stat_4_text_4}}}</div>}}</div>}}
</div>}}
<div class="weapon-separator"></div>
<div class="weapon-separator"></div>
<div class="durability-inventory-row">
<div class="durability-inventory-row">
Line 27: Line 33:
<templatedata>
<templatedata>
{
{
"description": "A standardized box for displaying weapon and item statistics in The Legend of California.",
    "description": "A standardized box for displaying weapon and item statistics in The Legend of California.",
"format": "block",
    "format": "block",
"params": {
    "params": {
"icon_image": {
        "icon_image": { "label": "Icon Image", "description": "The exact filename of the uploaded icon (e.g., IronSword.png).", "type": "wiki-file-name", "required": true },
"label": "Icon Image",
        "icon_width": { "label": "Icon Width", "description": "Width of the icon in pixels.", "type": "string", "default": "80px" },
"description": "The exact filename of the uploaded icon (e.g., IronSword.png).",
        "item_name": { "label": "Item Name", "description": "The display name of the weapon.", "type": "string", "suggested": true },
"example": "IronSword.png",
        "item_tier": { "label": "Tier", "description": "The rarity or power tier of the item.", "type": "string" },
"type": "wiki-file-name",
        "item_type": { "label": "Item Type", "description": "The category of weapon or item (e.g., Sidearm, Pickaxe, Food).", "type": "string" },
"required": true
        "description": { "label": "Description", "description": "A short flavor text or mechanical description.", "type": "content" },
},
        "loaded_ammo": { "label": "Loaded Ammo", "description": "Specifies what kind of ammo is currently in the weapon.", "type": "string" },
"icon_width": {
        "damage": { "label": "Damage", "type": "string" },
"label": "Icon Width",
        "damage_mult": { "label": "Damage Multiplier", "type": "string" },
"description": "Width of the icon in pixels.",
        "melee_damage": { "label": "Melee Damage", "type": "string" },
"example": "100px",
        "defense": { "label": "Defense", "type": "string" },
"type": "string",
        "fire_rate": { "label": "Fire Rate", "type": "string" },
"default": "80px"
        "max_ammo": { "label": "Max Ammo", "type": "number" },
},
        "range": { "label": "Range", "type": "string" },
"item_name": {
        "mining_strength": { "label": "Mining Strength", "type": "string" },
"label": "Item Name",
        "mining_area": { "label": "Mining Area", "type": "string" },
"description": "The display name of the weapon.",
        "mining_yield": { "label": "Mining Yield", "type": "string" },
"example": "Golden Revolver",
        "comfort": { "label": "Comfort", "type": "string" },
"type": "string",
        "hunger_restored": { "label": "Hunger Restored", "type": "string" },
"suggested": true
        "special_stat_1_name": { "label": "Special Stat 1 Name", "description": "Title for the 1st special stats group (e.g., Bonus Effects)", "type": "string" },
},
        "special_stat_1_text_1": { "label": "Special Stat 1 - Text 1", "type": "string" },
"item_tier": {
        "special_stat_1_text_2": { "label": "Special Stat 1 - Text 2", "type": "string" },
"label": "Tier",
        "special_stat_1_text_3": { "label": "Special Stat 1 - Text 3", "type": "string" },
"description": "The rarity or power tier of the item.",
        "special_stat_1_text_4": { "label": "Special Stat 1 - Text 4", "type": "string" },
"example": "Legendary",
        "special_stat_2_name": { "label": "Special Stat 2 Name", "description": "Title for the 2nd special stats group", "type": "string" },
"type": "string"
        "special_stat_2_text_1": { "label": "Special Stat 2 - Text 1", "type": "string" },
},
        "special_stat_2_text_2": { "label": "Special Stat 2 - Text 2", "type": "string" },
"item_type": {
        "special_stat_2_text_3": { "label": "Special Stat 2 - Text 3", "type": "string" },
"label": "Item Type",
        "special_stat_2_text_4": { "label": "Special Stat 2 - Text 4", "type": "string" },
"description": "The category of weapon or item (e.g., Sidearm, Pickaxe, Food).",
        "special_stat_3_name": { "label": "Special Stat 3 Name", "description": "Title for the 3rd special stats group", "type": "string" },
"example": "Pistol",
        "special_stat_3_text_1": { "label": "Special Stat 3 - Text 1", "type": "string" },
"type": "string"
        "special_stat_3_text_2": { "label": "Special Stat 3 - Text 2", "type": "string" },
},
        "special_stat_3_text_3": { "label": "Special Stat 3 - Text 3", "type": "string" },
"description": {
        "special_stat_3_text_4": { "label": "Special Stat 3 - Text 4", "type": "string" },
"label": "Description",
        "special_stat_4_name": { "label": "Special Stat 4 Name", "description": "Title for the 4th special stats group", "type": "string" },
"description": "A short flavor text or mechanical description.",
        "special_stat_4_text_1": { "label": "Special Stat 4 - Text 1", "type": "string" },
"type": "content"
        "special_stat_4_text_2": { "label": "Special Stat 4 - Text 2", "type": "string" },
},
        "special_stat_4_text_3": { "label": "Special Stat 4 - Text 3", "type": "string" },
"loaded_ammo": {
        "special_stat_4_text_4": { "label": "Special Stat 4 - Text 4", "type": "string" },
"label": "Loaded Ammo",
        "inventory_count": { "label": "Inventory Count", "type": "number", "default": "0" },
"description": "Specifies what kind of ammo is currently in the weapon.",
        "current_dur": { "label": "Current Durability", "type": "number" },
"example": ".44 Magnum",
        "max_dur": { "label": "Max Durability", "type": "number" },
"type": "string"
        "repair_status": { "label": "Repair Status", "type": "string" },
},
        "gold": { "label": "Gold Value", "type": "number" },
"damage": {
        "silver": { "label": "Silver Value", "type": "number" }
"label": "Damage",
    }
"description": "The base ranged or primary damage value.",
"type": "string"
},
"damage_mult": {
"label": "Damage Multiplier",
"description": "The multiplier applied to base damage.",
"example": "1.5x",
"type": "string"
},
"melee_damage": {
"label": "Melee Damage",
"description": "Damage dealt in hand-to-hand combat.",
"type": "string"
},
"defense": {
"label": "Defense",
"description": "Damage reduction or armor value provided.",
"type": "string"
},
"fire_rate": {
"label": "Fire Rate",
"description": "How fast the weapon fires.",
"type": "string"
},
"max_ammo": {
"label": "Max Ammo",
"description": "The maximum capacity of the magazine/clip.",
"type": "number"
},
"range": {
"label": "Range",
"description": "The effective distance of the weapon.",
"type": "string"
},
"mining_strength": {
"label": "Mining Strength",
"description": "Power level for breaking blocks or nodes.",
"type": "string"
},
"mining_area": {
"label": "Mining Area",
"description": "The size of the area mined (e.g., 3x3).",
"type": "string"
},
"mining_yield": {
"label": "Mining Yield",
"description": "Bonus to resources gathered.",
"type": "string"
},
"comfort": {
"label": "Comfort",
"description": "Comfort value provided by furniture or clothing.",
"type": "string"
},
"hunger_restored": {
"label": "Hunger Restored",
"description": "Amount of hunger filled when consumed.",
"type": "string"
},
"inventory_count": {
"label": "Inventory Count",
"description": "How many the player currently has.",
"type": "number",
"default": "0"
},
"current_dur": {
"label": "Current Durability",
"description": "The remaining durability of the weapon.",
"type": "number"
},
"max_dur": {
"label": "Max Durability",
"description": "The maximum durability of the weapon.",
"type": "number"
},
"repair_status": {
"label": "Repair Status",
"description": "Current status of repairs (e.g., Needs Repair).",
"type": "string"
},
"gold": {
"label": "Gold Value",
"description": "The gold cost or value.",
"type": "number"
},
"silver": {
"label": "Silver Value",
"description": "The silver cost or value.",
"type": "number"
}
}
}
}
</templatedata>
</templatedata>
Line 182: Line 97:
| damage = Value (Optional)
| damage = Value (Optional)
| damage_mult = Value (Optional)
| damage_mult = Value (Optional)
| melee_damage = Value (Optional)
| special_stat_1_name = Bonus Effects
| defense = Value (Optional)
| special_stat_1_text_1 = Shots knockback enemies
| fire_rate = Value (Optional)
| special_stat_1_text_2 = +10% Fire Damage
| max_ammo = Value (Optional)
| range = Value (Optional)
| mining_strength = Value (Optional)
| mining_area = Value (Optional)
| mining_yield = Value (Optional)
| comfort = Value (Optional)
| hunger_restored = Value (Optional)
| inventory_count = Quantity
| inventory_count = Quantity
| current_dur = Current value
| current_dur = Current value
| max_dur = Max value
| max_dur = Max value
| repair_status = Status
| repair_status = Status
| gold = Value (Optional)
| silver = Value (Optional)
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>
<includeonly>[[Category:Items]]</includeonly>
<includeonly>[[Category:Items]]</includeonly>

Revision as of 15:07, 19 March 2026

This template is for displaying item and weapon statistics for The Legend of California.

A standardized box for displaying weapon and item statistics in The Legend of California.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Icon Imageicon_image

The exact filename of the uploaded icon (e.g., IronSword.png).

Filerequired
Icon Widthicon_width

Width of the icon in pixels.

Default
80px
Stringoptional
Item Nameitem_name

The display name of the weapon.

Stringsuggested
Tieritem_tier

The rarity or power tier of the item.

Stringoptional
Item Typeitem_type

The category of weapon or item (e.g., Sidearm, Pickaxe, Food).

Stringoptional
Descriptiondescription

A short flavor text or mechanical description.

Contentoptional
Loaded Ammoloaded_ammo

Specifies what kind of ammo is currently in the weapon.

Stringoptional
Damagedamage

no description

Stringoptional
Damage Multiplierdamage_mult

no description

Stringoptional
Melee Damagemelee_damage

no description

Stringoptional
Defensedefense

no description

Stringoptional
Fire Ratefire_rate

no description

Stringoptional
Max Ammomax_ammo

no description

Numberoptional
Rangerange

no description

Stringoptional
Mining Strengthmining_strength

no description

Stringoptional
Mining Areamining_area

no description

Stringoptional
Mining Yieldmining_yield

no description

Stringoptional
Comfortcomfort

no description

Stringoptional
Hunger Restoredhunger_restored

no description

Stringoptional
Special Stat 1 Namespecial_stat_1_name

Title for the 1st special stats group (e.g., Bonus Effects)

Stringoptional
Special Stat 1 - Text 1special_stat_1_text_1

no description

Stringoptional
Special Stat 1 - Text 2special_stat_1_text_2

no description

Stringoptional
Special Stat 1 - Text 3special_stat_1_text_3

no description

Stringoptional
Special Stat 1 - Text 4special_stat_1_text_4

no description

Stringoptional
Special Stat 2 Namespecial_stat_2_name

Title for the 2nd special stats group

Stringoptional
Special Stat 2 - Text 1special_stat_2_text_1

no description

Stringoptional
Special Stat 2 - Text 2special_stat_2_text_2

no description

Stringoptional
Special Stat 2 - Text 3special_stat_2_text_3

no description

Stringoptional
Special Stat 2 - Text 4special_stat_2_text_4

no description

Stringoptional
Special Stat 3 Namespecial_stat_3_name

Title for the 3rd special stats group

Stringoptional
Special Stat 3 - Text 1special_stat_3_text_1

no description

Stringoptional
Special Stat 3 - Text 2special_stat_3_text_2

no description

Stringoptional
Special Stat 3 - Text 3special_stat_3_text_3

no description

Stringoptional
Special Stat 3 - Text 4special_stat_3_text_4

no description

Stringoptional
Special Stat 4 Namespecial_stat_4_name

Title for the 4th special stats group

Stringoptional
Special Stat 4 - Text 1special_stat_4_text_1

no description

Stringoptional
Special Stat 4 - Text 2special_stat_4_text_2

no description

Stringoptional
Special Stat 4 - Text 3special_stat_4_text_3

no description

Stringoptional
Special Stat 4 - Text 4special_stat_4_text_4

no description

Stringoptional
Inventory Countinventory_count

no description

Default
0
Numberoptional
Current Durabilitycurrent_dur

no description

Numberoptional
Max Durabilitymax_dur

no description

Numberoptional
Repair Statusrepair_status

no description

Stringoptional
Gold Valuegold

no description

Numberoptional
Silver Valuesilver

no description

Numberoptional

Usage

{{WeaponStats
| icon_image = Exact_Uploaded_Filename.png
| icon_width = 80px
| item_name = Name of the weapon/item
| item_tier = Item Tier (Optional)
| item_type = Weapon/Item Type
| description = Short description (Optional)
| loaded_ammo = Specific ammo loadout (Optional)
| damage = Value (Optional)
| damage_mult = Value (Optional)
| special_stat_1_name = Bonus Effects
| special_stat_1_text_1 = Shots knockback enemies
| special_stat_1_text_2 = +10% Fire Damage
| inventory_count = Quantity
| current_dur = Current value
| max_dur = Max value
| repair_status = Status
}}


Contents