Module:Elderfield/Item/doc

From Welcome to Elderfield Wiki
Jump to navigation Jump to search
Renders item, weapon and armor facts from the generated data modules.

=== Entry points ===
; <code><nowiki>{{#invoke:Elderfield/Item|infobox|id=2056}}</nowiki></code>
: The item's whole infobox, read from the <code>infobox</code> fields on its record and drawn
  by {{tl|Infobox item}}. Any field also written on the page overrides the record. Add
  <code>kind=weapon</code> or <code>kind=armor</code> for those, drawn by their own infoboxes.
  Use {{tl|Infobox food}}, or {{tl|Infobox weapon}} / {{tl|Infobox armor}} with an
  <code>id</code>, rather than invoking this directly.
; <code>{{#invoke:Elderfield/Item|link|id=998}}</code>
: Icon plus a link to the item's page. Add <code>icon=no</code> to drop the icon.
; <code>{{#invoke:Elderfield/Item|field|id=998|field=sell}}</code>
: One field. Useful inside prose.
; <code>{{#invoke:Elderfield/Item|tiers|id=201}}</code>
: The quality-tier table, or nothing when the item has a single tier.
; <code>{{#invoke:Elderfield/Item|energy|id=2021}}</code>
: What the item does in the farm's energy system, as a sentence — what it produces, how
  long the farm keeps it, and what it burns or is burned by. Nothing for the items that
  have no part in it.
; <code>{{#invoke:Elderfield/Item|index|category=food}}</code>
: A sortable table of every player-facing item in a category. This is what category
  index pages use instead of a hand-maintained table. Use <code>domain=Weapons</code> or
  <code>domain=Armor</code> for equipment, optionally filtered with <code>slot=Head</code>
  or another equipment slot. All equipment views share these 15 base columns: Item, Lv, HP,
  MP, ATK, DEF, MAT, MDF, AGI, LUK, Hit, Crit, REC, Other modifiers and effects, Source.
  Weapons add a centered, sortable Element column after REC, giving 16 columns; attack
  elements are displayed there instead of under Other modifiers and effects. Armor retains
  15 columns. Descriptions appear beneath item names. Core columns show flat bonuses; rarer modifiers
  and percentage bonuses to core stats remain in Other modifiers and effects. Dedicated
  stat columns sort numerically, with absent modifiers displayed as an em dash and sorted
  as zero change. Other item-category lists retain their existing presentation.
; <code>{{#invoke:Elderfield/Item|upgrades|for=Weapon}}</code>
: The gems that can be spent on that kind of gear, grouped by the item levels they work
  on. Reads the <code>upgrade</code> field, which the data build fills from each gem's own
  description. Use {{tl|Upgrade gems}} rather than invoking this directly.

Prefer {{tl|Item link}} in ordinary article text; it wraps <code>link</code> and is
easier to read.

[[Category:Elderfield modules]]