Difference between revisions of "Template:Properties"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(one more space)
old>Realpsojed
(gotta figure out what to do with the grouping, removed that huge bullshit code)
Line 7: Line 7:
Calls Template:Properties_sort to evaluate all Properties from item's page and compare them with a single Propertygrp. Then another Propertygrp
Calls Template:Properties_sort to evaluate all Properties from item's page and compare them with a single Propertygrp. Then another Propertygrp
If match is found, returns the Property's name. If no match, returns empty string.
If match is found, returns the Property's name. If no match, returns empty string.
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties1}}}} | }}<!--
--><!--{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties1}}}} | }}-->
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties2}}}} | }}<!--
 
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties3}}}} | }}<!--
if propertygrp1 = not empty, then <br><br> else nic
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties4}}}} | }}<!--
 
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties5}}}} | }}<!--
{{Properties_sort|{{:Wooden Sword|Properties1}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties2}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties3}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties4}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties5}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties6}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties7}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties8}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties9}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties10}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp1={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties11}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties12}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties13}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties14}}}}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{Properties_sort|{{:Wooden Sword|Properties15}}}}
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties5}}}} | }}<!--
 
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties6}}}} | }}<!--
<noinclude>{{Doc}}
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp2={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp3={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp4={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp5={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp6={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp7={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp8={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp9={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp10={{:{{{1}}}|Properties15}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties1}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties1}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties2}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties2}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties3}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties3}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties4}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties4}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties5}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties5}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties6}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties6}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties7}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties7}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties8}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties8}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties9}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties9}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties10}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties10}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties11}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties11}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties12}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties12}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties13}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties13}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties14}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties14}}}} | }}<!--
-->{{#if: {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties15}}}} | {{Properties_sort|Propertygrp11={{:{{{1}}}|Properties15}}}} | }}<!--
Only one parameter used - item page name - to load all properties from the item's page (ie. Wooden Sword).
Call Template:Properties_sort to evaluate all Properties from item's page and compare them with a single Propertygrp.
If match is found, returns the Property's name. If no match, returns empty string.
--><noinclude>{{Doc}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 17:17, 8 May 2020


if propertygrp1 = not empty, then

else nic


Template-info.png Documentation

This template needs optimizing. Function is as follows:

1) Calls for Template:Properties sort and provides Properties from the Weapon's page one by one.
2) Then checks the returned PropertygrpX values against all 10 Property groups. Empty Propertygrps are evaluated as empty strings and don't affect the result.
3) Only when matched, calls for Properties' Values from the Weapon's page and colors them white.
4) Also checks the name of the page where you used this Template. If the name is the Weapon's page (or a subpage of the Weapon's page, like Templar Sword/Tooltip), it applies float:right to all the values (since that's how the values are ingame in the tooltips - floated to the right). If the name is not the Weapon's page (like "Swords"), it doesn't apply float:right to the Values.

Only one parameter is used - Weapon's page name.


This template requires that the Weapon's page name has the weapon's data entered as parameters. Example using a switch:

<includeonly>{{#switch: {{{1}}}
|WeaponType = Sword
|Damage1 = 30
|DamageType1 = Slashing
|Damage2 = {{Sacred|2}}
|DamageType2 = {{Sacred|Sacred}}
|Properties1 = Armor Penetration
|Values1 = {{Positive|+20%}}
|Properties2 = Accuracy
|Values2 = {{Positive|+3%}}
|Properties3 = Magic Power
|Values3 = {{Positive|+5%}}
|Properties4 = Block Chance
|Values4 = {{Positive|+5%}}
|Properties5 = Skills Energy Cost
|Values5 = {{Negative|+15%}}
|Durability = 400
|Description = There is a faint etching on the surface of the blade, pledging loyalty to the Host and the court... the common kind of court.
|Price = 7200
|#default = 
}}</includeonly>


This template is used within Template:Weapon, but can also be used to simply load Properties and their Values. For example, here's a simple div with border and we load the Properties of Templar Sword:

<div style="width:fit-content;color:#9d9a9a;border:1px solid blue;">{{Properties|Templar Sword}}</div>

if propertygrp1 = not empty, then

else nic