Jump to content

Template:Equipment: Difference between revisions

mNo edit summary
Added autoheaders parameter
 
(34 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table style="width:100%; border-collapse:collapse;">
<div style="display: flex; flex-direction: row; align-items: center; width:100%; border-collapse: collapse;">
<tr>
    <!-- Image Column -->
   <td>
   <div style="display: flex; flex-direction: column; border:0; padding:10px;">
    <div style="width:100%; padding:0; margin:0;">
    <div style="text-align: center;">
       [[File:{{{image|}}}|500px|link=|class=none|border=]]
       {{#if: {{{image|}}} | [[File:{{{image}}}|500px|link=|class=none|frameless]] }}
  </div>
      {{#if: {{{image1|}}} | [[File:{{{image1}}}|500px|link=|class=none|frameless]] }}
  </td>
      {{#if: {{{image2|}}} | [[File:{{{image2}}}|500px|link=|class=none|frameless]] }}
  <td style="vertical-align:top; border:0; padding:0;">
     </div>
    {{Infobox
  </div>
    |titlestyle    = text-align:center; font-weight:bold; border:1px solid #aaa;
    |bodystyle    = border:1px solid #aaa; border-collapse:collapse;
    |labelstyle    = border:1px solid #aaa; padding:4px;
     |datastyle    = border:1px solid #aaa; padding:4px;


     |title        = {{{title|}}}
<!-- Info Column -->
<div style="display: flex; flex-direction: column; align-items: center; border:0; padding:10px; width:65%;">
  {{Infobox
     |titlestyle  = text-align:center; font-weight:bold; font-size:1.2em; background-color:#dcdcdc; border:1px solid #aaa;
    |bodystyle  = border:1px solid #aaa; background-color:#f9f9f9;
    |labelstyle  = border:1px solid #ccc; padding:6px; font-weight:bold; background-color:#eeeeee;
    |datastyle  = border:1px solid #ccc; padding:6px; background-color:#ffffff;
    |autoheaders = y


     |label1        = Type
     |title      = {{{title|}}}
    |data1        = {{{type|}}}


     |label2       = Crafting Resources
    <!-- Basic Info -->
     |data2         = {{{crafting|}}}
    |label1      = Type
    |data1      = {{{type|}}}
     |label2     = Crafting Resources
     |data2       = {{{crafting|}}}


     |header3      = Stats
    <!-- Weapon Stats: 10–29 -->
     |label4        = Attack Damage
     |header10    = Stats
     |data4        = {{{attack_damage|}}}
     |label11    = Attack Damage
     |label5        = Attack Speed
     |data11      = {{{attack_damage|}}}
     |data5        = {{{attack_speed|}}}
     |label12    = Attack Speed
     |label6        = Combat Range
     |data12      = {{{attack_speed|}}}
     |data6        = {{{combat_range|}}}
     |label13    = Combat Range
     |label7        = Arrow Velcocity
     |data13      = {{{combat_range|}}}
     |data7        = {{{arrow_velocity|}}}
     |label14    = Arrow Velocity
     |data14      = {{{arrow_velocity|}}}
    |label15    = Weapon Damage
    |data15      = {{{weapon_damage|}}}
    |label16    = PvE Damage
    |data16      = {{{pve_damage|}}}
    |label17    = Lifesteal
    |data17      = {{{lifesteal|}}}
    |label18    = Accuracy
    |data18      = {{{accuracy|}}}
    |label19    = Blunt Power
    |data19      = {{{blunt_power|}}}
    |label20    = Blunt Rating
    |data20      = {{{blunt_rating|}}}


     |label8        = Dodge Rating
    <!-- Armor Stats: 40–59 -->
     |data8        = {{{dodge_rating|}}}
     |label41    = Dodge Rating
     |label9        = Armor  
     |data41      = {{{dodge_rating|}}}
     |data9        = {{{armor|}}}
     |label42    = Armor
     |label10      = Armor Toughness  
     |data42      = {{{armor|}}}
     |data10        = {{{armor_toughness|}}}
     |label43    = Armor Toughness
     |label11      = Movement Speed
     |data43      = {{{armor_toughness|}}}
     |data11        = {{{movement_speed|}}}
     |label44    = Movement Speed
     |data44      = {{{movement_speed|}}}
    |label45    = Mining Speed
    |data45      = {{{mining_speed|}}}
    |label46    = Fall Damage Reduction
    |data46      = {{{fall_damage_reduction|}}}
    |label47    = Sneaking Speed
    |data47      = {{{sneaking_speed|}}}
    |label48    = Jump Strength
    |data48      = {{{jump_strength|}}}
    |label49    = Knockback Resistance
    |data49      = {{{knockback_resistance|}}}
    |label50    = Max Absorption
    |data50      = {{{max_absorption|}}}
    |label51    = Defense
    |data51      = {{{defense|}}}
    |label52    = PvE Damage Reduction
    |data52      = {{{pve_damage_reduction|}}}
    |label53    = Projectile Damage Reduction
    |data53      = {{{projectile_damage_reduction|}}}
    |label54    = Physical Damage Reduction
    |data54      = {{{physical_damage_reduction|}}}
    |label55    = Block Power
    |data55      = {{{block_power|}}}
    |label56    = Block Cooldown Reduction
    |data56      = {{{block_cooldown_reduction|}}}
    |label57    = Health
    |data57      = {{{health|}}}
    |label58    = Safe Fall Distance
    |data58      = {{{safe_fall_distance|}}}
    |label59    = Projectile Damage
    |data59      = {{{projectile_damage|}}}


    <!-- Rune Stats: 80–99 -->
    |label81    = Underwater Mining Speed
    |data81      = {{{underwater_mining_speed|}}}
    |label82    = Mining Efficiency
    |data82      = {{{mining_efficiency|}}}
    |label83    = Gun Range
    |data83      = {{{range|}}}


    <!-- Additional Info: 120–139 -->
    |header120  = Other Information
    |label121    = Rune Slots
    |data121    = {{{rune_slots|}}}
    |label122    = Ability
    |data122    = {{{ability|}}}
    |label123    = Armor Grade
    |data123    = {{{armor_grade|}}}
    |label124    = Handling
    |data124    = {{{handling|}}}
    |label125    = Tier
    |data125    = {{{tier|}}}
    |label126    = Enchantment
    |data126    = {{{enchantment|}}}
    |label127    = Effect
    |data127    = {{{effect|}}}
    |label128    = Max Stack Size
    |data128    = {{{stack_size|}}}


     |header12      = Other information
     <!-- Notes -->
     |label13        = Rune Slots
     |header160  = Notes
     |data13        = {{{rune_slots|}}}
     |data161     = {{{notes|}}}
     |label14        = Ability
     |data161style = border:1px solid #aaa; padding:6px; font-style:italic; text-align:left; background-color:#f9f9f9;
    |data14        = {{{ability|}}}
  }}
     |label15        = Tier
</div>
    |data15        = {{{tier|}}}
</div>
    }}
  </td>
</tr>
</table>
</includeonly>
</includeonly>
<noinclude>The '''Equipment''' template is used to document custom weapons, armor, and tools on Alathra. It supports up to '''3 images''' and a range of stats for combat and utility equipment.


== Parameters ==
This template accepts various parameters depending on the item type. Parameters are grouped by category:


=== General ===
; <code>title</code>
: Name of the item.
; <code>image</code>, <code>image1</code>, <code>image2</code>
: Up to 3 images displayed on the left.
; <code>type</code>
: Type of equipment (e.g., Sword, Helmet, Pickaxe).
; <code>crafting</code>
: Crafting recipe (supports lists).


<noinclude>
=== Weapon Stats ===
== Description ==
; <code>attack_damage</code>
This template is used for custom weapons and armor on Alathra.  
: Base attack damage.
; <code>attack_speed</code>
: Attacks per second.
; <code>combat_range</code>
: Effective combat range.
; <code>arrow_velocity</code>
: Projectile speed.
; <code>weapon_damage</code>
: Overall weapon damage including bonuses.
; <code>pve_damage</code>
: Extra damage to mobs/creatures.
; <code>lifesteal</code>
: Life gained per hit.
; <code>accuracy</code>
: Chance to hit or hit precision.


== Weapon Example ==
=== Armor Stats ===
===Code===
; <code>dodge_rating</code>
: Chance to avoid incoming attacks.
; <code>armor</code>
: Basic armor value.
; <code>armor_toughness</code>
: Resistance to stronger attacks.
; <code>movement_speed</code>
: Speed bonus/penalty when worn.
; <code>mining_speed</code>
: Effect on block mining.
; <code>fall_damage_reduction</code>
: Reduced damage from falling.
; <code>sneaking_speed</code>
: Movement speed while sneaking.
; <code>jump_strength</code>
: Jump height or distance.
; <code>knockback_resistance</code>
: Resistance to knockback effects.
; <code>max_absorption</code>
: Maximum absorption hearts added.
; <code>defense</code>
: Total defensive rating.
; <code>pve_damage_reduction</code>
: Damage reduction from mobs.
; <code>projectile_damage_reduction</code>
: Resistance to arrows, bolts, etc.
; <code>physical_damage_reduction</code>
: General melee damage resistance.
; <code>block_power</code>
: Effectiveness when blocking.
; <code>block_cooldown_reduction</code>
: Reduced cooldown between blocks.
; <code>health</code>
: Bonus health provided.
; <code>safe_fall_distance</code>
: Maximum height fallen without damage.
 
=== Rune Stats ===
; <code>underwater_mining_speed</code>
: Mining speed underwater.
; <code>mining_efficiency</code>
: Boost to tool efficiency (yield/durability/etc).
 
=== Other Information ===
; <code>rune_slots</code>
: Number and types of rune slots (supports lists).
; <code>ability</code>
: Special ability granted by item.
; <code>handling</code>
: Ease of use or responsiveness.
; <code>tier</code>
: Item tier/level classification.
; <code>armor_grade</code>
: Quality or grade of the armor.
 
=== Notes ===
; <code>notes</code>
: Miscellaneous notes or strategy tips (supports formatting).
 
 
== Examples ==
 
=== Weapon Example – Copper Dagger ===
==== Code ====
<pre>
<pre>
{{Weapons
{{Equipment
| title = Copper Dagger
| title = Copper Dagger
| image = Copper Dagger recipe.png
| image = Copper Dagger recipe.png
| image1 = Copper Dagger recipe.png
| image2 = Copper Dagger recipe.png
| type = Dagger
| type = Dagger
| crafting =  
| crafting =  
Line 73: Line 234:
* 1 Copper Ingot
* 1 Copper Ingot
* 1 Copper Nugget
* 1 Copper Nugget
| attack_damage = 4.5
| attack_damage = N/A
| attack_speed = 2.2
| attack_speed = N/A
| combat_range = -1
| combat_range = N/A
| rune_slots =  
| rune_slots =  
* 1 Red Rune slot
* 1 Red Rune slot
| handling = One-handed
| tier = Stone
| tier = Stone
}}
}}
</pre>
</pre>
===How it looks===
 
{{Weapons
==== How it looks ====
{{Equipment
| title = Copper Dagger
| title = Copper Dagger
| image = Copper Dagger recipe.png
| image = Copper Dagger recipe.png
| image1 = Copper Dagger recipe.png
| image2 = Copper Dagger recipe.png
| type = Dagger
| type = Dagger
| crafting =  
| crafting =  
Line 90: Line 255:
* 1 Copper Ingot
* 1 Copper Ingot
* 1 Copper Nugget
* 1 Copper Nugget
| attack_damage = 2.2
| attack_damage = N/A
| attack_speed = 2.2
| attack_speed = N/A
| combat_range = -1
| combat_range = N/A
| rune_slots =  
| rune_slots =  
* 1 Red Rune slot
* 1 Red Rune slot
| handling = One-handed
| tier = Stone
| tier = Stone
}}
}}


== Armor Example ==
=== Armor Example – Wooden Helmet ===
===Code===
==== Code ====
<pre>
<pre>
{{Weapons
{{Equipment
| title = Wooden Helmet
| title = Wooden Helmet
| image = Wooden Helmet recipe.png
| image = Wooden Helmet recipe.png
Line 107: Line 273:
| crafting =  
| crafting =  
* 5 Oak Log
* 5 Oak Log
| dodge_rating = +2%
| dodge_rating = N/A
| armor = +1
| armor = N/A
| armor_toughness = +0.1
| armor_toughness = N/A
| movement_speed = +0.1
| movement_speed = N/A
| rune_slots =  
| rune_slots =  
* 1 Blue Rune slot
* 1 Blue Rune slot
| armor_grade = Light
| tier = Wood
| tier = Wood
| notes = Can be made with all wood types and all stripped wood types.
}}
}}
</pre>
</pre>
===How it looks===
 
{{Weapons
==== How it looks ====
{{Equipment
| title = Wooden Helmet
| title = Wooden Helmet
| image = Wooden Helmet recipe.png
| image = Wooden Helmet recipe.png
Line 123: Line 292:
| crafting =  
| crafting =  
* 5 Oak Log
* 5 Oak Log
| dodge_rating = +2%
| dodge_rating = N/A
| armor = +1
| armor = N/A
| armor_toughness = +0.1
| armor_toughness = N/A
| movement_speed = +0.1
| movement_speed = N/A
| rune_slots =  
| rune_slots =  
* 1 Blue Rune slot
* 1 Blue Rune slot
| armor_grade = Light
| tier = Wood
| tier = Wood
| notes = Can be made with all wood types and all stripped wood types.
}}
}}
=== Tool Example – Wooden Pickaxe ===
==== Code ====
<pre>
{{Equipment
| title = Wooden Pickaxe
| image = Wooden Pickaxe recipe.png
| type = Pickaxe
| crafting =
* 2 Stick
* 3 Oak Planks
| attack_damage = N/A
| attack_speed = N/A
| mining_speed = N/A
| rune_slots =
* None
| notes = Any wood type can be used.
}}
</pre>
==== How it looks ====
{{Equipment
| title = Wooden Pickaxe
| image = Wooden Pickaxe recipe.png
| type = Pickaxe
| crafting =
* 2 Stick
* 3 Oak Planks
| attack_damage = N/A
| attack_speed = N/A
| mining_speed = N/A
| rune_slots =
* None
| notes = Any wood type can be used.
}}
</noinclude>
</noinclude>

Latest revision as of 01:39, 1 July 2025

The Equipment template is used to document custom weapons, armor, and tools on Alathra. It supports up to 3 images and a range of stats for combat and utility equipment.

Parameters

This template accepts various parameters depending on the item type. Parameters are grouped by category:

General

title
Name of the item.
image, image1, image2
Up to 3 images displayed on the left.
type
Type of equipment (e.g., Sword, Helmet, Pickaxe).
crafting
Crafting recipe (supports lists).

Weapon Stats

attack_damage
Base attack damage.
attack_speed
Attacks per second.
combat_range
Effective combat range.
arrow_velocity
Projectile speed.
weapon_damage
Overall weapon damage including bonuses.
pve_damage
Extra damage to mobs/creatures.
lifesteal
Life gained per hit.
accuracy
Chance to hit or hit precision.

Armor Stats

dodge_rating
Chance to avoid incoming attacks.
armor
Basic armor value.
armor_toughness
Resistance to stronger attacks.
movement_speed
Speed bonus/penalty when worn.
mining_speed
Effect on block mining.
fall_damage_reduction
Reduced damage from falling.
sneaking_speed
Movement speed while sneaking.
jump_strength
Jump height or distance.
knockback_resistance
Resistance to knockback effects.
max_absorption
Maximum absorption hearts added.
defense
Total defensive rating.
pve_damage_reduction
Damage reduction from mobs.
projectile_damage_reduction
Resistance to arrows, bolts, etc.
physical_damage_reduction
General melee damage resistance.
block_power
Effectiveness when blocking.
block_cooldown_reduction
Reduced cooldown between blocks.
health
Bonus health provided.
safe_fall_distance
Maximum height fallen without damage.

Rune Stats

underwater_mining_speed
Mining speed underwater.
mining_efficiency
Boost to tool efficiency (yield/durability/etc).

Other Information

rune_slots
Number and types of rune slots (supports lists).
ability
Special ability granted by item.
handling
Ease of use or responsiveness.
tier
Item tier/level classification.
armor_grade
Quality or grade of the armor.

Notes

notes
Miscellaneous notes or strategy tips (supports formatting).


Examples

Weapon Example – Copper Dagger

Code

{{Equipment
| title = Copper Dagger
| image = Copper Dagger recipe.png
| image1 = Copper Dagger recipe.png
| image2 = Copper Dagger recipe.png
| type = Dagger
| crafting = 
* 1 Stick
* 1 Copper Ingot
* 1 Copper Nugget
| attack_damage = N/A
| attack_speed = N/A
| combat_range = N/A
| rune_slots = 
* 1 Red Rune slot
| handling = One-handed
| tier = Stone
}}

How it looks

     
     
     
Copper Dagger
TypeDagger
Crafting Resources
  • 1 Stick
  • 1 Copper Ingot
  • 1 Copper Nugget
Stats
Attack DamageN/A
Attack SpeedN/A
Combat RangeN/A
Other Information
Rune Slots
  • 1 Red Rune slot
HandlingOne-handed
TierStone


Armor Example – Wooden Helmet

Code

{{Equipment
| title = Wooden Helmet
| image = Wooden Helmet recipe.png
| type = Helmet
| crafting = 
* 5 Oak Log
| dodge_rating = N/A
| armor = N/A
| armor_toughness = N/A
| movement_speed = N/A
| rune_slots = 
* 1 Blue Rune slot
| armor_grade = Light 
| tier = Wood
| notes = Can be made with all wood types and all stripped wood types.
}}

How it looks

     
     
     
Wooden Helmet
TypeHelmet
Crafting Resources
  • 5 Oak Log
Stats
Dodge RatingN/A
ArmorN/A
Armor ToughnessN/A
Movement SpeedN/A
Other Information
Rune Slots
  • 1 Blue Rune slot
Armor GradeLight
TierWood
Notes
Can be made with all wood types and all stripped wood types.


Tool Example – Wooden Pickaxe

Code

{{Equipment
| title = Wooden Pickaxe
| image = Wooden Pickaxe recipe.png
| type = Pickaxe
| crafting = 
* 2 Stick
* 3 Oak Planks
| attack_damage = N/A
| attack_speed = N/A
| mining_speed = N/A
| rune_slots = 
* None
| notes = Any wood type can be used.
}}

How it looks

     
     
     
Wooden Pickaxe
TypePickaxe
Crafting Resources
  • 2 Stick
  • 3 Oak Planks
Stats
Attack DamageN/A
Attack SpeedN/A
Mining SpeedN/A
Other Information
Rune Slots
  • None
Notes
Any wood type can be used.