Template:Infobox Deity: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>
|aboveclass = mergedtoprow {{#if:{{{tag-line|}}}||mergedbottomrow}} name
{{infobox
|autoheaders = y
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedbottomrow title
|subheader = {{{tag|}}}
|subheader1 = {{#if:{{{tag-line|}}}|{{{tag-line|}}}}}
|image = {{{image|}}}
|imagerowclass1 = mergedtoprow {{#if:{{{image2|}}}||mergedbottomrow}}
|caption = {{{caption|}}}
|image1 = {{#if:{{{image1|}}}|[[File:{{{image1|}}}|250px]]}}
|header1 = General Info
|caption1 = {{#if:{{{imagecaption1|}}}|{{{imagecaption1|}}}}}
|label2 = Symbol
|imagerowclass2 = mergedbottomrow
|data2 = {{{symbol|}}}
|image2 = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|250px]]}}
|label3 = Homeplane
|caption2 = {{#if:{{{imagecaption2|}}}|{{{imagecaption2|}}}}}
|data3 = {{{homeplane|}}}
|imagerowclass3 = mergedtoprow mergedbottomrow
|label4 = Worshipers
|image3 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|data4 = {{{followers|}}}
|rowclass1 = mergedtoprow
|data5 = <tabber>
|label1 = Domain(s)
|-|PF 2e =  
|data1 = {{#if:{{{domains|}}}|{{{domains|}}}|}}
{{Infobox Deity Stats PF2e
| PF2eDivineRank          = {{{PF2eDivineRank|}}}
| PF2eAlignment            = {{{PF2eAlignment|}}}
| PF2eDivineAbility        = {{{PF2eDivineAbility|}}}
| PF2eDivineFont          = {{{PF2eDivineFont|}}}
| PF2eDivineSanctification = {{{PF2eDivineSanctification|}}}
| PF2eDivineSkill          = {{{PF2eDivineSkill|}}}
| PF2eFavoredWeapons      = {{{PF2eFavoredWeapons|}}}
| PF2eDomains              = {{{PF2eDomains|}}}
| PF2eAlternateDomains    = {{{PF2eAlternateDomains|}}}
| PF2eClericSpells        = {{{PF2eClericSpells|}}}
}}
|-|DnD 5e =  
{{Infobox Deity Stats DnD5e
| DnD5eDivineRank = {{{DnD5eDivineRank|}}}
| DnD5eAlignment  = {{{DnD5eAlignment|}}}
| DnD5eDomains    = {{{DnD5eDomains|}}}
}}
</tabber>
|label6 = Setting
|data6 = {{{setting|}}}
 
|aboveclass = name mergedtoprow
|subheaderrowclass1 = mergedbottomrow
|imagerowclass1 = mergedtoprow mergedbottomrow
|rowclass1 = mergedtoprow deity
|rowclass2 = mergedrow
|rowclass2 = mergedrow
|label2 = Alignment
|data2 = {{#if:{{{alignment|}}}|{{{alignment|}}}|}}
|rowclass3 = mergedrow
|rowclass3 = mergedrow
|label3 = Power Level
|rowclass4 = mergedbottomrow
|data3 = {{#if:{{{powerlevel|}}}|{{{powerlevel|}}}|}}
|rowclass5 = mergedtoprow mergedbottomrow
|rowclass4 = mergedrow
|rowclass6 = mergedtoprow mergedbottomrow
|label4 = Symbol
}}</includeonly><noinclude>
|data4 = {{#if:{{{symbol|}}}|{{{symbol|}}}|}}
{{Documentation}}
|rowclass5 = mergedrow
<!--Please add this template's categories to the /doc subpage, not here - thanks!-->
|label5 = Home Plane
</noinclude>
|data5 = {{#if:{{{homeplane|}}}|{{{homeplane|}}}|}}
|rowclass6 = mergedrow
|label6 = Worshipers
|data6 = {{#if:{{{worshipers|}}}|{{{worshipers|}}}|}}
|rowclass7 = mergedbottomrow
|label7 = Setting(s)
|data7 = {{#if:{{{settings|}}}|{{{settings|}}}|}}
|belowclass = mergedtoprow mergedbottomrow
|below =
[[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}}}}|[|}}|]|}}}}
}}
 
 
 
}}</includeonly><noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 05:09, 21 May 2024