Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:WeaponStats: Difference between revisions

Template page
No edit summary
No edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div class="weapon-stats-box">
<includeonly><div class="weapon-stats-box">
  <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|60px}}}]]
[[File:{{{icon_image}}}|{{{icon_width|80px}}}|frameless|link=]]
    </div>
</div>
    <div>
<div class="header-text-container">
      <h1 class="item-name">{{{item_name|[ITEM_NAME]}}}</h1>
<div class="header-title-tier-row">
      <p class="item-type">{{{item_type|[ITEM_TYPE]}}}</p>
<h1 class="item-name">{{{item_name|UNKNOWN ITEM}}}</h1>
    </div>
{{#if:{{{item_tier|}}}|<div class="item-tier-container"><span class="tier-label">TIER</span><span class="tier-value">{{{item_tier}}}</span></div>}}
  </div>
</div>
 
<p class="item-type">{{{item_type|}}}</p>
  <hr class="weapon-separator" />
</div>
 
</div>
  <div class="description-section">{{{description|[DESCRIPTION]}}}</div>
<div class="weapon-separator-double"></div>
 
{{#if:{{{description|}}}|<div class="description-section">{{{description}}}</div>}}
  <hr class="weapon-separator" />
{{#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|}}}|<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:{{{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>}}</div>}}
  <div class="stats-section">
<div class="weapon-separator"></div>
    <div class="stat-row"><span>Damage Multiplier</span> <span>{{{damage_mult|[DAMAGE_MULT]}}}</span></div>
<div class="durability-inventory-row">
    <div class="stat-row"><span>Fire Rate</span> <span>{{{fire_rate|[FIRE_RATE]}}}</span></div>
<div>DURABILITY: {{{current_dur|-}}}/{{{max_dur|-}}} <span class="repair-status">{{{repair_status|}}}</span></div>
    <div class="stat-row"><span>Max Ammo</span> <span>{{{max_ammo|[MAX_AMMO]}}}</span></div>
<div>INVENTORY: {{{inventory_count|0}}}</div>
    <div class="stat-row"><span>Range</span> <span>{{{range|[RANGE]}}}</span></div>
</div>
  </div>
{{#if:{{{gold|}}}{{{silver|}}}|<div class="currency-section">{{#if:{{{gold|}}}|<div class="currency-item"><div class="icon-gold-placeholder"></div> {{{gold}}}</div>}}{{#if:{{{silver|}}}|<div class="currency-item"><div class="icon-silver-placeholder"></div> {{{silver}}}</div>}}</div>}}
 
</div></includeonly><noinclude>
  <hr class="weapon-separator" />
This template is for displaying weapon statistics for The Legend of California.


  <div class="inventory-section">Inventory: {{{inventory_count|[INVENTORY_COUNT]}}}</div>
<templatedata>
 
{
  <div class="durability-section">DURABILITY: {{{current_dur|[CURRENT_DUR]}}}/{{{max_dur|[MAX_DUR]}}} <span class="repair-status">{{{repair_status|[REPAIR_STATUS]}}}</span></div>
"params": {
 
"icon_image": {
  <hr class="weapon-separator" />
"label": "Icon Image",
 
"description": "The exact filename of the uploaded icon (e.g., IronSword.png).",
  <div class="currency-section">
"example": "IronSword.png",
    <div class="currency-item"><div class="icon-gold-placeholder"></div> {{{gold|[GOLD]}}}</div>
"type": "wiki-file-name",
    <div class="currency-item"><div class="icon-silver-placeholder"></div> {{{silver|[SILVER]}}}</div>
"required": true
  </div>
},
</div></includeonly><noinclude>
"icon_width": {
This template is for displaying weapon statistics for The Legend of California.  
"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 ==
Line 42: Line 139:
{{WeaponStats
{{WeaponStats
| icon_image = Exact_Uploaded_Filename.png
| icon_image = Exact_Uploaded_Filename.png
| icon_width = 60px
| icon_width = 80px
| item_name = Name of the weapon
| item_name = Name of the weapon
| item_tier = Item Tier (Optional)
| item_type = Weapon Type
| item_type = Weapon Type
| description = Short description
| description = Short description (Optional)
| damage_mult = Value
| loaded_ammo = Specific ammo loadout (Optional)
| fire_rate = Value
| damage = Value (Optional)
| max_ammo = Value
| damage_mult = Value (Optional)
| range = Value
| fire_rate = Value (Optional)
| max_ammo = Value (Optional)
| range = 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
| gold = Value (Optional)
| silver = Value
| silver = Value (Optional)
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Icon Imageicon_image

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

Example
IronSword.png
Filerequired
Icon Widthicon_width

Width of the icon in pixels.

Default
80px
Example
100px
Stringoptional
Item Nameitem_name

The display name of the weapon.

Example
Golden Revolver
Stringsuggested
Tieritem_tier

The rarity or power tier of the item.

Example
Legendary
Stringoptional
Weapon Typeitem_type

The category of weapon (e.g., Sidearm, Melee).

Example
Pistol
Stringoptional
Descriptiondescription

A short flavor text or mechanical description.

Contentoptional
Loaded Ammoloaded_ammo

Specifies what kind of ammo is currently in the weapon.

Example
.44 Magnum
Stringoptional
Damagedamage

The base damage value.

Stringoptional
Damage Multiplierdamage_mult

The multiplier applied to base damage.

Example
1.5x
Stringoptional
Fire Ratefire_rate

How fast the weapon fires.

Stringoptional
Max Ammomax_ammo

The maximum capacity of the magazine/clip.

Numberoptional
Rangerange

The effective distance of the weapon.

Stringoptional
Inventory Countinventory_count

How many the player currently has.

Default
0
Numberoptional
Current Durabilitycurrent_dur

The remaining durability of the weapon.

Numberoptional
Max Durabilitymax_dur

The maximum durability of the weapon.

Numberoptional
Repair Statusrepair_status

Current status of repairs (e.g., Needs Repair).

Stringoptional
Gold Valuegold

The gold cost or value.

Numberoptional
Silver Valuesilver

The silver cost or value.

Numberoptional

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)
}}
Contents