Template:Infobox Deity: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>
|aboveclass = mergedtoprow {{#if:{{{tag-line|}}}||mergedbottomrow}} name
{{infobox
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedbottomrow title
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
|image = {{#if:{{{image|}}}|[[File:{{{image|}}}|250px]]}}
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|caption = {{{caption|}}}
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
|label1 = Alignment
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|data1 = {{#if:{{{alignment|}}}|[[:Category:{{{alignment|}}} Deities|{{{alignment|}}}]]}}
|imagerowclass2 = mergedbottomrow
|label2 = Domain(s)
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|data2 = {{{domains|}}}
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
|label3 = Power Level
|imagerowclass3 = mergedtoprow mergedbottomrow
|data3 = {{{power|}}}
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|label4 = Symbol
|data4 = {{{symbol|}}}
|label5 = Homeplane
|data5 = {{#if:{{{homeplane|}}}|[[{{{homeplane|}}}]]}}
|label6 = Worshipers
|data6 = {{{followers|}}}
|label7 = Setting
|data7 = {{#if:{{{setting|}}}|[[{{{setting|}}}]]}}
 
|aboveclass = name mergedtoprow
|subheaderrowclass1 = mergedbottomrow
|imagerowclass1 = mergedtoprow mergedbottomrow
|rowclass1 = mergedtoprow
|rowclass1 = mergedtoprow
|label1 = Domain(s)
|data1 = {{#if:{{{domains|}}}|{{{domains|}}}|}}
|rowclass2 = mergedrow
|rowclass2 = mergedrow
|label2 = Alignment
|rowclass3 = mergedbottomrow
|data2 = {{#if:{{{alignment|}}}|{{{alignment|}}}|}}
|rowclass4 = mergedtoprow
|rowclass3 = mergedrow
|label3 = Power Level
|data3 = {{#if:{{{powerlevel|}}}|{{{powerlevel|}}}|}}
|rowclass4 = mergedrow
|label4 = Symbol
|data4 = {{#if:{{{symbol|}}}|{{{symbol|}}}|}}
|rowclass5 = mergedrow
|rowclass5 = mergedrow
|label5 = Home Plane
|data5 = {{#if:{{{homeplane|}}}|{{{homeplane|}}}|}}
|rowclass6 = mergedbottomrow
|rowclass6 = mergedbottomrow
|label6 = Worshipers
|data6 = {{#if:{{{worshipers|}}}|{{{worshipers|}}}|}}
|rowclass7 = mergedtoprow mergedbottomrow
|rowclass7 = mergedtoprow mergedbottomrow
|label7 = Setting(s)
|data7 = {{#if:{{{settings|}}}|{{{settings|}}}|}}
|belowclass = mergedtoprow mergedbottomrow
|below =
}}[[Category:All Deities]]
}}[[Category:All Deities]]
{{#vardefine:DomainNumber|0}}
</includeonly><noinclude>
{{#vardefine:DomainName|{{#replace:{{#replace:{{#replace:{{#explode:{{{domains}}}|{{•}}|{{#var:DomainNumber}}}}|[|}}|]|}}|<br />|}}}}
{{Documentation}}
{{#while:
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
|{{#if:{{#var:DomainName}}|true}}
</noinclude>
|[[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>

Revision as of 20:14, 21 May 2022