Difference between revisions of "Template:UO SetCollection Header"

 
(12 intermediate revisions by the same user not shown)
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|}}} }}
+
__NOEDITSECTION__
item is included in these collections
+
<div class="toc" style="text-align:center;{{{style|}}}">
{{#loop: i | 0 | {{#arraysize: collection_pages}} | {{#vardefine: collection_page_name | {{#arrayindex: collection_pages | {{#var:i}} }} }}
+
{{#arraydefine: collection_names | {{{collection_name|}}}, {{{collection_name1|}}}, {{{collection_name2|}}}, {{{collection_name3|}}}, {{{collection_name4|}}}, {{{collection_name5|}}}, {{{collection_name6|}}}, {{{collection_name7|}}}, {{{collection_name8|}}}, {{{collection_name9|}}} }}
{{#var:collection_page_name}}  {{Boolean|{{{ {{#var:collection_page_name}}|}}}<br/>
+
==Related Collections==
{{#ifeq: {{Boolean|{{{ {{#var:collection_page_name}}|}}} }} | 1 | [[UO:{{#var:collection_page_name}} (collection)|{{#var:collection_page_name}}]]<br/>|}}
+
{{#loop: i | 0 | {{#arraysize: collection_names}} | {{#vardefine: collection_page | {{#arrayindex: collection_names | {{#var:i}} }} }}
 +
{{#if: {{#var:collection_page}}|* [[UO:{{#var:collection_page}} (collection)|{{#var:collection_page}}]]<br/>|}}
 
}}
 
}}
 +
</div>

Latest revision as of 02:45, 30 October 2018

Related Collections