Template:Infobox character: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox character (HTML-safe) --> | <!-- Template:Infobox character (HTML-safe, auto-links) --> | ||
<table class="infobox infobox-character"> | <table class="infobox infobox-character"> | ||
<tr> | <tr> | ||
| Line 17: | Line 17: | ||
<tr> | <tr> | ||
<th scope="row">Race</th> | <th scope="row">Race</th> | ||
<td>{{{race}}}</td> | <td>[[{{{race}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
| Line 31: | Line 31: | ||
<tr> | <tr> | ||
<th scope="row">Nationality</th> | <th scope="row">Nationality</th> | ||
<td>{{{nationality}}}</td> | <td>[[{{{nationality}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{origin|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Origin</th> | ||
<td>{{{settlement}}}</td> | <td>[[{{{origin}}}]]</td> | ||
</tr> | |||
}} | |||
<!-- 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> | |||
<th scope="row">Aliases</th> | |||
<td>{{{aliases}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{occupation|}}} | | |||
<tr> | |||
<th scope="row">Occupation</th> | |||
<td>{{{occupation}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{affiliation|}}} | | |||
<tr> | |||
<th scope="row">Affiliation</th> | |||
<td>{{{affiliation}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{status|}}} | | |||
<tr> | |||
<th scope="row">Status</th> | |||
<td>{{{status}}}</td> | |||
</tr> | </tr> | ||
}} | }} | ||
| Line 46: | Line 82: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": "Character infobox for Mundus.", | "description": "Character infobox for Mundus (auto-links Race, Nationality, Origin). Enter page names only—no [[brackets]].", | ||
"params": { | "params": { | ||
"name": | "name": { "label": "Name", "type": "string", "example": "Irian Balewood" }, | ||
"image": | "image": { "label": "Image filename", "description": "Filename only (no \"File:\" prefix).", "type": "string", "example": "IrianBalewood.png" }, | ||
"imagesize": | "imagesize": { "label": "Image size", "type": "string", "default": "250px" }, | ||
"image_alt": | "image_alt": { "label": "Image alt text", "type": "string" }, | ||
"image_caption": { "label": "Image caption", "type": "string" }, | "image_caption":{ "label": "Image caption", "type": "string" }, | ||
"race": | |||
"age": | "race": { "label": "Race (page name only)", "type": "string", | ||
"nationality": { "label": "Nationality", "type": "string", "example": " | "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"] } | |||
}, | }, | ||
"paramOrder": ["name","image","imagesize","image_alt","image_caption","race","age","nationality"," | "paramOrder": ["name","image","imagesize","image_alt","image_caption","race","age","nationality","origin","aliases","occupation","affiliation","status"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| Line 70: | Line 119: | ||
| race = Elvenkind | | race = Elvenkind | ||
| age = 26 cycles | | age = 26 cycles | ||
| nationality = | | nationality = Directionland | ||
| | | origin = Simonville | ||
| aliases = Enty | |||
| occupation = Ranger | |||
| affiliation = [[Order of Simonius]] | |||
| status = Alive | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 06:38, 28 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 | 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 |
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
}}