Ad placeholder

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

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
<noinclude><nowiki
<noinclude><nowiki/>
{{Template:TranscludeableLST|variables}}<br/>
{{Code|Variable list}}


/>{{Template:TranscludeableLST|variables}}<br/><nowiki
{{Template:TranscludeableLST|joinOR}}<br/>
<code>
{{((}}#arraydefine: joinORItems | a,b,c,d,e{{))}}<br/>
{{((}}#vardefine: joinORPageSize | 1{{))}}<br/>
{{((}}#vardefine: test | {{((}}#lst:User:Toancaro/List of utilities spells/Variables|joinOR{{))}}{{))}}


 
Print: {{#var: test}}<br/>
/>{{#arraydefine: joinORItems | a,b,c,d,e}}<nowiki
}}
/>{{#vardefine: test | {{#lst:User:Toancaro/List of utilities spells/Variables|joinOR}}}}<nowiki
</code>
/>Test: {{#var: test}}<nowiki
</noinclude><includeonly><section begin="joinOR" /><nowiki
/><nowiki
 
/></noinclude><includeonly><section begin="joinOR" /><nowiki


/>{{#arrayunion: joinORItems | {{#if: {{#arraysize:joinORItems}} | joinORItems | }} }}<nowiki
/>{{#arrayunion: joinORItems | {{#if: {{#arraysize:joinORItems}} | joinORItems | }} }}<nowiki
/>{{#vardefine: joinORPageSize | {{#varexists:joinORPageSize | {{#var:joinORPageSize}} | 25 }} }}<nowiki
/>{{#vardefine: joinORPageSize | {{#varexists:joinORPageSize | {{#var:joinORPageSize}} | 25 }} }}<nowiki
/>{{#vardefine: joinORResult | abc123-}}<nowiki
/>{{#vardefine: joinORResult | }}<nowiki


/>{{#loop: i | 0 | 2 | <nowiki
/>{{#loop: i | 0 | {{#expr: ceil({{#arraysize:joinORItems}} / {{#var:joinORPageSize}})}} | <nowiki
/>{{#arrayslice: itemSliced | itemsAll | {{#expr: {{#var: i}} * 2 }} | 2}}<nowiki
  />{{#arrayslice: itemSliced | joinORItems | {{#expr: {{#var: i}} * {{#var:joinORPageSize}} }} | {{#var:joinORPageSize}}}}<nowiki
/>{{#vardefine: itemsOR | {{#arrayprint: itemSliced | OR | @ | name = "@" }}}}<nowiki
  />{{#vardefine: itemsOR | {{#arrayprint: itemSliced | OR | @ | name = "@" }}}}<nowiki
/>{{#vardefine: itemsORNormalized | {{#replace:{{#var: itemsOR}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
  />{{#vardefine: itemsORNormalized | {{#replace:{{#var: itemsOR}} | OR | <nowiki/> <nowiki/>OR<nowiki/> <nowiki/>}}}}<nowiki
  />{{#vardefine: joinORResult | {{#if: {{#var:joinORResult}} | {{#var:joinORResult}} OR {{#var:itemsORNormalized}} | {{#var:itemsORNormalized}} }} }}<nowiki
/>}}<nowiki
/>}}<nowiki


/>{{#arrayprint: joinORItems}}<nowiki
/>{{#var: joinORResult}}<nowiki
/><section end="joinOR" /><nowiki
/><section end="joinOR" /><nowiki


791
edits

Navigation menu