Jump to content

Template:Infobox saints and gods: Difference between revisions

From Encyclopædia Mundus
Created page with "<!-- Template:Infobox saints and gods (HTML-safe, auto-links where helpful) --> <table class="infobox infobox-saints-gods"> <tr> <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> </tr> {{#if: {{{image|}}} | <tr> <td class="infobox-image mw-no-invert" colspan="2"> [[File:{{{image}}}|{{{imagesize|260px}}}|alt={{{image_alt|}}}|center]] {{#pageimage:{{{image}}}}} {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{..."
 
No edit summary
Line 1: Line 1:
<!-- Template:Infobox saints and gods (HTML-safe, auto-links where helpful) -->
<!-- Template:Infobox saints and gods (HTML-safe, auto-links) -->
<table class="infobox infobox-saints-gods">
<table class="infobox infobox-saints">
   <tr>
   <tr>
     <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
     <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
Line 22: Line 22:
   }}
   }}


   <!-- Deity associations (show section only if any present) -->
   <!-- Section: Divine aspects (for gods/demigods) -->
   {{#if: {{{element|}}}{{{direction|}}}{{{season|}}} |
   {{#if: {{{element|}}}{{{direction|}}}{{{season|}}} |
   <tr><th class="infobox-section" colspan="2">Deity associations</th></tr>
   <tr><th class="infobox-section" colspan="2">Divine aspects</th></tr>
   }}
   }}
   {{#if: {{{element|}}} |
   {{#if: {{{element|}}} |
   <tr>
   <tr>
Line 33: Line 32:
   </tr>
   </tr>
   }}
   }}
   {{#if: {{{direction|}}} |
   {{#if: {{{direction|}}} |
   <tr>
   <tr>
     <th scope="row">Associated cardinal direction</th>
     <th scope="row">Associated direction</th>
     <td>[[{{{direction}}}]]</td>
     <td>[[{{{direction}}}]]</td>
   </tr>
   </tr>
   }}
   }}
   {{#if: {{{season|}}} |
   {{#if: {{{season|}}} |
   <tr>
   <tr>
Line 48: Line 45:
   }}
   }}


   <!-- Saint details (show section only if any present) -->
   <!-- Section: Saintly attributes (for saints) -->
   {{#if: {{{patron_of|}}}{{{age|}}}{{{full_name|}}}{{{triad|}}} |
   {{#if: {{{patron_of|}}}{{{age|}}}{{{full_name|}}}{{{triad|}}} |
   <tr><th class="infobox-section" colspan="2">Saintly details</th></tr>
   <tr><th class="infobox-section" colspan="2">Saintly attributes</th></tr>
   }}
   }}
 
   {{#if: {{{patron_of|}}} |
   {{#if: {{{full_name|}}} |
   <tr>
   <tr>
     <th scope="row">Full name</th>
     <th scope="row">Patron of</th>
     <td>{{{full_name}}}</td>
     <td>{{{patron_of}}}</td>
   </tr>
   </tr>
   }}
   }}
   {{#if: {{{age|}}} |
   {{#if: {{{age|}}} |
   <tr>
   <tr>
Line 66: Line 61:
   </tr>
   </tr>
   }}
   }}
 
   {{#if: {{{full_name|}}} |
   {{#if: {{{patron_of|}}} |
   <tr>
   <tr>
     <th scope="row">Patron of</th>
     <th scope="row">Full name</th>
     <td>{{{patron_of}}}</td>
     <td>{{{full_name}}}</td>
   </tr>
   </tr>
   }}
   }}
   {{#if: {{{triad|}}} |
   {{#if: {{{triad|}}} |
   <tr>
   <tr>
Line 85: Line 78:
<templatedata>
<templatedata>
{
{
   "description": "Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for linked fields.",
   "description": "Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for auto-linked fields.",
   "params": {
   "params": {
     "name":         { "label": "Name", "type": "string", "example": "Simonius the Father" },
     "name":       { "label": "Name", "type": "string", "example": "Simonius the Father" },
 
     "image":       { "label": "Image filename", "type": "string", "example": "Simonius.png", "description": "Filename only (no \"File:\" prefix)." },
     "image":         { "label": "Image filename", "type": "string", "example": "Simonius.png",
     "imagesize":   { "label": "Image size", "type": "string", "default": "260px" },
                      "description": "Filename only (no \"File:\" prefix)." },
     "image_alt":   { "label": "Image alt text", "type": "string" },
     "imagesize":     { "label": "Image size", "type": "string", "default": "260px" },
     "image_alt":     { "label": "Image alt text", "type": "string" },
     "image_caption": { "label": "Image caption", "type": "string" },
     "image_caption": { "label": "Image caption", "type": "string" },


     "type":         { "label": "Type", "type": "string",
     "type":       { "label": "Type", "type": "string",
                      "suggestedvalues": ["God","Goddess","Saint","Demigod"] },
                    "suggestedvalues": ["God","Saint","Demigod","Herald","Prophet"] },


     "element":       { "label": "Associated element (page name)", "type": "string", "example": "Light" },
     "element":     { "label": "Associated element (page name)", "type": "string", "example": "Light" },
     "direction":     { "label": "Associated cardinal direction (page name)", "type": "string", "example": "North" },
     "direction":   { "label": "Associated direction (page name)", "type": "string", "example": "North" },
     "season":       { "label": "Associated season (page name)", "type": "string", "example": "Winter" },
     "season":     { "label": "Associated season (page name)", "type": "string", "example": "Winter" },


     "full_name":     { "label": "Full name (saints)", "type": "string", "example": "Saint Arriak Warden" },
     "patron_of":   { "label": "Patron of (free text)", "type": "string", "example": "Wardens; Gatekeepers" },
     "age":           { "label": "Age at death (saints)", "type": "string", "example": "32 cycles" },
     "age":         { "label": "Age at death", "type": "string", "example": "34 cycles" },
     "patron_of":     { "label": "Patron of (saints)", "type": "string", "example": "Wardens, gatekeepers, sentries" },
     "full_name":   { "label": "Full name", "type": "string", "example": "Saint Arriak of the Gates" },
     "triad":         { "label": "Associated triad (page name)", "type": "string", "example": "Warden's Triad" }
     "triad":       { "label": "Associated triad (page name)", "type": "string", "example": "Triad of Stewardship" }
   },
   },
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","type","element","direction","season","full_name","age","patron_of","triad"]
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","type","element","direction","season","patron_of","age","full_name","triad"]
}
}
</templatedata>
</templatedata>


==Usage==
==Usage==
; Deity example
=== God example ===
<pre>
<pre>
{{Infobox saints and gods
{{Infobox saints and gods
Line 124: Line 115:
</pre>
</pre>


; Saint example
=== Saint example ===
<pre>
<pre>
{{Infobox saints and gods
{{Infobox saints and gods
Line 130: Line 121:
| image      = Saint_Arriak.png
| image      = Saint_Arriak.png
| type      = Saint
| type      = Saint
| full_name = Arriak Warden
| patron_of = Wardens; city gates; watchmen
| age        = 30 cycles
| age        = 31 cycles
| patron_of = Wardens, gatekeepers, sentries
| full_name = Arriak of Iron Gate
| triad      = Warden's Triad
| triad      = Triad of Stewardship
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 03:22, 29 October 2025

Infobox saints and gods


Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for auto-linked fields.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Simonius the Father
Stringoptional
Image filenameimage

Filename only (no "File:" prefix).

Example
Simonius.png
Stringoptional
Image sizeimagesize

no description

Default
260px
Stringoptional
Image alt textimage_alt

no description

Stringoptional
Image captionimage_caption

no description

Stringoptional
Typetype

no description

Suggested values
God Saint Demigod Herald Prophet
Stringoptional
Associated element (page name)element

no description

Example
Light
Stringoptional
Associated direction (page name)direction

no description

Example
North
Stringoptional
Associated season (page name)season

no description

Example
Winter
Stringoptional
Patron of (free text)patron_of

no description

Example
Wardens; Gatekeepers
Stringoptional
Age at deathage

no description

Example
34 cycles
Stringoptional
Full namefull_name

no description

Example
Saint Arriak of the Gates
Stringoptional
Associated triad (page name)triad

no description

Example
Triad of Stewardship
Stringoptional

Usage

God example

{{Infobox saints and gods
| name      = Simonius the Father
| image     = Simonius.png
| type      = God
| element   = Light
| direction = North
| season    = Winter
}}

Saint example

{{Infobox saints and gods
| name       = Saint Arriak Warden
| image      = Saint_Arriak.png
| type       = Saint
| patron_of  = Wardens; city gates; watchmen
| age        = 31 cycles
| full_name  = Arriak of Iron Gate
| triad      = Triad of Stewardship
}}