Difference between revisions of "Template:Properties"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(Added color and float:right for Values)
old>Realpsojed
(Added check if we're working with a tooltip or a table)
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}}: <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div><br> | }}<!--
-->{{Spacer|{{#ifeq: {{Properties_sort|{{:{{{1}}}|Properties1}}}} | Propertygrp1 | {{:{{{1}}}|Properties1}}: {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | <div style="float: right;color:white;">{{:{{{1}}}|Values1}}</div> | <div style="color:white;">{{:{{{1}}}|Values1}}</div> }}<br> | }}<!--
-->{{#ifeq: {{Properties_sort|{{:{{{1}}}|Properties2}}}} | Propertygrp1 | {{:{{{1}}}|Properties2}}: <div style="float: right;color:white;">{{:{{{1}}}
-->{{#ifeq: {{Properties_sort|{{:{{{1}
--><noinclude>{{Doc}}
--><noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 11:55, 9 May 2020