791
editsMore actions
User:Toancaro/List of utilities spells/Variables (edit)
Revision as of 17:12, 15 January 2024
, 15 Januaryno edit summary
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><section begin="variables" /><nowiki | <noinclude><nowiki | ||
/>{{Template:TranscludeableLST|variables}}<br/><nowiki | |||
/>{{#arraydefine: joinORItems | a,b,c,d,e}}<nowiki | |||
/>{{#vardefine: test | {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}}}}<nowiki | |||
/>Test: {{#var: test}}<nowiki | |||
/><nowiki | |||
/></noinclude><includeonly><section begin="joinOR" /><nowiki | |||
/>{{#arrayunion: joinORItems | {{#if: {{#arraysize:joinORItems}} | joinORItems | }} }}<nowiki | |||
/>{{#vardefine: joinORPageSize | {{#varexists:joinORPageSize | {{#var:joinORPageSize}} | 25 }} }}<nowiki | |||
/>{{#vardefine: joinORResult | abc123-}}<nowiki | |||
/>{{#loop: i | 0 | 2 | <nowiki | |||
/>{{#arrayslice: itemSliced | itemsAll | {{#expr: {{#var: i}} * 2 }} | 2}}<nowiki | |||
/>{{#vardefine: itemsOR | {{#arrayprint: itemSliced | OR | @ | name = "@" }}}}<nowiki | |||
/>{{#vardefine: itemsORNormalized | {{#replace:{{#var: itemsOR}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki | |||
/>}}<nowiki | |||
/>{{#arrayprint: joinORItems}}<nowiki | |||
/><section end="joinOR" /><nowiki | |||
/><section begin="variables" /><nowiki | |||
/>{{#vardefine: querySpellsLearnable | ((classes HOLDS "Wizard" OR classes HOLDS "Sorcerer" OR classes HOLDS "Cleric" OR classes HOLDS "Bard" OR classes HOLDS "Ranger" OR classes HOLDS "Druid" OR classes HOLDS "Paladin" OR classes HOLDS "Warlock") AND (is_npc = false OR is_npc IS NULL))}}<nowiki | />{{#vardefine: querySpellsLearnable | ((classes HOLDS "Wizard" OR classes HOLDS "Sorcerer" OR classes HOLDS "Cleric" OR classes HOLDS "Bard" OR classes HOLDS "Ranger" OR classes HOLDS "Druid" OR classes HOLDS "Paladin" OR classes HOLDS "Warlock") AND (is_npc = false OR is_npc IS NULL))}}<nowiki | ||
Line 52: | Line 77: | ||
/>{{#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 | ||
/><section end="variables" /></includeonly | /><section end="variables" /></includeonly> |