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


Template documentation (for the above template, sometimes hidden or invisible)

Purpose

This infobox summarizes a named effect and up to fifteen numbered bonus lines. It displays values, units or types, names, and optional durations while storing effect metadata for semantic queries.

Usage

{{Infobox Effect
|name=
|bonus1=
|bdesc1=
|btype1=
|bduration1=
}}

The four numbered bonus parameters may be repeated from 1 through 15, such as bonus2, bdesc2, btype2, and bduration2.

Parameters

Parameter Explanation
name Effect name displayed at the top of the infobox and stored in Has effect name. Defaults to the page name.
bonus1 through bonus15 Name of each bonus effect. bonus1 must have a value before the template renders the Effects section or any later numbered entries.
bdesc1 through bdesc15 Displayed value for the corresponding bonus. A numbered line appears only when its bdesc value is supplied.
btype1 through btype15 Optional unit or type appended to the corresponding displayed value. See the legacy-property warning below.
bduration1 through bduration15 Optional duration in seconds. The value is formatted through Template:Seconds and stored in the corresponding numbered duration property.

Behavior and semantic properties

Every invocation stores the effective effect name in Has effect name and the current page name in Has pagename. Each displayed line stores its value, name, and optional duration in numbered properties such as Has bonus1, Has bonus1 name, and Has bonus1 duration.

The current implementation stores every numbered btype value—including btype2 through btype15—in Has bonus1type. Treat this as documented legacy behavior, not as a guarantee that distinct numbered type properties exist. Correcting it requires a separately reviewed template change.

The template does not implement an icon parameter. Existing invocations that supply one receive no output or semantic value from it.

Numbering requirements

Always begin with bonus1 and bdesc1. Later numbers may be omitted, but an isolated later entry such as bonus7 will not display because the entire Effects section is gated by bonus1.

Example

{{Infobox Effect
|name=Upbeat Music
|bonus1=Attack Speed
|bdesc1=+10
|btype1=%
|bduration1=30
}}

See Cowbell of Reaping for this template in use. The example is not rendered here because it would assign effect properties to the documentation page.


Visit Template:Infobox Effect/doc to edit this text! (How does this work?)