User:Toancaro/List of utilities spells/Variables: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (→Variables) |
||
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 | ||
/>{{# | />{{#arraydefine: joinORItems | {{#var: spellsAll}} }}<nowiki | ||
/>{{#vardefine: queryNamesSpellsAll | {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}} }}<nowiki | |||
/>{{#vardefine: | |||
/> | />{{#var: queryNamesSpellsAll}}<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 18:03, 15 January 2024
Variables
The following section can be transcluded into other pages with {{#lst:User:Toancaro/List of utilities spells/Variables|variables}}
.
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"