Template:Equipment: Difference between revisions

mNo edit summary
Added autoheaders parameter
 
(31 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table style="width:100%; border-collapse:collapse; background-color:#c6c6c6;">
<div style="display: flex; flex-direction: row; align-items: center; width:100%; border-collapse: collapse;">
  <td style="vertical-align:top; border:0; padding:0; background-color:#c6c6c6;">
    <!-- Image Column -->
<div style="width:100%; padding:0; margin:0; background-color:#c6c6c6;">
  <div style="display: flex; flex-direction: column; border:0; padding:10px;">
  <div style="display:flex; flex-direction:column; align-items:center; gap:8px;">
    <div style="text-align: center;">
    {{#if: {{{image|}}} |  
      {{#if: {{{image|}}} | [[File:{{{image}}}|500px|link=|class=none|frameless]] }}
      <div style="width:100%; text-align:center;">
      {{#if: {{{image1|}}} | [[File:{{{image1}}}|500px|link=|class=none|frameless]] }}
        [[File:{{{image}}}|500px|link=|class=none|border=]]
      {{#if: {{{image2|}}} | [[File:{{{image2}}}|500px|link=|class=none|frameless]] }}
      </div>
    </div>
    }}
    {{#if: {{{image1|}}} |  
      <div style="width:100%; text-align:center;">
        [[File:{{{image1}}}|500px|link=|class=none|border=]]
      </div>
    }}
    {{#if: {{{image2|}}} |  
      <div style="width:100%; text-align:center;">
        [[File:{{{image2}}}|500px|link=|class=none|border=]]
      </div>
    }}
   </div>
   </div>
<!-- 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
    |title      = {{{title|}}}
    <!-- Basic Info -->
    |label1      = Type
    |data1      = {{{type|}}}
    |label2      = Crafting Resources
    |data2      = {{{crafting|}}}
    <!-- Weapon Stats: 10–29 -->
    |header10    = Stats
    |label11    = Attack Damage
    |data11      = {{{attack_damage|}}}
    |label12    = Attack Speed
    |data12      = {{{attack_speed|}}}
    |label13    = Combat Range
    |data13      = {{{combat_range|}}}
    |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|}}}
    <!-- Armor Stats: 40–59 -->
    |label41    = Dodge Rating
    |data41      = {{{dodge_rating|}}}
    |label42    = Armor
    |data42      = {{{armor|}}}
    |label43    = Armor Toughness
    |data43      = {{{armor_toughness|}}}
    |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|}}}
    <!-- Notes -->
    |header160  = Notes
    |data161    = {{{notes|}}}
    |data161style = border:1px solid #aaa; padding:6px; font-style:italic; text-align:left; background-color:#f9f9f9;
  }}
</div>
</div>
  </td>
</div>
</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:


  <td style="vertical-align:top; border:0; padding:0;">
=== General ===
    <!--Template Infobox -->
