Template:Condition page: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{ConditionPage/Primitive
<includeonly>{{ConditionPage/Primitive
| name = {{{name | {{titleparts: {{PAGENAME}} }} }}}
| name = {{{name | {{#explode: {{titleparts: {{PAGENAME}} }} | ( | 0 }} }}}
| icon = {{{icon | {{{name | {{titleparts: {{PAGENAME}} }} }}} Condition Icon.png }}}
| icon = {{{icon | {{#replace: {{{name | {{#explode: {{titleparts: {{PAGENAME}} }} | ( | 0 }} }}} | : | }} Condition Icon.png }}}
| effects = {{{effects|}}}
| effects = {{{effects|}}}
| this is an example = {{{this is an example|}}}
| this is an example = {{{this is an example|}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
If the page title corresponds to the condition name, then you don't have to provide the {{C|name}} parameter.  However, if you have to name a page something like '''Blah (Condition)''' to disambiguate it from some other page called '''Blah''' (e.g. [[Chill Touch]] vs. [[Chill Touch (Condition)]]) then you'll want to provide an explicit {{C|<nowiki>name = Blah</nowiki>}} value.
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.png}} then you don't have to provide the {{C|icon}} parameter.
 
Likewise, if the icon for the condition is called {{C|Blah Condition Icon.png}} then you don't have to provide the {{C|icon}} parameter.


Examples:
Examples:

Revision as of 14:40, 16 July 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.png then you don't have to provide the icon parameter.

Examples:

Blade Ward (Condition)

Template:ConditionPage/Primitive

Chill Touch (Condition)

Template:ConditionPage/Primitive