Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Join the Playtest on Steam Now: SpiritVale

Template:Def: Difference between revisions

Template page
No edit summary
Tags: Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
<includeonly><templatestyles src="Template:def/styles.css" />{{#invoke:Definitions|def
<includeonly><templatestyles src="Template:def/styles.css" />{{#invoke:Definitions|def
| {{{1|{{{Domain|{{{domain|}}}}}}}}}
|{{{1|{{{Domain|{{{domain|}}}}}}}}}
| {{{2|{{{Key|{{{key|}}}}}}}}}
|{{{2|{{{Key|{{{key|}}}}}}}}}
}}</includeonly>
}}</includeonly>



Revision as of 04:20, 25 February 2026


Template:def

This template renders a Definitions v1 term using an explicit (Domain, Key) pair.

It calls Module:Definitions and resolves data from Module:Definitions/Definitions.json.

Usage

{{def|Domain|Key}}

Examples:

{{def|Stat|Vit}}
{{def|Element|Fire}}
{{def|Cast|Ground}}
{{def|Target|Summon}}

Parameters

1 (Domain)
The definition domain. This value is required.
2 (Key)
The definition key within the domain (CamelCase). This value is required.

Supported Domains (v1)

  • Cast
  • Damage
  • Element
  • Aura
  • Event
  • Stance
  • Stat
  • Target

Behavior

  • If the record has a non-empty Definition, a tooltip is available (hover on desktop, tap on mobile).
  • If Definition is empty, tooltip behavior is disabled.
  • If Name is empty, the Key is displayed in a humanized form.
  • If the record is missing, a missing placeholder is displayed.
  • If Link is non-empty, the term text is rendered as a real clickable link.

Styling

JavaScript

Renders a Definitions v1 term using an explicit (Domain, Key) pair.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Domain1

Definition domain. Supported v1 domains: Cast, Damage, Element, Aura, Event, Stance, Stat, Target.

Suggested values
Cast Damage Element Aura Event Stance Stat Target
Example
Stat
Stringrequired
Key2

Definition key within the domain (CamelCase). Example: Vit, Fire, Ground, Summon.

Example
Vit
Stringrequired