Difference between revisions of "Template:UO SetCollection Header"

Line 1: Line 1:
 
{{#arraydefine: collection_pages | {{{collection_page0|}}}, {{{collection_page1|}}}, {{{collection_page2|}}}, {{{collection_page3|}}}, {{{collection_page4|}}}, {{{collection_page5|}}}, {{{collection_page6|}}}, {{{collection_page7|}}}, {{{collection_page8|}}}, {{{collection_page9|}}} }}
 
{{#arraydefine: collection_pages | {{{collection_page0|}}}, {{{collection_page1|}}}, {{{collection_page2|}}}, {{{collection_page3|}}}, {{{collection_page4|}}}, {{{collection_page5|}}}, {{{collection_page6|}}}, {{{collection_page7|}}}, {{{collection_page8|}}}, {{{collection_page9|}}} }}
 
item is included in these collections
 
item is included in these collections
{{#loop: i | 0 | {{#arraysize: collection_pages}} | {{#vardefine: collection_page | {{#arrayindex: collection_pages | {{#var:i}} }} }}
+
{{#loop: i | 0 | {{#arraysize: collection_pages}} | {{#vardefine: collection_page_name | {{#arrayindex: collection_pages | {{#var:i}} }} }}
{{#ifeq: {{Boolean|{{{ {{#var:collection_page}}|}}} }} | 1 |* [[UO:{{{collection_page}}} (collection)|{{{collection_page}}}]]<br/>|}}
+
{{#ifeq: {{Boolean|{{{ {{#var:collection_page_name}}|}}} }} | 1 |* [[UO:{{{collection_page_name}}} (collection)|{{{collection_page_name}}}]]<br/>|}}
 
}}
 
}}

Revision as of 02:19, 3 October 2018

item is included in these collections