User:Toancaro/List of utilities spells/Variables: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
Line 29: Line 29:
/>{{#arrayunion: spellsAll | spellsArmourClassBuff | spellsArmourClassDebuff | spellsAttackRollBuff | spellsAttackRollDebuff | spellsAttackRollAdvantage | spellsAttackRollDisadvantage | spellsSavingThrowBuff | spellsSavingThrowDebuff | spellsSavingThrowAdvantage | spellsSavingThrowDisadvantage | spellsAbilityCheckBuff | spellsAbilityCheckDebuff | spellsAbilityCheckAdvantage | spellsAbilityCheckDisadvantage | spellsConditionProtection | spellsDamageProtection | spellsUncategorized}}<nowiki
/>{{#arrayunion: spellsAll | spellsArmourClassBuff | spellsArmourClassDebuff | spellsAttackRollBuff | spellsAttackRollDebuff | spellsAttackRollAdvantage | spellsAttackRollDisadvantage | spellsSavingThrowBuff | spellsSavingThrowDebuff | spellsSavingThrowAdvantage | spellsSavingThrowDisadvantage | spellsAbilityCheckBuff | spellsAbilityCheckDebuff | spellsAbilityCheckAdvantage | spellsAbilityCheckDisadvantage | spellsConditionProtection | spellsDamageProtection | spellsUncategorized}}<nowiki


/>{{#arrayslice: spellsAll1 | spellsAll | 0 | 25}}<nowiki
/>{{#arraydefine: joinORItems | {{#var: spellsAll}} }}<nowiki
/>{{#vardefine: querySpellsAll1 | {{#arrayprint: spellsAll1 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll | {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}} }}<nowiki
/>{{#vardefine: queryNamesSpellsAll1 | {{#replace:{{#var: querySpellsAll1}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki


/>{{#arrayslice: spellsAll2 | spellsAll | 25 | 25}}<nowiki
/>{{#var: queryNamesSpellsAll}}<nowiki
/>{{#vardefine: querySpellsAll2 | {{#arrayprint: spellsAll2 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll2 | {{#replace:{{#var: querySpellsAll2}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll3 | spellsAll | 50 | 25}}<nowiki
/>{{#vardefine: querySpellsAll3 | {{#arrayprint: spellsAll3 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll3 | {{#replace:{{#var: querySpellsAll3}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll4 | spellsAll | 75 | 25}}<nowiki
/>{{#vardefine: querySpellsAll4 | {{#arrayprint: spellsAll4 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll4 | {{#replace:{{#var: querySpellsAll4}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll5 | spellsAll | 100 | 25}}<nowiki
/>{{#vardefine: querySpellsAll5 | {{#arrayprint: spellsAll5 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll5 | {{#replace:{{#var: querySpellsAll5}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
 
/>{{#arrayslice: spellsAll6 | spellsAll | 125 | 25}}<nowiki
/>{{#vardefine: querySpellsAll6 | {{#arrayprint: spellsAll6 | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: queryNamesSpellsAll6 | {{#replace:{{#var: querySpellsAll6}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki


/>{{#vardefine: queryNamesSpellsAll | {{#ifexpr: {{#arraysize:spellsAll}} > 0 | ({{#var: queryNamesSpellsAll1|TRUE}} AND {{#var: queryNamesSpellsAll2|TRUE}} AND {{#var: queryNamesSpellsAll3|TRUE}} AND {{#var: queryNamesSpellsAll4|TRUE}} AND {{#var: queryNamesSpellsAll5|TRUE}} AND {{#var: queryNamesSpellsAll6|TRUE}}) | FALSE}} }}<nowiki
/>{{#vardefine: queryNamesSpellsAll | {{#ifexpr: {{#arraysize:spellsAll}} > 0 | ({{#var: queryNamesSpellsAll1|TRUE}} AND {{#var: queryNamesSpellsAll2|TRUE}} AND {{#var: queryNamesSpellsAll3|TRUE}} AND {{#var: queryNamesSpellsAll4|TRUE}} AND {{#var: queryNamesSpellsAll5|TRUE}} AND {{#var: queryNamesSpellsAll6|TRUE}}) | FALSE}} }}<nowiki

Revision as of 19:03, 15 January 2024

Variables

The following section can be transcluded into other pages with {{#lst:User:Toancaro/List of utilities spells/Variables|variables}}.

↑ Back to top

Join OR

The following section can be transcluded into other pages with {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}}.

{{#arraydefine: joinORItems | a,b,c,d,e}}
{{#vardefine: joinORPageSize | 1}}
{{#vardefine: test | {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}} }}
{{#var: test}}

Result: name = "a" OR name = "b" OR name = "c" OR name = "d" OR name = "e"

↑ Back to top