Template:Infobox character: Difference between revisions
Appearance
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox | <!-- Template:Infobox character (HTML-safe, auto-links) --> | ||
<table class="infobox infobox- | <table class="infobox infobox-character"> | ||
<tr> | <tr> | ||
<th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> | <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> | ||
| Line 7: | Line 7: | ||
{{#if: {{{image|}}} | | {{#if: {{{image|}}} | | ||
<tr> | <tr> | ||
<td class="infobox-image mw-no-invert" colspan="2">[[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]] {{# | <td class="infobox-image mw-no-invert" colspan="2"> | ||
[[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]] | |||
{{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if: {{{race|}}} | | |||
<tr> | |||
<th scope="row">Race</th> | |||
<td>[[{{{race}}}]]</td> | |||
</tr> | |||
}} | |||
{{#if: {{{age|}}} | | |||
<tr> | |||
<th scope="row">Age</th> | |||
<td>{{{age}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{nationality|}}} | | |||
<tr> | |||
<th scope="row">Nationality</th> | |||
<td>[[{{{nationality}}}]]</td> | |||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{origin|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Origin</th> | ||
<td>{{{ | <td>[[{{{origin}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | <!-- Backwards compatibility: show Origin from |settlement= if |origin= not provided --> | ||
{{#if: {{{origin|}}} | | {{#if: {{{settlement|}}} | | |||
<tr> | |||
<th scope="row">Origin</th> | |||
<td>[[{{{settlement}}}]]</td> | |||
</tr> | |||
}} }} | |||
{{#if: {{{aliases|}}} | | |||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Aliases</th> | ||
<td> | <td>{{{aliases}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{occupation|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Occupation</th> | ||
<td> | <td>{{{occupation}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{affiliation|}}} | | |||
{{#if: {{{ | |||
<tr> | <tr> | ||
< | <th scope="row">Affiliation</th> | ||
<td>{{{affiliation}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{status|}}} | | |||
{{#if: {{{ | |||
<tr> | <tr> | ||
<th | <th scope="row">Status</th> | ||
<td>{{{status}}}</td> | |||
</tr> | </tr> | ||
}} | |||
<!-- In-game appearance (only if provided) --> | |||
{{#if: {{{game_image|}}} | | |||
<tr><th class="infobox-sub" colspan="2">In-game appearance</th></tr> | |||
<tr> | <tr> | ||
<td colspan="2"> | <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> | </td> | ||
</tr> | </tr> | ||
}} | }} | ||
</table> | </table> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category: | <includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Characters]]}} }}</includeonly> | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Character infobox for Mundus (auto-links Race, Nationality, Origin). Enter page names only—no [[brackets]].", | ||
"params": { | "params": { | ||
"name": { "label": "Name", "type": "string", "example": " | "name": { "label": "Name", "type": "string", "example": "Irian Balewood" }, | ||
"image": { "label": " | "image": { "label": "Image filename (art)", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" }, | ||
"imagesize": { "label": " | "imagesize": { "label": "Image size", "type": "string", "default": "250px" }, | ||
"image_alt": { "label": " | "image_alt": { "label": "Image alt text", "type": "string" }, | ||
"image_caption":{ "label": " | "image_caption":{ "label": "Image caption", "type": "string" }, | ||
"race": { "label": "Race (page name only)", "type": "string", | |||
"suggestedvalues": ["Humekind","Elvenkind","Landling","Netherkind"] }, | |||
"age": { "label": "Age", "type": "string", "example": "26 cycles" }, | |||
" | "nationality": { "label": "Nationality (page name only)", "type": "string", "example": "Directionland" }, | ||
" | "origin": { "label": "Origin (page name only)", "type": "string", | ||
"example": "Simonville", "aliases": ["settlement"] }, | |||
" | "aliases": { "label": "Aliases", "type": "string", "example": "Enty; The Red Wanderer" }, | ||
" | "occupation": { "label": "Occupation", "type": "string", "example": "Ranger" }, | ||
" | "affiliation": { "label": "Affiliation", "type": "string", "example": "Order of Simonius" }, | ||
" | "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"," | "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 99: | Line 128: | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Infobox | {{Infobox character | ||
| name | | name = Irian Balewood | ||
| image | | image = IrianBalewood.png | ||
| | | image_caption = Irian Balewood as depicted by the Lorekeeper. | ||
| | | race = Elvenkind | ||
| | | age = 26 cycles | ||
| | | nationality = Directionland | ||
| | | origin = Simonville | ||
| | | aliases = Enty | ||
| occupation = Ranger | |||
| affiliation = [[Order of Simonius]] | |||
| status = Alive | |||
| game_image = Irian_ingame.png | |||
| game_image_caption = In-game model | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 00:11, 31 October 2025
| Infobox character |
|---|
Character infobox for Mundus (auto-links Race, Nationality, Origin). Enter page names only—no [[brackets]].
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description
| String | optional |
| Image filename (art) | 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 (page name only) | race | no description
| String | optional |
| Age | age | no description
| String | optional |
| Nationality (page name only) | nationality | no description
| String | optional |
| Origin (page name only) | origin settlement | no description
| String | optional |
| Aliases | aliases | no description
| String | optional |
| Occupation | occupation | no description
| String | optional |
| Affiliation | affiliation | no description
| String | optional |
| Status | status | no description
| String | optional |
| In-game image filename | game_image | no description
| String | optional |
| In-game image size | game_imagesize | no description
| String | optional |
| In-game image alt text | game_image_alt | no description | String | optional |
| In-game image caption | game_image_caption | 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
| origin = Simonville
| aliases = Enty
| occupation = Ranger
| affiliation = [[Order of Simonius]]
| status = Alive
| game_image = Irian_ingame.png
| game_image_caption = In-game model
}}