Template:Infobox character: Difference between revisions
Appearance
No edit summary |
No edit summary Tag: Reverted |
||
| Line 1: | Line 1: | ||
<!-- Template:Infobox | <!-- Template:Infobox settlement (HTML-safe, auto-links) --> | ||
<table class="infobox infobox- | <table class="infobox infobox-settlement"> | ||
<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"> | <td class="infobox-image mw-no-invert" colspan="2">[[File:{{{image}}}|{{{imagesize|250px}}}|alt={{{image_alt|}}}|center]] {{#pageimage:{{{image}}}}} {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{type|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Type</th> | ||
<td> | <td>{{{type}}}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{nation|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Nation</th> | ||
<td>{{{ | <td>[[{{{nation}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | {{#if: {{{province|}}} | | ||
<tr> | <tr> | ||
<th scope="row"> | <th scope="row">Province</th> | ||
<td>[[{{{ | <td>[[{{{province}}}]]</td> | ||
</tr> | </tr> | ||
}} | }} | ||
{{#if: {{{ | <!-- In-game banner (only if provided) --> | ||
{{#if: {{{banner|}}} | | |||
<tr><th class="infobox-sub" colspan="2">In-game banner</th></tr> | |||
<tr> | <tr> | ||
< | <td class="infobox-image mw-no-invert" colspan="2">[[File:{{{banner}}}|{{{banner_imagesize|160px}}}|alt={{{banner_alt|}}}|center]] {{#if: {{{banner_caption|}}} | <div class="infobox-caption">{{{banner_caption}}}</div> }}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
<!-- | <!-- Notable characters section (only if any provided) --> | ||
{{#if: {{{ | {{#if: {{{notable|}}}{{{notable1|}}}{{{notable2|}}}{{{notable3|}}}{{{notable4|}}}{{{notable5|}}} | | ||
<tr> | <tr> | ||
<th | <th class="infobox-section" colspan="2">Notable characters</th> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
< | <td colspan="2"> | ||
<ul> | |||
{{#if: {{{notable|}}} | <li>{{{notable}}}</li> }} | |||
{{#if: {{{notable1|}}} | <li>[[{{{notable1}}}]]</li> }} | |||
{{#if: {{{notable2|}}} | <li>[[{{{notable2}}}]]</li> }} | |||
{{#if: {{{notable3|}}} | <li>[[{{{notable3}}}]]</li> }} | |||
{{#if: {{{notable4|}}} | <li>[[{{{notable4}}}]]</li> }} | |||
{{#if: {{{notable5|}}} | <li>[[{{{notable5}}}]]</li> }} | |||
</ul> | |||
</td> | |||
</tr> | </tr> | ||
}} | }} | ||
</table> | |||
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Settlements]]}} }}</includeonly> | |||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
{ | { | ||
"description": " | "description": "Settlement infobox for Mundus. Nation/Province auto-link; enter page names only (no [[brackets]]).", | ||
"params": { | "params": { | ||
"name": { "label": "Name", "type": "string", | "name": { "label": "Name", "type": "string", "example": "Simonville" }, | ||
"image": { "label": " | "image": { "label": "Main image filename", "description": "Coat of arms, flag, or photo. Filename only (no \"File:\" prefix).", "type": "string", "example": "Simonville_CoA.png" }, | ||
"imagesize": { "label": " | "imagesize": { "label": "Main image size", "type": "string", "default": "250px" }, | ||
"image_alt": { "label": " | "image_alt": { "label": "Main image alt text", "type": "string" }, | ||
"image_caption":{ "label": " | "image_caption":{ "label": "Main image caption", "type": "string" }, | ||
" | "type": { "label": "Type", "type": "string", | ||
"suggestedvalues": ["Duchy","Colony","Outpost","Village","Area","Province","Special"] }, | |||
" | "nation": { "label": "Nation (page name only)", "type": "string", "example": "Directionland" }, | ||
"province": { "label": "Province (page name only)", "type": "string", "example": "Gandry" }, | |||
" | "banner": { "label": "In-game banner image filename", "type": "string", "example": "Simonville_Banner.png" }, | ||
" | "banner_imagesize": { "label": "Banner image size", "type": "string", "default": "160px" }, | ||
" | "banner_alt": { "label": "Banner alt text", "type": "string" }, | ||
" | "banner_caption": { "label": "Banner caption", "type": "string" }, | ||
" | "notable": { "label": "Notable (free text; optional)", "type": "string", | ||
" | "description": "Use for a custom first item or formatted list if you prefer." }, | ||
" | "notable1": { "label": "Notable character 1 (page name)", "type": "string" }, | ||
" | "notable2": { "label": "Notable character 2 (page name)", "type": "string" }, | ||
"notable3": { "label": "Notable character 3 (page name)", "type": "string" }, | |||
"notable4": { "label": "Notable character 4 (page name)", "type": "string" }, | |||
"notable5": { "label": "Notable character 5 (page name)", "type": "string" } | |||
}, | }, | ||
"paramOrder": ["name","image","imagesize","image_alt","image_caption"," | "paramOrder": ["name","image","imagesize","image_alt","image_caption","type","nation","province","banner","banner_imagesize","banner_alt","banner_caption","notable","notable1","notable2","notable3","notable4","notable5"] | ||
} | } | ||
</templatedata> | </templatedata> | ||
| Line 128: | Line 99: | ||
==Usage== | ==Usage== | ||
<pre> | <pre> | ||
{{Infobox | {{Infobox settlement | ||
| name | | name = Simonville | ||
| image | | image = Simonville_CoA.png | ||
| | | type = Village | ||
| nation = Directionland | |||
| | | province = Gandry | ||
| banner = Simonville_Banner.png | |||
| | | notable1 = Irian Balewood | ||
| | | notable2 = Valmin Thornvalley | ||
| | |||
| | |||
}} | }} | ||
</pre> | </pre> | ||
</noinclude> | </noinclude> | ||
Revision as of 00:11, 31 October 2025
| Infobox character |
|---|
Settlement infobox for Mundus. Nation/Province auto-link; enter page names only (no [[brackets]]).
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | no description
| String | optional |
| Main image filename | image | Coat of arms, flag, or photo. Filename only (no "File:" prefix).
| String | optional |
| Main image size | imagesize | no description
| String | optional |
| Main image alt text | image_alt | no description | String | optional |
| Main image caption | image_caption | no description | String | optional |
| Type | type | no description
| String | optional |
| Nation (page name only) | nation | no description
| String | optional |
| Province (page name only) | province | no description
| String | optional |
| In-game banner image filename | banner | no description
| String | optional |
| Banner image size | banner_imagesize | no description
| String | optional |
| Banner alt text | banner_alt | no description | String | optional |
| Banner caption | banner_caption | no description | String | optional |
| Notable (free text; optional) | notable | Use for a custom first item or formatted list if you prefer. | String | optional |
| Notable character 1 (page name) | notable1 | no description | String | optional |
| Notable character 2 (page name) | notable2 | no description | String | optional |
| Notable character 3 (page name) | notable3 | no description | String | optional |
| Notable character 4 (page name) | notable4 | no description | String | optional |
| Notable character 5 (page name) | notable5 | no description | String | optional |
Usage
{{Infobox settlement
| name = Simonville
| image = Simonville_CoA.png
| type = Village
| nation = Directionland
| province = Gandry
| banner = Simonville_Banner.png
| notable1 = Irian Balewood
| notable2 = Valmin Thornvalley
}}