Jump to content

Template:Infobox character: Difference between revisions

From Encyclopædia Mundus
No edit summary
No edit summary
Line 7: Line 7:
   {{#if: {{{image|}}} |
   {{#if: {{{image|}}} |
   <tr>
   <tr>
     <td class="infobox-image" colspan="2">
     <td class="infobox-image mw-no-invert" colspan="2">
       [[File:{{{image}}}|{{#pageimage:{{{image}}}}} {{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
       [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
      {{#pageimage:{{{image}}}}}
       {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
       {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
     </td>
     </td>
Line 75: Line 76:
     <th scope="row">Status</th>
     <th scope="row">Status</th>
     <td>{{{status}}}</td>
     <td>{{{status}}}</td>
  </tr>
  }}
  <!-- In-game appearance (only if provided) -->
  {{#if: {{{game_image|}}} |
  <tr><th class="infobox-sub" colspan="2">In-game appearance</th></tr>
  <tr>
    <td class="infobox-image mw-no-invert" colspan="2">
      [[File:{{{game_image}}}|{{{game_imagesize|180px}}}|alt={{{game_image_alt|}}}|center]]
      {{#if: {{{game_image_caption|}}} | <div class="infobox-caption">{{{game_image_caption}}}</div> }}
    </td>
   </tr>
   </tr>
   }}
   }}
</table>
</table>
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Characters]]}} }}</includeonly>
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Characters]]}} }}</includeonly>
<noinclude>
<noinclude>
Line 85: Line 98:
   "params": {
   "params": {
     "name":        { "label": "Name", "type": "string",  "example": "Irian Balewood" },
     "name":        { "label": "Name", "type": "string",  "example": "Irian Balewood" },
     "image":        { "label": "Image filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" },
     "image":        { "label": "Image filename (art)", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" },
     "imagesize":    { "label": "Image size", "type": "string", "default": "250px" },
     "imagesize":    { "label": "Image size", "type": "string", "default": "250px" },
     "image_alt":    { "label": "Image alt text", "type": "string" },
     "image_alt":    { "label": "Image alt text", "type": "string" },
Line 95: Line 108:
     "age":          { "label": "Age", "type": "string", "example": "26 cycles" },
     "age":          { "label": "Age", "type": "string", "example": "26 cycles" },


     "nationality":  { "label": "Nationality (page name only)", "type": "string",
     "nationality":  { "label": "Nationality (page name only)", "type": "string", "example": "Directionland" },
                      "example": "Directionland" },


     "origin":      { "label": "Origin (page name only)", "type": "string",
     "origin":      { "label": "Origin (page name only)", "type": "string",
                       "example": "Simonville",
                       "example": "Simonville", "aliases": ["settlement"] },
                      "aliases": ["settlement"] },


     "aliases":      { "label": "Aliases", "type": "string", "example": "Enty; The Red Wanderer" },
     "aliases":      { "label": "Aliases", "type": "string", "example": "Enty; The Red Wanderer" },
     "occupation":  { "label": "Occupation", "type": "string", "example": "Ranger" },
     "occupation":  { "label": "Occupation", "type": "string", "example": "Ranger" },
     "affiliation":  { "label": "Affiliation", "type": "string", "example": "Order of Simonius" },
     "affiliation":  { "label": "Affiliation", "type": "string", "example": "Order of Simonius" },
     "status":      { "label": "Status", "type": "string", "suggestedvalues": ["Alive","Deceased","Missing","Unknown"] }
     "status":      { "label": "Status", "type": "string", "suggestedvalues": ["Alive","Deceased","Missing","Unknown"] },
 
    "game_image":        { "label": "In-game image filename", "type": "string", "example": "Irian_ingame.png" },
    "game_imagesize":    { "label": "In-game image size", "type": "string", "default": "180px" },
    "game_image_alt":    { "label": "In-game image alt text", "type": "string" },
    "game_image_caption":{ "label": "In-game image caption", "type": "string", "example": "In-game model" }
   },
   },
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","race","age","nationality","origin","aliases","occupation","affiliation","status"]
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","race","age","nationality","origin","aliases","occupation","affiliation","status","game_image","game_imagesize","game_image_alt","game_image_caption"]
}
}
</templatedata>
</templatedata>
Line 114: Line 130:
<pre>
<pre>
{{Infobox character
{{Infobox character
| name       = Irian Balewood
| name           = Irian Balewood
| image       = IrianBalewood.png
| image           = IrianBalewood.png
| image_caption = Irian Balewood as depicted by the Lorekeeper.
| image_caption   = Irian Balewood as depicted by the Lorekeeper.
| race       = Elvenkind
| race           = Elvenkind
| age         = 26 cycles
| age             = 26 cycles
| nationality = Directionland
| nationality     = Directionland
| origin     = Simonville
| origin         = Simonville
| aliases     = Enty
| aliases         = En​​​​ty
| occupation = Ranger
| occupation     = Ranger
| affiliation = [[Order of Simonius]]
| affiliation     = [[Order of Simonius]]
| status      = Alive
| status         = Alive
| game_image     = Irian_ingame.png
| game_image_caption = In-game model
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 22:43, 30 October 2025

Infobox character


Character infobox for Mundus (auto-links Race, Nationality, Origin). Enter page names only—no [[brackets]].

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Irian Balewood
Stringoptional
Image filename (art)image

Filename only (no "File:" prefix).

Example
IrianBalewood.png
Stringoptional
Image sizeimagesize

no description

Default
250px
Stringoptional
Image alt textimage_alt

no description

Stringoptional
Image captionimage_caption

no description

Stringoptional
Race (page name only)race

no description

Suggested values
Humekind Elvenkind Landling Netherkind
Stringoptional
Ageage

no description

Example
26 cycles
Stringoptional
Nationality (page name only)nationality

no description

Example
Directionland
Stringoptional
Origin (page name only)origin settlement

no description

Example
Simonville
Stringoptional
Aliasesaliases

no description

Example
Enty; The Red Wanderer
Stringoptional
Occupationoccupation

no description

Example
Ranger
Stringoptional
Affiliationaffiliation

no description

Example
Order of Simonius
Stringoptional
Statusstatus

no description

Suggested values
Alive Deceased Missing Unknown
Stringoptional
In-game image filenamegame_image

no description

Example
Irian_ingame.png
Stringoptional
In-game image sizegame_imagesize

no description

Default
180px
Stringoptional
In-game image alt textgame_image_alt

no description

Stringoptional
In-game image captiongame_image_caption

no description

Example
In-game model
Stringoptional

Usage

{{Infobox character
| name            = Irian Balewood
| image           = IrianBalewood.png
| image_caption   = Irian Balewood as depicted by the Lorekeeper.
| race            = Elvenkind
| age             = 26 cycles
| nationality     = Directionland
| origin          = Simonville
| aliases         = En​​​​ty
| occupation      = Ranger
| affiliation     = [[Order of Simonius]]
| status          = Alive
| game_image      = Irian_ingame.png
| game_image_caption = In-game model
}}