User:Toancaro/List of utilities spells/Join OR: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(7 intermediate revisions by the same user not shown)
Line 3: Line 3:
{{#arraydefine: joinORItems | a,b,c,d,e}}
{{#arraydefine: joinORItems | a,b,c,d,e}}
{{#vardefine: joinORPageSize | 1}}
{{#vardefine: joinORPageSize | 1}}
{{#vardefine: test | {{#lst:User:Toancaro/List of utilities spells/Join OR|joinOR}} }}
{{#lst:User:Toancaro/List of utilities spells/Join OR|joinOR}}
{{#vardefine: test | {{#var: joinORResult}} }}
{{#var: test}}
{{#var: test}}
</syntaxhighlight>
</syntaxhighlight>
Line 9: Line 10:
{{#arraydefine: joinORItems | a,b,c,d,e}}<nowiki/>
{{#arraydefine: joinORItems | a,b,c,d,e}}<nowiki/>
{{#vardefine: joinORPageSize | 1}}<nowiki/>
{{#vardefine: joinORPageSize | 1}}<nowiki/>
{{#vardefine: test | {{#lst:User:Toancaro/List of utilities spells/Join OR|joinOR}} }}<nowiki/>
{{#lst:User:Toancaro/List of utilities spells/Join OR|joinOR}}<nowiki/>
{{#var: test}}</noinclude><includeonly><section begin="joinOR" /><nowiki
{{#vardefine: test | {{#var: joinORResult}} }}<nowiki/>
{{#var: test}}</noinclude><includeonly><onlyinclude><section begin="joinOR" /><nowiki


/>{{#arrayunion: joinORItems | {{#if: {{#arraysize:joinORItems}} | joinORItems | }} }}<nowiki
/>{{#arrayunion: joinORItems | {{#if: {{#arraysize:joinORItems}} | joinORItems | }} }}<nowiki
Line 23: Line 25:
/>}}<nowiki
/>}}<nowiki


/>{{#var: joinORResult}}<nowiki
/>{{#vardefine: joinORResult | ({{#var: joinORResult | FALSE}}) }}<nowiki
/><section end="joinOR" /></includeonly>
/><section end="joinOR" /></onlyinclude></includeonly>

Latest revision as of 20:07, 15 January 2024

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

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

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