Difference between revisions of "Template:Properties"
Jump to navigation
Jump to search
old>Realpsojed (Added check if we're working with a tooltip or a table) |
old>Realpsojed (Values1 -> ValuesX, changed div to span for non-tooltip eval) |
||
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> | }}<!-- | |||
-->{{#ifeq: {{Properties_sort|{{:{{{1} | |||
--><noinclude>{{Doc}} | --><noinclude>{{Doc}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |