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 -->
<!-- Template:Infobox character (row-safe version) -->
{| class="infobox infobox-character"
{| class="infobox infobox-character"
|-
|-
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
! colspan="2" class="infobox-title" | {{{name|{{PAGENAME}}}}}
{{#if: {{{image|}}} |
|-
|-
| colspan="2" class="infobox-image" |
| colspan="2" class="infobox-image" | [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
{{#if:{{{image|}}}|
  [[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]]
}}
}}
{{#if:{{{race|}}}|
 
{{#if: {{{race|}}} |
|-
|-
! scope="row" | Race
! scope="row" | Race
| {{{race}}}
| {{{race}}}
}}
}}
{{#if:{{{age|}}}|
 
{{#if: {{{age|}}} |
|-
|-
! scope="row" | Age
! scope="row" | Age
| {{{age}}}
| {{{age}}}
}}
}}
{{#if:{{{nationality|}}}|
 
{{#if: {{{nationality|}}} |
|-
|-
! scope="row" | Nationality
! scope="row" | Nationality
| {{{nationality}}}
| {{{nationality}}}
}}
}}
{{#if:{{{settlement|}}}|
 
{{#if: {{{settlement|}}} |
|-
|-
! scope="row" | Settlement
! scope="row" | Settlement
| {{{settlement}}}
| {{{settlement}}}
}}
}}
|}
|}
<noinclude>
<noinclude>
<!-- VisualEditor / TemplateData -->
<!-- VisualEditor / TemplateData -->
Line 36: Line 40:
   "description": "Character infobox for Mundus.",
   "description": "Character infobox for Mundus.",
   "params": {
   "params": {
     "name": {
     "name":       { "label": "Name", "type": "string", "example": "Irian Balewood" },
      "label": "Name",
     "image":       { "label": "Image filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" },
      "description": "Full name of the character.",
     "imagesize":   { "label": "Image size", "type": "string", "default": "250px" },
      "type": "string",
     "image_alt":   { "label": "Image alt text", "type": "string" },
      "example": "Irian Balewood"
     "race":       { "label": "Race", "type": "string", "suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"] },
    },
     "age":         { "label": "Age", "type": "string", "example": "26 cycles" },
     "image": {
     "nationality": { "label": "Nationality", "type": "string", "example": "[[Ruulran]]" },
      "label": "Image filename",
     "settlement": { "label": "Settlement (from)", "type": "string", "example": "[[Ruulran City]]" }
      "description": "Upload first, then put the filename only (no \"File:\" prefix).",
      "type": "string",
      "example": "Irian.png"
    },
     "imagesize": {
      "label": "Image size",
      "description": "Size like 250px (optional).",
      "type": "string",
      "default": "250px"
    },
     "image_alt": {
      "label": "Image alt text",
      "type": "string"
    },
     "race": {
      "label": "Race",
      "type": "string",
      "suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"]
    },
     "age": {
      "label": "Age",
      "type": "string",
      "example": "24 cycles"
    },
     "nationality": {
      "label": "Nationality",
      "type": "string",
      "example": "[[Directionland]]"
    },
     "settlement": {
      "label": "Settlement (from)",
      "type": "string",
      "example": "[[Simonville]]"
    }
   },
   },
   "paramOrder": ["name","image","imagesize","image_alt","race","age","nationality","settlement"]
   "paramOrder": ["name","image","imagesize","image_alt","race","age","nationality","settlement"]
Line 87: Line 57:
{{Infobox character
{{Infobox character
| name        = Irian Balewood
| name        = Irian Balewood
| image      = Irian.png
| image      = IrianBalewood.png
| race        = Elvenkind
| race        = Elvenkind
| age        = 24 cycles
| age        = 26 cycles
| nationality = [[Directionland]]
| nationality = [[Ruulran]]
| settlement  = [[Simonville]]
| settlement  = [[Ruulran City]]
}}
}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 06:20, 28 October 2025

Infobox character

-

-

scope="row"

-

scope="row"

-

scope="row"

-

scope="row"

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
Racerace

no description

Suggested values
Humekind Elvenkind Landling Netherkind
Stringoptional
Ageage

no description

Example
26 cycles
Stringoptional
Nationalitynationality

no description

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

no description

Example
[[Ruulran City]]
Stringoptional

Usage

{{Infobox character
| name        = Irian Balewood
| image       = IrianBalewood.png
| race        = Elvenkind
| age         = 26 cycles
| nationality = [[Ruulran]]
| settlement  = [[Ruulran City]]
}}