Jump to content

Template:Infobox character: Difference between revisions

From Encyclopædia Mundus
No edit summary
No edit summary
Line 1: Line 1:
<!-- Template:Infobox character (row-safe version) -->
<!-- Template:Infobox character (HTML-safe) -->
{| class="infobox infobox-character"
<table class="infobox infobox-character">
|-
  <tr>
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
    <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th>
  </tr>


{{#if: {{{image|}}} |
  {{#if: {{{image|}}} |
|-
  <tr>
| colspan="2" class="infobox-image" | [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
    <td class="infobox-image" colspan="2">
}}
      [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
      {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}
    </td>
  </tr>
  }}


{{#if: {{{race|}}} |
  {{#if: {{{race|}}} |
|-
  <tr>
! scope="row" | Race
    <th scope="row">Race</th>
| {{{race}}}
    <td>{{{race}}}</td>
}}
  </tr>
  }}


{{#if: {{{age|}}} |
  {{#if: {{{age|}}} |
|-
  <tr>
! scope="row" | Age
    <th scope="row">Age</th>
| {{{age}}}
    <td>{{{age}}}</td>
}}
  </tr>
  }}


{{#if: {{{nationality|}}} |
  {{#if: {{{nationality|}}} |
|-
  <tr>
! scope="row" | Nationality
    <th scope="row">Nationality</th>
| {{{nationality}}}
    <td>{{{nationality}}}</td>
}}
  </tr>
  }}


{{#if: {{{settlement|}}} |
  {{#if: {{{settlement|}}} |
|-
  <tr>
! scope="row" | Settlement
    <th scope="row">Settlement</th>
| {{{settlement}}}
    <td>{{{settlement}}}</td>
}}
  </tr>
  }}
</table>


|}
<noinclude>
<noinclude>
<!-- VisualEditor / TemplateData -->
<templatedata>
<templatedata>
{
{
Line 44: Line 52:
     "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" },
    "image_caption": { "label": "Image caption", "type": "string" },
     "race":        { "label": "Race", "type": "string", "suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"] },
     "race":        { "label": "Race", "type": "string", "suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"] },
     "age":        { "label": "Age", "type": "string", "example": "26 cycles" },
     "age":        { "label": "Age", "type": "string", "example": "26 cycles" },
     "nationality": { "label": "Nationality", "type": "string", "example": "[[Ruulran]]" },
     "nationality": { "label": "Nationality", "type": "string", "example": "[[Directionland]]" },
     "settlement":  { "label": "Settlement (from)", "type": "string", "example": "[[Ruulran City]]" }
     "settlement":  { "label": "Settlement (from)", "type": "string", "example": "[[Simonville]]" }
   },
   },
   "paramOrder": ["name","image","imagesize","image_alt","race","age","nationality","settlement"]
   "paramOrder": ["name","image","imagesize","image_alt","image_caption","race","age","nationality","settlement"]
}
}
</templatedata>
</templatedata>
Line 58: Line 67:
| name        = Irian Balewood
| name        = Irian Balewood
| image      = IrianBalewood.png
| image      = IrianBalewood.png
| image_caption = Irian Balewood as depicted by the Lorekeeper.
| race        = Elvenkind
| race        = Elvenkind
| age        = 26 cycles
| age        = 26 cycles
| nationality = [[Ruulran]]
| nationality = [[Directionland]]
| settlement  = [[Ruulran City]]
| settlement  = [[Ruulran City]]
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 06:26, 28 October 2025

Infobox character


Character infobox for Mundus.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Irian Balewood
Stringoptional
Image filenameimage

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
Racerace

no description

Suggested values
Humekind Elvenkind Landling Netherkind
Stringoptional
Ageage

no description

Example
26 cycles
Stringoptional
Nationalitynationality

no description

Example
[[Directionland]]
Stringoptional
Settlement (from)settlement

no description

Example
[[Simonville]]
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]]
| settlement  = [[Ruulran City]]
}}