Template:Equipment: Difference between revisions

m CSS test
Added autoheaders parameter
 
(17 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 -->
     <!-- Image Column -->
    <td style="vertical-align:top; border:0; padding:10px; width:35%;">
  <div style="display: flex; flex-direction: column; border:0; padding:10px;">
      <div style="text-align:center;">
    <div style="text-align: center;">
        {{#if: {{{image|}}} | [[File:{{{image}}}|500px|link=|class=none|frameless]] }}
      {{#if: {{{image|}}} | [[File:{{{image}}}|500px|link=|class=none|frameless]] }}
        {{#if: {{{image1|}}} | [[File:{{{image1}}}|500px|link=|class=none|frameless]] }}
      {{#if: {{{image1|}}} | [[File:{{{image1}}}|500px|link=|class=none|frameless]] }}
        {{#if: {{{image2|}}} | [[File:{{{image2}}}|500px|link=|class=none|frameless]] }}
      {{#if: {{{image2|}}} | [[File:{{{image2}}}|500px|link=|class=none|frameless]] }}
      </div>
    </div>
    </td>
  </div>


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


        |title      = {{{title|}}}
    |title      = {{{title|}}}


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


        <!-- Weapon Stats -->
    <!-- Weapon Stats: 10–29 -->
        |header10    = Stats
    |header10    = Stats
        |label11    = Attack Damage
    |label11    = Attack Damage
        |data11      = {{{attack_damage|}}}
    |data11      = {{{attack_damage|}}}
        |label12    = Attack Speed
    |label12    = Attack Speed
        |data12      = {{{attack_speed|}}}
    |data12      = {{{attack_speed|}}}
        |label13    = Combat Range
    |label13    = Combat Range
        |data13      = {{{combat_range|}}}
    |data13      = {{{combat_range|}}}
        |label14    = Arrow Velocity
    |label14    = Arrow Velocity
        |data14      = {{{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 -->
    <!-- Armor Stats: 40–59 -->
        |label20     = Dodge Rating
    |label41     = Dodge Rating
        |data20     = {{{dodge_rating|}}}
    |data41     = {{{dodge_rating|}}}
        |label21     = Armor
    |label42     = Armor
        |data21     = {{{armor|}}}
    |data42     = {{{armor|}}}
        |label22     = Armor Toughness
    |label43     = Armor Toughness
        |data22     = {{{armor_toughness|}}}
    |data43     = {{{armor_toughness|}}}
        |label23     = Movement Speed
    |label44     = Movement Speed
        |data23     = {{{movement_speed|}}}
    |data44     = {{{movement_speed|}}}
        |label24     = Mining Speed
    |label45     = Mining Speed
        |data24     = {{{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|}}}


        <!-- Additional Info -->
    <!-- Rune Stats: 80–99 -->
        |header30    = Other Information
    |label81    = Underwater Mining Speed
        |label31     = Rune Slots
     |data81     = {{{underwater_mining_speed|}}}
        |data31     = {{{rune_slots|}}}
    |label82     = Mining Efficiency
        |label32     = Ability
    |data82     = {{{mining_efficiency|}}}
        |data32     = {{{ability|}}}
     |label83     = Gun Range
        |label33     = Armor Grade
     |data83     = {{{range|}}}
        |data33      = {{{armor_grade|}}}
        |label34     = Handling
        |data34      = {{{handling|}}}
        |label35     = Tier
        |data35     = {{{tier|}}}


        <!-- Notes -->
    <!-- Additional Info: 120–139 -->
        |header40   = Notes
    |header120  = Other Information
        |label41    =
    |label121    = Rune Slots
        |data41      = {{{notes|}}}
    |data121    = {{{rune_slots|}}}
        |data41style = border:1px solid #aaa; padding:6px; font-style:italic; text-align:left; background-color:#f9f9f9;
    |label122    = Ability
      }}
    |data122    = {{{ability|}}}
    </td>
    |label123    = Armor Grade
  </tr>
    |data123    = {{{armor_grade|}}}
</table>
    |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>
</includeonly>
</includeonly>
<noinclude>
<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.
== Description ==
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 ==
== Parameters ==
This template accepts various parameters depending on the item type. Some commonly used ones include:
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).
 
=== Weapon Stats ===
; <code>attack_damage</code>
: 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.
 
=== Armor Stats ===
; <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).


* `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).
* `attack_damage`, `attack_speed`, `combat_range`, `arrow_velocity` – Weapon stats.
* `dodge_rating`, `armor`, `armor_toughness`, `movement_speed` – Armor stats.
* `mining_speed` – Tool stat.
* `rune_slots` – Number and types of rune slots (supports lists).
* `ability`, `handling`, `tier`, `armor_grade` – Additional attributes.
* `notes` – Miscellaneous notes or tips.


== Examples ==
== Examples ==