Template:Condition page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="bg3wiki-tooltip-box">{{ | <includeonly><div class="bg3wiki-tooltip-box">{{ | ||
#vardefine: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | #vardefine: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | ||
}}{{ | }}{{ | ||
#vardefine: icon | {{{icon | {{#replace: {{#var:name}} | : | }} Condition Icon.webp }}} | |||
| | }}{{NoExcerpt | {{icon| {{#var:icon}} |30}} '''{{#var:name}}''' }} | ||
| effects | |||
| | {{{effects|}}} {{#ifeq: {{{disease|}}} | yes | {{blank}} | ||
}} | |||
* [[Disease|Diseased]] | |||
}}</div>{{#switch: {{{this is an example|}}} | |||
| yes = | |||
| #default = [[Category:Conditions]] | |||
}}</includeonly><noinclude> | |||
If the page title is {{C|Blah (Condition)}}, then you don't have to provide the {{C|name}} parameter. Likewise, if the icon for the condition is called {{C|Blah Condition Icon.webp}} then you don't have to provide the {{C|icon}} parameter. | If the page title is {{C|Blah (Condition)}}, then you don't have to provide the {{C|name}} parameter. Likewise, if the icon for the condition is called {{C|Blah Condition Icon.webp}} then you don't have to provide the {{C|icon}} parameter. | ||
<pre> | |||
{{ConditionPage | |||
| effects = | |||
| disease = | |||
}} | |||
</pre> | |||
Examples: | Examples: | ||
Line 30: | Line 39: | ||
* Can not regain [[Hit Points]]. | * Can not regain [[Hit Points]]. | ||
* If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | * If Undead, has {{Disadvantage}} on [[Attack Roll]]s. | ||
| this is an example = yes | |||
}} | |||
= Flesh Rot (Condition) = | |||
{{ConditionPage | |||
| name = Flesh Rot | |||
| effects = | |||
* Flesh is decaying. | |||
* {{Disadvantage}} on [[Ability Check]]s and {{SavingThrow}}s using Charisma. | |||
* Vulnerable to all damage. | |||
| disease = yes | |||
| this is an example = yes | | this is an example = yes | ||
}} | }} | ||
[[Category:Page Generating Templates]] | [[Category:Page Generating Templates]] | ||
</noinclude> | |||
{{#cargo_declare: _table = conditions | |||
| name = String (unique, mandatory) | |||
| icon = File | |||
| effects = Wikitext | |||
| disease = Boolean | |||
}} | |||
</noinclude><includeonly>{{#switch: {{{this is an example|}}} | |||
| yes = | |||
| #default = {{#cargo_store: _table = conditions | |||
| name = {{#var:name}} | |||
| icon = {{#var:icon}} | |||
| disease = {{IfEmpty | {{{disease|}}} | no}} | |||
}} | |||
}}</includeonly> |
Revision as of 11:41, 11 August 2023
If the page title is Blah (Condition)
, then you don't have to provide the name
parameter. Likewise, if the icon for the condition is called Blah Condition Icon.webp
then you don't have to provide the icon
parameter.
{{ConditionPage | effects = | disease = }}
Examples:
Blade Ward (Condition)
- Has resistance against Bludgeoning, Piercing, and Slashing damage dealt by weapon attacks. Damage of these types is halved.
Bone Chilled (Condition)
- Can not regain Hit Points.
- If Undead, has Disadvantage on Attack Rolls.
Flesh Rot (Condition)
- Flesh is decaying.
- Disadvantage on Ability Checks and Saving throws using Charisma.
- Vulnerable to all damage.
This template defines the table "conditions". View table.