Template:InfoboxNPC/doc: Difference between revisions

From August Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 147: Line 147:
| weakness_factor1 = 50%
| weakness_factor1 = 50%
}}
}}
[[Category:Templates]]

Latest revision as of 02:50, 16 March 2025

How to use this Template

Syntax

To make an entry for an NPC, use the Template call

{{InfoboxNPC}}

Inside of the template you'll enter parameters to fill in the template with the appropriate information.

InfoboxNPC Template Parameters

Note: Only parameters with values will display in the infobox - empty parameters are automatically hidden to keep the infobox clean and relevant.

Basic Information

  • name - The name of the monster/NPC
  • image - Filename for the monster's image
  • released - Release date information
  • members - Whether it's members-only content
  • combat_level - Combat level of the monster
  • size - Size of the monster (e.g., 4x4)
  • examine - Examine text when right-clicking the monster

Combat Information

  • xp_bonus - Experience bonus percentage
  • max_hit - Maximum hit damage
  • aggressive - Whether the monster is aggressive
  • poisonous - Whether the monster can poison players
  • attack_style - Combat attack styles used
  • attack_speed - Speed of attacks
  • respawn_time - Time to respawn after death

Slayer Information

  • slayer_icon - Icon used for slayer section
  • slayer_level - Required slayer level to kill
  • slayer_xp - Slayer experience gained
  • slayer_category - Category of slayer monster
  • slayer_masters - Which slayer masters assign this monster

Combat Stats

  • combat_icon - Icon for combat stats section
  • hitpoints_icon - Icon for hitpoints stat
  • attack_icon - Icon for attack stat
  • strength_icon - Icon for strength stat
  • defence_icon - Icon for defence stat
  • magic_icon - Icon for magic stat
  • ranged_icon - Icon for ranged stat
  • hitpoints - Hitpoints value
  • attack - Attack value
  • strength - Strength value
  • defence - Defence value
  • magic - Magic value
  • ranged - Ranged value

Aggressive Stats

  • attack_bonus - Attack bonus value
  • strength_bonus - Strength bonus value
  • magic_bonus - Magic bonus value
  • magic_damage - Magic damage bonus value
  • ranged_bonus - Ranged bonus value
  • ranged_strength - Ranged strength bonus value
  • magic_damage_icon - Icon for magic damage
  • ranged_strength_icon - Icon for ranged strength

Melee Defence

  • stab_icon - Icon for stab defence
  • slash_icon - Icon for slash defence
  • crush_icon - Icon for crush defence
  • stab_def - Stab defence value
  • slash_def - Slash defence value
  • crush_def - Crush defence value

Magic Defence

  • magic_defence_icon - Icon for magic defence section
  • elemental_weakness_icon - Icon for elemental weakness
  • magic_defence - Magic defence value
  • elemental_weakness - Elemental weakness description

Ranged Defence

  • ranged_defence_icon - Icon for ranged defence section
  • light_icon - Icon for light ranged defence
  • standard_icon - Icon for standard ranged defence
  • heavy_icon - Icon for heavy ranged defence
  • light_def - Light ranged defence value
  • standard_def - Standard ranged defence value
  • heavy_def - Heavy ranged defence value

Immunities

  • poison_immunity - Poison immunity status
  • venom_immunity - Venom immunity status
  • cannon_immunity - Cannon immunity status
  • thrall_immunity - Thrall immunity status

Example

Below is an example of the syntax, and the resulting table that is created.

{{InfoboxNPC
| name = General Graardor
| combat_level = 624
| species = None
| is_boss = Yes
| max_hit = 27
| aggressive = Yes
| attack_style = Crush
| attack_speed = 4 ticks (2.4 seconds)
| hitpoints = 1400
| attack = 99
| strength = 67
| defence = 99
| magic = 99
| ranged = 99
| attack_bonus = +364
| strength_bonus = +192
| magic_bonus = +364
| magic_damage = +192
| ranged_bonus = +364
| ranged_strength = +192
| stab_def = +340
| slash_def = +400
| crush_def = +400
| magic_def = +400
| ranged_def = +400
| weakness_type1 = Crush
| weakness_factor1 = 50%
}}
General Graardor
Combat level 624
Boss Yes
Species None
Combat info
Max hit 27
Aggressive Yes
Attack style Crush
Attack speed 4 ticks (2.4 seconds)
Combat levels
1400 99 67 99 99 99
Combat stats
+364 +192 +364 +192 +364 +192
Melee defence
+340 +400 +400
Other defences
+400 +400
Weaknesses
Crush
50%