Difference between revisions of "Template:UO SetCollection Header"

 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
<div class="toc" style="{{{style|}}}">
+
<div class="toc" style="text-align:center;{{{style|}}}">
{{#arraydefine: collection_pages | {{{collection_page|}}}, {{{collection_page1|}}}, {{{collection_page2|}}}, {{{collection_page3|}}}, {{{collection_page4|}}}, {{{collection_page5|}}}, {{{collection_page6|}}}, {{{collection_page7|}}}, {{{collection_page8|}}}, {{{collection_page9|}}} }}
+
{{#arraydefine: collection_names | {{{collection_name|}}}, {{{collection_name1|}}}, {{{collection_name2|}}}, {{{collection_name3|}}}, {{{collection_name4|}}}, {{{collection_name5|}}}, {{{collection_name6|}}}, {{{collection_name7|}}}, {{{collection_name8|}}}, {{{collection_name9|}}} }}
<center>==Related Collections==</center>
+
==Related Collections==
{{#loop: i | 0 | {{#arraysize: collection_pages}} | {{#vardefine: collection_page_name | {{#arrayindex: collection_pages | {{#var:i}} }} }}
+
{{#loop: i | 0 | {{#arraysize: collection_names}} | {{#vardefine: collection_page | {{#arrayindex: collection_names | {{#var:i}} }} }}
{{#if: {{#var:collection_page_name}}|* [[UO:{{#var:collection_page_name}} (collection)|{{#var:collection_page_name}}]]<br/>|}}
+
{{#if: {{#var:collection_page}}|* [[UO:{{#var:collection_page}} (collection)|{{#var:collection_page}}]]<br/>|}}
 
}}
 
}}
 
</div>
 
</div>

Latest revision as of 02:45, 30 October 2018

Related Collections