Difference between revisions of "Template:UO SetCollection Header"

 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
__NOEDITSECTION__
 
__NOEDITSECTION__
<left><div style="display: inline-flex;padding: 7px;border: 1px outset grey;text-align: center;line-height: 2.1em;max-width:{{{width|41}}}%;left:2%;position:relative;min-height: 2.1em;padding-right: 1.5em;{{{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|}}} }}
'''Related Collections'''
+
==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></left>
+
</div>

Latest revision as of 02:45, 30 October 2018

Related Collections