Template:Condition page: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
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 }} }}}
#lvardef: name | {{{name | {{#explode: {{#titleparts: {{PAGENAME}} }} | ( | 0 }} }}}
}}{{
}}{{
#vardefine: icon | {{{icon | {{#replace: {{#var:name}} | : | }} Condition Icon.webp }}}
#lvardef: icon | {{{icon | {{#replace: {{#lvar:name}} | : | }} Condition Icon.webp }}}
}}{{NoExcerpt | {{icon| {{#var:icon}} |30}} '''{{#var:name}}''' }}
}}{{NoExcerpt | {{icon| {{#lvar:icon}} |30}} '''{{#lvar:name}}''' }}


{{{effects|}}} {{#ifeq: {{{disease|}}} | yes | {{blank}}
{{{effects|}}} {{#ifeq: {{{disease|}}} | yes | {{blank}}
Line 65: Line 65:
| yes =
| yes =
| #default = {{#cargo_store: _table = conditions
| #default = {{#cargo_store: _table = conditions
| name = {{#var:name}}
| name = {{#lvar:name}}
| icon = {{#var:icon}}
| icon = {{#lvar:icon}}
| disease = {{IfEmpty | {{{disease|}}} | no}}
| disease = {{IfEmpty | {{{disease|}}} | no}}
}}
}}
}}</includeonly>
}}</includeonly>

Revision as of 03:47, 2 September 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.