Template:Infobox test: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
|data4 = {{#if:{{{symbol|}}}|{{{symbol|}}}}}
|data4 = {{#if:{{{symbol|}}}|{{{symbol|}}}}}
|label5 = Homeplane
|label5 = Homeplane
|data5 = {{#if:{{{homeplane|}}}|{{{homeplane|}}}}}
|data5 = {{#if:{{{homeplane|}}}|[[{{{homeplane|}}}]]}}
|label6 = Worshipers
|label6 = Worshipers
|data6 = {{#if:{{{followers|}}}|{{{followers|}}}}}
|data6 = {{#if:{{{followers|}}}|{{{followers|}}}}}
|label7 = Setting
|label7 = Setting
|data7 = {{#if:{{{setting|}}}|{{{setting|}}}}}
|data7 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}}


|aboveclass = name mergedtoprow
|aboveclass = name mergedtoprow
Line 30: Line 30:
|rowclass6 = mergedbottomrow
|rowclass6 = mergedbottomrow
|rowclass7 = mergedtoprow mergedbottomrow
|rowclass7 = mergedtoprow mergedbottomrow
[[Category:All Deities]]
{{#vardefine:DomainNumber|0}}
{{#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:{{{settings}}}|{{•}}|{{#var:SettingNumber}}}}|[|}}|]|}}}}
{{#if:{{{alignment|}}}|[[Category:{{{alignment}}} Deities]]}}
}}
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Revision as of 19:08, 20 May 2022