Template:Infobox character: Difference between revisions
Appearance
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:{{{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" }, | ||
"image": { "label": "Image filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" }, | |||
"imagesize": { "label": "Image size", "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": "26 cycles" }, | |||
"image": { | "nationality": { "label": "Nationality", "type": "string", "example": "[[Ruulran]]" }, | ||
"settlement": { "label": "Settlement (from)", "type": "string", "example": "[[Ruulran City]]" } | |||
"imagesize": { | |||
"image_alt": { | |||
"race": { | |||
"age": { | |||
"nationality": { | |||
"settlement": { | |||
}, | }, | ||
"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 = | | image = IrianBalewood.png | ||
| race = Elvenkind | | race = Elvenkind | ||
| age = | | age = 26 cycles | ||
| nationality = [[ | | nationality = [[Ruulran]] | ||
| settlement = [[ | | 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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description
| String | optional |
| Image filename | image | Filename only (no "File:" prefix).
| String | optional |
| Image size | imagesize | no description
| String | optional |
| Image alt text | image_alt | no description | String | optional |
| Race | race | no description
| String | optional |
| Age | age | no description
| String | optional |
| Nationality | nationality | no description
| String | optional |
| Settlement (from) | settlement | no description
| String | optional |
Usage
{{Infobox character
| name = Irian Balewood
| image = IrianBalewood.png
| race = Elvenkind
| age = 26 cycles
| nationality = [[Ruulran]]
| settlement = [[Ruulran City]]
}}