Template:Condition page: Difference between revisions

From bg3.wiki
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 }} }}}
}}{{ConditionPage/Primitive
}}{{
| name = {{#var:name}}
#vardefine: icon | {{{icon | {{#replace: {{#var:name}} | : | }} Condition Icon.webp }}}
| icon = {{{icon | {{#replace: {{#var:name}} | : | }} Condition Icon.webp }}}
}}{{NoExcerpt | {{icon| {{#var:icon}} |30}} '''{{#var:name}}''' }}
| effects = {{{effects|}}}
 
| this is an example = {{{this is an example|}}}
{{{effects|}}} {{#ifeq: {{{disease|}}} | yes | {{blank}}
}}
 
</div></includeonly><noinclude>
* [[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.


See also: [[Template:ConditionPage/Primitive]]
<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)

Bone Chilled (Condition)

Flesh Rot (Condition)

This template defines the table "conditions". View table.