Template:Infobox character: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox character ( | <!-- Template:Infobox character (HTML-safe) --> | ||
<table class="infobox infobox-character"> | |||
<tr> | |||
<th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> | |||
</tr> | |||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<tr> | |||
<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> | |||
<th scope="row">Race</th> | |||
<td>{{{race}}}</td> | |||
}} | </tr> | ||
}} | |||
{{#if: {{{age|}}} | | {{#if: {{{age|}}} | | ||
<tr> | |||
<th scope="row">Age</th> | |||
<td>{{{age}}}</td> | |||
}} | </tr> | ||
}} | |||
{{#if: {{{nationality|}}} | | {{#if: {{{nationality|}}} | | ||
<tr> | |||
<th scope="row">Nationality</th> | |||
<td>{{{nationality}}}</td> | |||
}} | </tr> | ||
}} | |||
{{#if: {{{settlement|}}} | | {{#if: {{{settlement|}}} | | ||
<tr> | |||
<th scope="row">Settlement</th> | |||
<td>{{{settlement}}}</td> | |||
}} | </tr> | ||
}} | |||
</table> | |||
<noinclude> | <noinclude> | ||
<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": "[[ | "nationality": { "label": "Nationality", "type": "string", "example": "[[Directionland]]" }, | ||
"settlement": { "label": "Settlement (from)", "type": "string", "example": "[[ | "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 = [[ | | 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.
| 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 |
| Image caption | image_caption | 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
| image_caption = Irian Balewood as depicted by the Lorekeeper.
| race = Elvenkind
| age = 26 cycles
| nationality = [[Directionland]]
| settlement = [[Ruulran City]]
}}