Jump to content

Template:Infobox saints and gods: Difference between revisions

From Encyclopædia Mundus
No edit summary
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 7: Line 7:
   {{#if: {{{image|}}} |
   {{#if: {{{image|}}} |
   <tr>
   <tr>
     <td class="infobox-image mw-no-invert" colspan="2">
     <td class="infobox-image mw-no-invert" colspan="2">[[File:{{{image}}}|{{{imagesize|260px}}}|alt={{{image_alt|}}}|center]]}}{{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div></td>
      [[File:{{{image}}}|{{{imagesize|260px}}}|alt={{{image_alt|}}}|center]]
      {{#pageimage:{{{image}}}}}
      {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
    </td>
   </tr>
   </tr>
   }}
   }}
Line 29: Line 25:
   <tr>
   <tr>
     <th scope="row">Associated element</th>
     <th scope="row">Associated element</th>
     <td>[[{{{element}}}]]</td>
     <td>{{{element}}}</td>
   </tr>
   </tr>
   }}
   }}
Line 35: Line 31:
   <tr>
   <tr>
     <th scope="row">Associated direction</th>
     <th scope="row">Associated direction</th>
     <td>[[{{{direction}}}]]</td>
     <td>{{{direction}}}</td>
   </tr>
   </tr>
   }}
   }}
Line 41: Line 37:
   <tr>
   <tr>
     <th scope="row">Associated season</th>
     <th scope="row">Associated season</th>
     <td>[[{{{season}}}]]</td>
     <td>{{{season}}}</td>
   </tr>
   </tr>
   }}
   }}


   <!-- Section: Saintly attributes (for saints) -->
   <!-- Section: Saintly attributes (for saints) -->
   {{#if: {{{patron_of|}}}{{{age|}}}{{{full_name|}}}{{{triad|}}} |
   {{#if: {{{patron_of|}}}{{{age|}}}{{{full_name|}}}{{{triad|}}}{{{triad_image|}}} |
   <tr><th class="infobox-section" colspan="2">Saintly attributes</th></tr>
   <tr><th class="infobox-section" colspan="2">Saintly attributes</th></tr>
   }}
   }}
Line 73: Line 69:
   </tr>
   </tr>
   }}
   }}
  {{#if: {{{triad_image|}}} |
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">[[File:{{{triad_image}}}|{{{triad_imagesize|120px}}}|alt={{{triad_image_alt|}}}|center]]{{#if: {{{triad_image_caption|}}} | <div class="infobox-caption">{{{triad_image_caption}}}</div> }}</td>
  </tr>
  }}
</table>
</table>


Line 78: Line 80:
<templatedata>
<templatedata>
{
{
   "description": "Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for auto-linked fields.",
   "description": "Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for auto-linked fields; filenames (no \"File:\") for images.",
   "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)." },
 
     "imagesize":   { "label": "Image size", "type": "string", "default": "260px" },
     "image":             { "label": "Main image filename", "type": "string", "example": "Simonius.png" },
     "image_alt":   { "label": "Image alt text", "type": "string" },
     "imagesize":         { "label": "Main image size", "type": "string", "default": "260px" },
     "image_caption": { "label": "Image caption", "type": "string" },
     "image_alt":         { "label": "Main image alt text", "type": "string" },
     "image_caption":     { "label": "Main image caption", "type": "string" },
 
    "type":              { "label": "Type", "type": "string", "suggestedvalues": ["God","Saint","Demigod","Herald","Prophet"] },


     "type":       { "label": "Type", "type": "string",
     "element":           { "label": "Associated element (page name)", "type": "string", "example": "Light" },
                    "suggestedvalues": ["God","Saint","Demigod","Herald","Prophet"] },
    "direction":        { "label": "Associated direction (page name)", "type": "string", "example": "North" },
    "season":            { "label": "Associated season (page name)", "type": "string", "example": "Winter" },


     "element":     { "label": "Associated element (page name)", "type": "string", "example": "Light" },
     "patron_of":         { "label": "Patron of (free text)", "type": "string", "example": "Wardens; Gatekeepers" },
     "direction":   { "label": "Associated direction (page name)", "type": "string", "example": "North" },
     "age":               { "label": "Age at death", "type": "string", "example": "34 cycles" },
     "season":     { "label": "Associated season (page name)", "type": "string", "example": "Winter" },
     "full_name":         { "label": "Full name", "type": "string", "example": "Saint Arriak Warden" },


     "patron_of":   { "label": "Patron of (free text)", "type": "string", "example": "Wardens; Gatekeepers" },
     "triad":             { "label": "Associated triad (page name)", "type": "string", "example": "Triad of Stewardship" },
     "age":         { "label": "Age at death", "type": "string", "example": "34 cycles" },
     "triad_image":       { "label": "Triad symbol image filename", "type": "string", "example": "Triad_Stewardship.png" },
     "full_name":  { "label": "Full name", "type": "string", "example": "Saint Arriak of the Gates" },
     "triad_imagesize":  { "label": "Triad image size", "type": "string", "default": "120px" },
     "triad":       { "label": "Associated triad (page name)", "type": "string", "example": "Triad of Stewardship" }
     "triad_image_alt":   { "label": "Triad image alt text", "type": "string" },
    "triad_image_caption": { "label": "Triad image caption", "type": "string" }
   },
   },
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","type","element","direction","season","patron_of","age","full_name","triad"]
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","type","element","direction","season","patron_of","age","full_name","triad","triad_image","triad_imagesize","triad_image_alt","triad_image_caption"]
}
}
</templatedata>
</templatedata>
Line 115: Line 122:
</pre>
</pre>


=== Saint example ===
=== Saint example (with triad symbol) ===
<pre>
<pre>
{{Infobox saints and gods
{{Infobox saints and gods
| name       = Saint Arriak Warden
| name       = Saint Arriak Warden
| image     = Saint_Arriak.png
| image       = Saint_Arriak.png
| type       = Saint
| type       = Saint
| patron_of = Wardens; city gates; watchmen
| patron_of   = Wardens; city gates; watchmen
| age       = 31 cycles
| age         = 31 cycles
| full_name = Arriak of Iron Gate
| full_name   = Arriak of Iron Gate
| triad     = Triad of Stewardship
| triad       = Triad of Stewardship
| triad_image = Triad_Stewardship.png
| triad_image_caption = The Stewardship triad mark
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Latest revision as of 23:29, 29 October 2025

Infobox saints and gods


Infobox for deities and saints in Mundus. Enter page names (no [[ ]]) for auto-linked fields; filenames (no "File:") for images.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Simonius the Father
Stringoptional
Main image filenameimage

no description

Example
Simonius.png
Stringoptional
Main image sizeimagesize

no description

Default
260px
Stringoptional
Main image alt textimage_alt

no description

Stringoptional
Main 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 Warden
Stringoptional
Associated triad (page name)triad

no description

Example
Triad of Stewardship
Stringoptional
Triad symbol image filenametriad_image

no description

Example
Triad_Stewardship.png
Stringoptional
Triad image sizetriad_imagesize

no description

Default
120px
Stringoptional
Triad image alt texttriad_image_alt

no description

Stringoptional
Triad image captiontriad_image_caption

no description

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 (with triad symbol)

{{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
| triad_image = Triad_Stewardship.png
| triad_image_caption = The Stewardship triad mark
}}