Template:DeityInfobox: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<div class="infobox">
{{Infobox
<div class="infobox-title">{{{name|{{PAGENAME}}}}}</div>
| title    = {{{name|{{PAGENAME}}}}}
 
| image    = {{#if:{{{image|}}}|[[File:{{{image|}}}|300px]]}}
{{#if:{{{image|}}}|
| caption = {{{image_desc|}}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
| image2    = {{#if:{{{image2|}}}|[[File:{{{image2|}}}|300px]]}}
 
| caption2 = {{{image2_desc|}}}
<table>
|header1 =
 
| label1 = Titles
{{#if:{{{titles|}}}|<tr>
|  data1 = {{{titles|}}}
    <th>Titles</th>
| label2 = Adjective
    <td>{{{titles}}}</td>
|  data2 = {{{adjective|}}}
</tr>}}
| label3 = Realm
 
|  data3 = {{{realm|}}}
{{#if:{{{adjective|}}}|<tr>
| label5 = Alignment
    <th>Adjective</th>
|  data5 = {{{alignment|}}}
    <td>{{{adjective}}}</td>
| label6 = Areas of concern
</tr>}}
|  data6 = {{{areas_of_concern|}}}
 
| label7 = Worshipers
{{#if:{{{realm|}}}|<tr>
|  data7 = {{{worshipers|}}}
    <th>Realm</th>
| label8 = Cleric alignments
    <td>{{{realm}}}</td>
|  data8 = {{{cleric_alignments|}}}
</tr>}}
| label9 = Max cleric spell level
 
|  data9 = {{{cleric_spell_level|}}}
{{#if:{{{alignment|}}}|<tr>
| label10 = Domains
    <th>Alignment</th>
|  data10 = {{{domains|}}}
    <td>{{{alignment}}}</td>
| label11 = Subdomains
</tr>}}
|  data11 = {{{subdomains|}}}
 
| label12 = Favored weapon
{{#if:{{{areas_of_concern|}}}|<tr>
|  data12 = {{{favored_weapon|}}}
    <th>Areas of concern</th>
| label13 = Symbol
    <td>{{{areas_of_concern}}}</td>
|  data13 = {{{symbol|}}}
</tr>}}
| label14 = Sacred animal
 
|  data14 = {{{sacred_animal|}}}
{{#if:{{{worshipers|}}}|<tr>
| label15 = Sacred colors
    <th>Worshipers</th>
|  data15 = {{{sacred_colors|}}}
    <td>{{{worshipers}}}</td>
}}
</tr>}}
 
{{#if:{{{cleric_alignments|}}}|<tr>
    <th>Cleric alignments</th>
    <td>{{{cleric_alignments}}}</td>
</tr>}}
 
{{#if:{{{cleric_spell_level|}}}|<tr>
    <th>Max cleric spell level</th>
    <td>{{{cleric_spell_level}}}</td>
</tr>}}
 
{{#if:{{{domains|}}}|<tr>
    <th>Domains</th>
    <td>{{{domains}}}</td>
</tr>}}
 
{{#if:{{{subdomains|}}}|<tr>
    <th>Subdomains</th>
    <td>{{{subdomains}}}</td>
</tr>}}
 
{{#if:{{{favored_weapon|}}}|<tr>
    <th>Favored weapon</th>
    <td>{{{favored_weapon}}}</td>
</tr>}}
 
{{#if:{{{symbol|}}}|<tr>
    <th>Symbol</th>
    <td>{{{symbol}}}</td>
</tr>}}
 
{{#if:{{{sacred_animal|}}}|<tr>
    <th>Sacred animal</th>
    <td>{{{sacred_animal}}}</td>
</tr>}}
 
{{#if:{{{sacred_colors|}}}|<tr>
    <th>Sacred colors</th>
    <td>{{{sacred_colors}}}</td>
</tr>}}
 
</table>
</div>

Revision as of 16:41, 28 July 2022