Template:Condition page: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Change "disease" to "type". Display type.) |
||
Line 1: | Line 1: | ||
<includeonly><div class="bg3wiki-tooltip-box">{{ | <includeonly><div class="bg3wiki-tooltip-box"><!--Extract name and icon from the page title-->{{#lvardef: name | ||
#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | ||
}}{{ | }}{{#lvardef: icon | ||
#lvardef: icon | {{{icon | {{#replace: {{#lvar:name}} | : | }} Condition Icon.webp }}} | | {{{icon | {{#replace: {{#lvar:name}} | : | }} Condition Icon.webp }}} | ||
}}{{NoExcerpt | {{icon| {{#lvar:icon}} |30}} '''{{#lvar:name}}''' }} | }}{{#lvardef: type | ||
<!--backwards compat for disease--> | |||
| {{#ifeq:{{{disease|}}}|yes|disease}}{{#if:{{{type|}}}|{{{type}}} }} | |||
}}<!--Actual display starts here-->{{NoExcerpt | {{icon| {{#lvar:icon}} |30}} '''{{#lvar:name}}''' }} | |||
{{{effects|}}} {{# | {{{effects|}}} {{#if: {{#lvar:type}} | {{blank}} | ||
* {{Condition/Type|{{#lvar:type}} }} | |||
* | }}</div><!--some housekeeping:categories and cargo-->{{#switch: {{{this is an example|}}} | ||
}}</div>{{#switch: {{{this is an example|}}} | |||
| yes = | | yes = | ||
| #default = [[Category:Conditions]] | | #default = [[Category:Conditions]] | ||
}}{{#switch: {{{this is an example|}}} | |||
| yes = | |||
| #default = {{#cargo_store: _table = conditions | |||
| name = {{#lvar:name}} | |||
| icon = {{#lvar:icon}} | |||
| type = {{#lvar:type}} | |||
}} | |||
}}</includeonly><noinclude> | }}</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. | ||
Line 17: | Line 26: | ||
{{ConditionPage | {{ConditionPage | ||
| effects = | | effects = | ||
| | | type = | ||
}} | }} | ||
</pre> | </pre> | ||
Line 50: | Line 59: | ||
* {{Disadvantage}} on [[Ability Check]]s and {{SavingThrow}}s using Charisma. | * {{Disadvantage}} on [[Ability Check]]s and {{SavingThrow}}s using Charisma. | ||
* Vulnerable to all damage. | * Vulnerable to all damage. | ||
| disease | | type = disease | ||
| this is an example = yes | | this is an example = yes | ||
}} | }} | ||
Line 60: | Line 69: | ||
| icon = File | | icon = File | ||
| effects = Wikitext | | effects = Wikitext | ||
| | | type = String(disease, curse, poison) | ||
}} | }} | ||
</noinclude> |
Revision as of 12:11, 9 October 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 = | type = }}
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.
- Diseased
This template defines the table "conditions". View table.