Template:Infobox weapon/doc

From Welcome to Elderfield Wiki
Jump to navigation Jump to search
Infobox for weapons pages. Built on {{Infobox}}m.main(), the DRUID infobox framework this wiki already uses, so it inherits the existing styling and gadgets.
Fields are omitted automatically when empty — pass only what applies.

Usage

{{Infobox weapon
| type = 
| in_game_name = 
| weapon_type = 
| equipment_slot = 
| weight = 
| attack = 
| m_attack = 
| defense = 
}}

Sections

General

Type, In-game name, Weapon type, Equipment slot, Weight

Stats

Attack, M. Attack, Defense, M. Defense, Max HP, Max MP, Agility, Luck

Effects

Equip effect, Curse damage taken, Darkness damage taken, Light damage taken, Max MP bonus, Hit Rate, Critical Rate, Magic Reflection, Counter Attack, Pharmacology, MP Cost Rate, Physical Damage, Magical Damage, Experience, Attacks deal, Attack becomes, Seals skill type, Grants skill, Seals skill, Cannot change

Values

Buy price, Sell price


Generated article pages fill this in from game data. Hand-written pages may use it too.

From the game data

{{Infobox weapon|id=75}}
With an id and nothing else, the fields come from the weapon's record in Module:Elderfield/Data/Weapons, which the wiki generator rewrites after each game update — so every page using it changes together when that module is republished. A field written beside the id overrides the data. This is how the generated weapons pages carry their infobox.

Price fields

Supply a number for buy and sell prices (for example |buy_price=250 on the standard infoboxes, or |Buy Price=250 on the legacy item infobox). The gold icon and g are added automatically and the value is centered. Existing quality values can use {{Price}}; textual statuses remain unchanged.