Template:Inflicts: Difference between revisions
HiddenDragon (talk | contribs) (Added "parent" page support) |
(Test of adding duration field) |
||
Line 4: | Line 4: | ||
| parent = {{{parent|}}} | | parent = {{{parent|}}} | ||
| parent_template = {{{parent template|}}} | | parent_template = {{{parent template|}}} | ||
| duration = {{{duration|}}} | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition. | A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition. | ||
Line 23: | Line 24: | ||
| parent = Page | | parent = Page | ||
| parent_template = String | | parent_template = String | ||
| duration = String | |||
}} | }} | ||
Revision as of 18:49, 8 July 2024
A marker template used to indicate that the page it's used on can inflict the specified condition. It can be used multiple times per page, each with a different condition.
The first parameter is the name of the condition, without the (Condition) ending. The capitalization is important.
The second parameter is type of page. For example, a spell or ability should specify "sai", and an item should specify "item". If nothing is specified, it'll be listed just as a link. See Template:Condition sources for the template that displays these condition sources.
If it is necessary to show a parent page of this page, use the "parent" field to specify that page and the "parent template" field to specify what template it should use to display.
Example usage: {{Inflicts|Bleeding|sai}}
Example usage with parent: {{Inflicts|Bleeding|sai|parent=Spiked Bulb|parent template=item}}
This template defines the table "condition_sources". View table.
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
condition | 1 | The condition this page inflicts. | String | required |
format | 2 | The format of the page.
| String | suggested |
parent | parent | The parent page that provides this page. | String | optional |
format | parent template | The template to use to format the parent page
| String | optional |