Template:Infobox settlement: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| 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]] {{#if: {{{image_caption|}}} | <div class="infobox-caption">{{{image_caption}}}</div> }}</td> | ||
</tr> | </tr> | ||
}} | }} | ||
| Line 32: | Line 29: | ||
<th scope="row">Province</th> | <th scope="row">Province</th> | ||
<td>[[{{{province}}}]]</td> | <td>[[{{{province}}}]]</td> | ||
</tr> | |||
}} | |||
<!-- In-game banner (only if provided) --> | |||
{{#if: {{{banner|}}} | | |||
<tr><th class="infobox-sub" colspan="2">In-game banner</th></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> | ||
}} | }} | ||
| Line 55: | Line 60: | ||
</table> | </table> | ||
<includeonly>{{#ifeq:{{NAMESPACE}}| | {{#if:{{{nocat|}}}| | [[Category:Settlements]]}} }}</includeonly> | |||
<noinclude> | <noinclude> | ||
| Line 62: | Line 69: | ||
"params": { | "params": { | ||
"name": { "label": "Name", "type": "string", "example": "Simonville" }, | "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", | "type": { "label": "Type", "type": "string", | ||
| Line 72: | Line 79: | ||
"nation": { "label": "Nation (page name only)", "type": "string", "example": "Directionland" }, | "nation": { "label": "Nation (page name only)", "type": "string", "example": "Directionland" }, | ||
"province": { "label": "Province (page name only)", "type": "string", "example": "Gandry" }, | "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", | "notable": { "label": "Notable (free text; optional)", "type": "string", | ||
| Line 81: | Line 93: | ||
"notable5": { "label": "Notable character 5 (page name)", "type": "string" } | "notable5": { "label": "Notable character 5 (page name)", "type": "string" } | ||
}, | }, | ||
"paramOrder": ["name","image","imagesize","image_alt","image_caption","type","nation","province","notable","notable1","notable2","notable3","notable4","notable5"] | "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 93: | Line 105: | ||
| nation = Directionland | | nation = Directionland | ||
| province = Gandry | | province = Gandry | ||
| banner = Simonville_Banner.png | |||
| notable1 = Irian Balewood | | notable1 = Irian Balewood | ||
| notable2 = Valmin Thornvalley | | notable2 = Valmin Thornvalley | ||
Latest revision as of 00:14, 31 October 2025
| Infobox settlement |
|---|
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
}}