Difference between revisions of "Template:Properties"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(removed test)
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)
Line 1: Line 1:
<div style="display: flex;flex-direction:column;">{{#switch: {{Properties_sort|{{:{{{1}}}|Properties1}}}}
<div style="display: flex;flex-direction:column;">{{#if: {{:{{{1}}}|Properties1}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties1}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 10: Line 10:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties1}} | {{:{{{1}}}|Properties1}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values1}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties2}}}}
|#default = }}{{:{{{1}}}|Properties1}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values1}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties2}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties2}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 21: Line 21:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties2}} | {{:{{{1}}}|Properties2}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values2}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values2}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties3}}}}
|#default = }}{{:{{{1}}}|Properties2}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values2}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values2}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties3}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties3}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 32: Line 32:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties3}} | {{:{{{1}}}|Properties3}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values3}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values3}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties4}}}}
|#default = }}{{:{{{1}}}|Properties3}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values3}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values3}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties4}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties4}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 43: Line 43:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties4}} | {{:{{{1}}}|Properties4}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values4}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values4}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties5}}}}
|#default = }}{{:{{{1}}}|Properties4}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values4}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values4}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties5}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties5}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 54: Line 54:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties5}} | {{:{{{1}}}|Properties5}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values5}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values5}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties6}}}}
|#default = }}{{:{{{1}}}|Properties5}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values5}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values5}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties6}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties6}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 65: Line 65:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties6}} | {{:{{{1}}}|Properties6}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values6}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values6}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties7}}}}
|#default = }}{{:{{{1}}}|Properties6}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values6}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values6}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties7}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties7}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 76: Line 76:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties7}} | {{:{{{1}}}|Properties7}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values7}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values7}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties8}}}}
|#default = }}{{:{{{1}}}|Properties7}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values7}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values7}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties8}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties8}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 87: Line 87:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties8}} | {{:{{{1}}}|Properties8}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values8}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values8}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties9}}}}
|#default = }}{{:{{{1}}}|Properties8}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values8}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values8}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties9}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties9}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 98: Line 98:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties9}} | {{:{{{1}}}|Properties9}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values9}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values9}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties10}}}}
|#default = }}{{:{{{1}}}|Properties9}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values9}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values9}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties10}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties10}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 109: Line 109:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties10}} | {{:{{{1}}}|Properties10}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values10}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values10}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties11}}}}
|#default = }}{{:{{{1}}}|Properties10}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values10}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values10}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties11}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties11}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 120: Line 120:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties11}} | {{:{{{1}}}|Properties11}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values11}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values11}}</span></div>| }}}}{{#switch: {{Properties_sort|{{:{{{1}}}|Properties12}}}}
|#default = }}{{:{{{1}}}|Properties11}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values11}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values11}}</span></div>| }}}}{{#if: {{:{{{1}}}|Properties12}} | {{#switch: {{Properties_sort|{{:{{{1}}}|Properties12}}}}
|Propertygrp1 = <div style="order: 10;">
|Propertygrp1 = <div style="order: 10;">
|Propertygrp2 = <div style="order: 20;">
|Propertygrp2 = <div style="order: 20;">
Line 132: Line 132:
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}
|#default = }}
{{#if: {{:{{{1}}}|Properties12}} | {{:{{{1}}}|Properties12}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values12}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values12}}</span></div>| }}}}{{#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;">
Line 143: Line 143:
|Propertygrp9 = <div style="order: 90;">
|Propertygrp9 = <div style="order: 90;">
|Propertygrp10 = <div style="order: 100;">
|Propertygrp10 = <div style="order: 100;">
|#default = }}{{#if: {{:{{{1}}}|Properties13}} | {{:{{{1}}}|Properties13}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values13}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values13}}</span></div>| }}}}<!--
|#default = }}{{:{{{1}}}|Properties13}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values13}}</div></div> | <span style="color:white;">{{:{{{1}}}|Values13}}</span></div>| }}}}<!--
-->{{#if: {{#pos: {{Properties_list|{{{1}}}}} | Propertygrp1}} | <div style="order: 15;"> </div> | }}<!--
-->{{#if: {{#pos: {{Properties_list|{{{1}}}}} | Propertygrp1}} | <div style="order: 15;"> </div> | }}<!--
-->{{#if: {{#pos: {{Properties_list|{{{1}}}}} | Propertygrp2}} | <div style="order: 25;"> </div> | }}<!--
-->{{#if: {{#pos: {{Properties_list|{{{1}}}}} | Propertygrp2}} | <div style="order: 25;"> </div> | }}<!--

Revision as of 12:58, 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}}