Template:WeaponStats: Difference between revisions
More actions
No edit summary Tag: Manual revert |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
<div class="weapon-stats-header"> | <div class="weapon-stats-header"> | ||
<div class="weapon-icon-area"> | <div class="weapon-icon-area"> | ||
[[File:{{{icon_image}}}|{{{icon_width|80px}}}|frameless|link=]] | |||
</div> | </div> | ||
<div class="header-text-container"> | <div class="header-text-container"> | ||
| Line 24: | Line 24: | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
This template is for displaying weapon statistics for The Legend of California. | This template is for displaying weapon statistics for The Legend of California. | ||
<templatedata> | |||
{ | |||
"params": { | |||
"icon_image": { | |||
"label": "Icon Image", | |||
"description": "The exact filename of the uploaded icon (e.g., IronSword.png).", | |||
"example": "IronSword.png", | |||
"type": "wiki-file-name", | |||
"required": true | |||
}, | |||
"icon_width": { | |||
"label": "Icon Width", | |||
"description": "Width of the icon in pixels.", | |||
"example": "100px", | |||
"type": "string", | |||
"default": "80px" | |||
}, | |||
"item_name": { | |||
"label": "Item Name", | |||
"description": "The display name of the weapon.", | |||
"example": "Golden Revolver", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"item_tier": { | |||
"label": "Tier", | |||
"description": "The rarity or power tier of the item.", | |||
"example": "Legendary", | |||
"type": "string" | |||
}, | |||
"item_type": { | |||
"label": "Weapon Type", | |||
"description": "The category of weapon (e.g., Sidearm, Melee).", | |||
"example": "Pistol", | |||
"type": "string" | |||
}, | |||
"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.", | |||
"example": ".44 Magnum", | |||
"type": "string" | |||
}, | |||
"damage": { | |||
"label": "Damage", | |||
"description": "The base damage value.", | |||
"type": "string" | |||
}, | |||
"damage_mult": { | |||
"label": "Damage Multiplier", | |||
"description": "The multiplier applied to base damage.", | |||
"example": "1.5x", | |||
"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" | |||
}, | |||
"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" | |||
} | |||
}, | |||
"description": "A standardized box for displaying weapon statistics and durability in The Legend of California.", | |||
"format": "block" | |||
} | |||
</templatedata> | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
Latest revision as of 13:52, 18 March 2026
This template is for displaying weapon statistics for The Legend of California.
A standardized box for displaying weapon statistics and durability in The Legend of California.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Icon Image | icon_image | The exact filename of the uploaded icon (e.g., IronSword.png).
| File | required |
| Icon Width | icon_width | Width of the icon in pixels.
| String | optional |
| Item Name | item_name | The display name of the weapon.
| String | suggested |
| Tier | item_tier | The rarity or power tier of the item.
| String | optional |
| Weapon Type | item_type | The category of weapon (e.g., Sidearm, Melee).
| String | optional |
| Description | description | A short flavor text or mechanical description. | Content | optional |
| Loaded Ammo | loaded_ammo | Specifies what kind of ammo is currently in the weapon.
| String | optional |
| Damage | damage | The base damage value. | String | optional |
| Damage Multiplier | damage_mult | The multiplier applied to base damage.
| String | optional |
| Fire Rate | fire_rate | How fast the weapon fires. | String | optional |
| Max Ammo | max_ammo | The maximum capacity of the magazine/clip. | Number | optional |
| Range | range | The effective distance of the weapon. | String | optional |
| Inventory Count | inventory_count | How many the player currently has.
| Number | optional |
| Current Durability | current_dur | The remaining durability of the weapon. | Number | optional |
| Max Durability | max_dur | The maximum durability of the weapon. | Number | optional |
| Repair Status | repair_status | Current status of repairs (e.g., Needs Repair). | String | optional |
| Gold Value | gold | The gold cost or value. | Number | optional |
| Silver Value | silver | The silver cost or value. | Number | optional |
Usage
{{WeaponStats
| icon_image = Exact_Uploaded_Filename.png
| icon_width = 80px
| item_name = Name of the weapon
| item_tier = Item Tier (Optional)
| item_type = Weapon Type
| description = Short description (Optional)
| loaded_ammo = Specific ammo loadout (Optional)
| damage = Value (Optional)
| damage_mult = Value (Optional)
| fire_rate = Value (Optional)
| max_ammo = Value (Optional)
| range = Value (Optional)
| inventory_count = Quantity
| current_dur = Current value
| max_dur = Max value
| repair_status = Status
| gold = Value (Optional)
| silver = Value (Optional)
}}