Template:Inflicts: Difference between revisions
(add format) |
HiddenDragon (talk | contribs) (Added more fields for condition sources. Will later remove them from other tables) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
| condition_inflicted = {{{1|}}} | | condition_inflicted = {{{1|}}} | ||
| template = {{{2|}}} | | template = {{{2|}}} | ||
| parent = {{{parent|}}} | |||
| parent_template = {{{parent template|}}} | |||
| type = {{{type|}}} | |||
| dc = {{{dc|}}} | |||
| save = {{{save|}}} | |||
| 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 7: | Line 13: | ||
The first parameter is the name of the condition, without the (Condition) ending. The capitalization is important. | 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. | 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: <code><nowiki>{{Inflicts|Bleeding|sai}}</nowiki></code> | Example usage: <code><nowiki>{{Inflicts|Bleeding|sai}}</nowiki></code> | ||
Example usage with parent: <code><nowiki>{{Inflicts|Bleeding|sai|parent=Spiked Bulb|parent template=item}}</nowiki></code> | |||
{{#cargo_declare: | {{#cargo_declare: | ||
Line 15: | Line 25: | ||
| condition_inflicted = String | | condition_inflicted = String | ||
| template = String | | template = String | ||
| parent = Page | |||
| parent_template = String | |||
| type = String (allowed values=area, condition, creature, equipment, item, passive, spell, weapon) | |||
| dc = String | |||
| save = String | |||
| duration = String | |||
}} | }} | ||
Line 34: | Line 50: | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"sai", | "sai", | ||
"item" | "item", | ||
"cond", | |||
"passive", | |||
"weapon action" | |||
], | ], | ||
"type": "string", | |||
"suggested": true | "suggested": true | ||
}, | |||
"parent": { | |||
"label": "parent", | |||
"description": "The parent page that provides this page.", | |||
"type": "string" | |||
}, | |||
"parent template": { | |||
"label": "parent template", | |||
"description": "The template to use to format the parent page", | |||
"suggestedvalues": [ | |||
"sai", | |||
"item", | |||
"cond", | |||
"passive", | |||
"weapon action" | |||
], | |||
"type": "string" | |||
}, | |||
"type": { | |||
"label": "type", | |||
"description": "The type of this page that inflicts the condition.", | |||
"suggestedvalues": [ | |||
"area", | |||
"condition", | |||
"creature", | |||
"equipment", | |||
"item", | |||
"passive", | |||
"spell", | |||
"weapon" | |||
], | |||
"type": "string" | |||
}, | |||
"dc": { | |||
"label": "dc", | |||
"description": "The dc this page uses to apply the condition", | |||
"type": "string" | |||
}, | |||
"save": { | |||
"label": "save", | |||
"description": "The save stat this page uses along with the dc to apply the condition. Valid values are the same as those used for Template:Saving Throw", | |||
"suggestedvalues": [ | |||
"15", | |||
"caster", | |||
"weapon action" | |||
], | |||
"type": "string" | |||
}, | |||
"duration": { | |||
"label": "duration", | |||
"description": "The duration of the condition this page applies. Valid values are the same as those used for Template:Duration", | |||
"suggestedvalues": [ | |||
"Permanent", | |||
"Short rest", | |||
"Until short rest", | |||
"Long rest", | |||
"Until long rest", | |||
"Saving throw", | |||
"Until saving throw", | |||
"Surface", | |||
"Whilst on surface" | |||
], | |||
"type": "string" | |||
} | } | ||
}, | }, |
Latest revision as of 20:38, 14 August 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 |
parent template | parent template | The template to use to format the parent page
| String | optional |
type | type | The type of this page that inflicts the condition.
| String | optional |
dc | dc | The dc this page uses to apply the condition | String | optional |
save | save | The save stat this page uses along with the dc to apply the condition. Valid values are the same as those used for Template:Saving Throw
| String | optional |
duration | duration | The duration of the condition this page applies. Valid values are the same as those used for Template:Duration
| String | optional |