Template:Infobox test: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 31: Line 31:
|rowclass7 = mergedtoprow mergedbottomrow
|rowclass7 = mergedtoprow mergedbottomrow
}}[[Category:All Deities]]
}}[[Category:All Deities]]
{{#vardefine:DomainNumber|0}}
</includeonly><noinclude>[[Category:Templates]]</noinclude>
{{#vardefine:DomainName|{{#replace:{{#replace:{{#replace:{{#explode:{{{domains}}}|{{•}}|{{#var:DomainNumber}}}}|[|}}|]|}}|<br />|}}}}
{{#while:
|{{#if:{{#var:DomainName}}|true}}
|[[Category:{{#var:DomainName}} Deities]]{{#vardefine:DomainNumber|{{#expr:{{#var:DomainNumber}}+1}}}}{{#vardefine:DomainName|{{#replace:{{#replace:{{#explode:{{{domains}}}|{{•}}|{{#var:DomainNumber}}}}|[|}}|]|}}}}
}}
{{#vardefine:SettingNumber|0}}
{{#vardefine:SettingName|{{#replace:{{#replace:{{#replace:{{#explode:{{{settings}}}|{{•}}|{{#var:SettingNumber}}}}|[|}}|]|}}|<br />|}}}}
{{#while:
|{{#if:{{#var:SettingName}}|true}}
|[[Category:{{#var:SettingName}} Deities]]{{#vardefine:SettingNumber|{{#expr:{{#var:SettingNumber}}+1}}}}{{#vardefine:SettingName|{{#replace:{{#replace:{{#explode:{{{setting}}}|{{•}}|{{#var:SettingNumber}}}}|[|}}|]|}}}}
{{#if:{{{alignment|}}}|[[Category:{{{alignment}}} Deities]]}}
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 19:12, 20 May 2022