Difference between revisions of "Template:Properties"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(was checking if property exists only after I ran that property through Sort. Moved so that we first check if exists, and only then do Sort)
old>Realpsojed
(fixed if and switch in wrong order at properties13)
Line 131: Line 131:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}
|#default = }}{{:{{{1}}}|Properties12}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values12}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values12}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties13}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties13}}}}
{{:{{{1}}}|Properties12}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values12}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values12}}</span></div>| }}}}{{#switch: {{#if: {{:{{{1}}}|Properties13}} | {{Properties_sort|{{:{{{1}}}|Properties13}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">

Revision as of 13:40, 13 May 2020

{{:{{{1}}}|Properties1}}: {{:{{{1}}}|Values1}}

{{:{{{1}}}|Properties2}}: {{:{{{1}}}|Values2}}{{:{{{1}}}|Properties3}}: {{:{{{1}}}|Values3}}{{:{{{1}}}|Properties4}}: {{:{{{1}}}|Values4}}{{:{{{1}}}|Properties5}}: {{:{{{1}}}|Values5}}{{:{{{1}}}|Properties6}}: {{:{{{1}}}|Values6}}{{:{{{1}}}|Properties7}}: {{:{{{1}}}|Values7}}{{:{{{1}}}|Properties8}}: {{:{{{1}}}|Values8}}{{:{{{1}}}|Properties9}}: {{:{{{1}}}|Values9}}{{:{{{1}}}|Properties10}}: {{:{{{1}}}|Values10}}{{:{{{1}}}|Properties11}}: {{:{{{1}}}|Values11}}{{:{{{1}}}|Properties12}}: {{:{{{1}}}|Values12}}{{:{{{1}}}|Properties13}}: {{:{{{1}}}|Values13}}