Difference between revisions of "Template:Properties"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Values1 -> ValuesX, changed div to span for non-tooltip eval)
old>Realpsojed
(Values did float on tooltip page, but didn't float on item page, changed eval to ROOTPAGENAME vs. parameter)
Line 6: Line 6:
We call Template:Properties_sort to evaluate all Properties from item's page and return their respective PropertygrpX. Then we sort all Properties by their Propertygrps.
We call Template:Properties_sort to evaluate all Properties from item's page and return their respective PropertygrpX. Then we sort all Properties by their Propertygrps.
We return all properties' names sorted by their Propertygrps. Empty Propertygrps are empty strings and don't affect the result.
We return all properties' names sorted by their Propertygrps. Empty Propertygrps are empty strings and don't affect the result.
-->{{Spacer|{{#ifeq: {{Properties_sort|{{:{{{1}}}|Properties1}}}} | Propertygrp1 | {{:{{{1}}}|Properties1}}: {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div> | <span style="color:white;">{{:{{{1}}}|Values1}}</span> }}<br> | }}<!--
-->{{Spacer|{{#ifeq: {{Properties_sort|{{:{{{1}}}|Properties1}}}} | Propertygrp1 | {{:{{{1}}}|Properties1}}: {{#ifeq: {{ROOTPAGENAME}} | {{{1}}} | <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div> | <span style="color:white;">{{:{{{1}}}|Values1}}</span> }}<br> | }}<!--
-->{{#ifeq: {{Properties_sort|{{:{{{1}
-->{{#ifeq: {{Properties_sort|{{:{{{1}
--><noinclude>{{Doc}}
--><noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 14:43, 9 May 2020