; <code>title</code>
    {{Infobox
: Name of the item.
    |titlestyle    = text-align:center; font-weight:bold; border:1px solid #aaa;
; <code>image</code>, <code>image1</code>, <code>image2</code>
    |bodystyle    = border:1px solid #aaa; border-collapse:collapse; background-color:#c6c6c6;
: Up to 3 images displayed on the left.
    |labelstyle    = border:1px solid #aaa; padding:4px; background-color:#c6c6c6;
; <code>type</code>
    |datastyle    = border:1px solid #aaa; padding:4px; background-color:#c6c6c6;
: Type of equipment (e.g., Sword, Helmet, Pickaxe).
; <code>crafting</code>
: Crafting recipe (supports lists).


    |title        = {{{title|}}}
=== Weapon Stats ===
<!-- 1-9 -->
; <code>attack_damage</code>
    |label1        = Type
: Base attack damage.
    |data1        = {{{type|}}}
; <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.


    |label2        = Crafting Resources
=== Armor Stats ===
    |data2        = {{{crafting|}}}
; <code>dodge_rating</code>
<!-- 10-19 | Weapon Stats -->
: Chance to avoid incoming attacks.
    |header10      = Stats
; <code>armor</code>
    |label11        = Attack Damage
: Basic armor value.
    |data11        = {{{attack_damage|}}}
; <code>armor_toughness</code>
    |label12        = Attack Speed
: Resistance to stronger attacks.
    |data12        = {{{attack_speed|}}}
; <code>movement_speed</code>
    |label13        = Combat Range
: Speed bonus/penalty when worn.
    |data13        = {{{combat_range|}}}
; <code>mining_speed</code>
    |label14        = Arrow Velocity
: Effect on block mining.
    |data14        = {{{arrow_velocity|}}}
; <code>fall_damage_reduction</code>
<!-- 20-29 | Armor Stats -->
: Reduced damage from falling.
    |label20      = Dodge Rating
; <code>sneaking_speed</code>
    |data20        = {{{dodge_rating|}}}
: Movement speed while sneaking.
    |label21      = Armor
; <code>jump_strength</code>
    |data21        = {{{armor|}}}
: Jump height or distance.
    |label22      = Armor Toughness
; <code>knockback_resistance</code>
    |data22        = {{{armor_toughness|}}}
: Resistance to knockback effects.
    |label23      = Movement Speed
; <code>max_absorption</code>
    |data23        = {{{movement_speed|}}}
: Maximum absorption hearts added.
<!-- 30-39 -->
; <code>defense</code>
    |header30      = Other information
: Total defensive rating.
    |label31      = Rune Slots
; <code>pve_damage_reduction</code>
    |data31        = {{{rune_slots|}}}
: Damage reduction from mobs.
    |label32      = Ability
; <code>projectile_damage_reduction</code>
    |data32        = {{{ability|}}}
: Resistance to arrows, bolts, etc.
    |label33      = Armor Grade
; <code>physical_damage_reduction</code>
    |data33        = {{{armor_grade|}}}
: General melee damage resistance.
    |label34      = Handling
; <code>block_power</code>
    |data34        = {{{handling|}}}
: Effectiveness when blocking.
    |label35      = Tier
; <code>block_cooldown_reduction</code>
    |data35        = {{{tier|}}}
: Reduced cooldown between blocks.
<!-- 40-49 -->
; <code>health</code>
    |header40      = Notes
: Bonus health provided.
    |data40        = {{{notes|}}}
; <code>safe_fall_distance</code>
    |data40style    = border:1px solid #aaa; padding:4px; text-align:left; font-style:italic; background-color:#c6c6c6;
: Maximum height fallen without damage.
    }}
 
  </td>
=== Rune Stats ===
</table>
; <code>underwater_mining_speed</code>
</includeonly>
: Mining speed underwater.
</tr>
; <code>mining_efficiency</code>
</table>
: Boost to tool efficiency (yield/durability/etc).
</includeonly>


=== 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).




<noinclude>
== Examples ==
== Description ==
This template is used for custom weapons and armor on Alathra. This template supports up to 3 images.


== Weapon Example ==
=== Weapon Example – Copper Dagger ===
===Code===
==== Code ====
<pre>
<pre>
{{Equipment
{{Equipment
Line 101: Line 234:
* 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
Line 110: Line 243:
}}
}}
</pre>
</pre>
===How it looks===
 
==== How it looks ====
{{Equipment
{{Equipment
| title = Copper Dagger
| title = Copper Dagger
Line 121: 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
Line 130: Line 264:
}}
}}


== Armor Example ==
=== Armor Example – Wooden Helmet ===
===Code===
==== Code ====
<pre>
<pre>
{{Equipment
{{Equipment
Line 139: 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  
| 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===
 
==== How it looks ====
{{Equipment
{{Equipment
| title = Wooden Helmet
| title = Wooden Helmet
Line 156: 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
Line 166: Line 302:
| notes = Can be made with all wood types and all stripped wood types.
| 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>