Jump to content

Template:Infobox settlement: Difference between revisions

From Encyclopædia Mundus
Created page with "<!-- Template:Infobox settlement (HTML-safe, auto-links) --> <table class="infobox infobox-settlement"> <tr> <th class="infobox-title" colspan="2">{{{name|{{PAGENAME}}}}}</th> </tr> {{#if: {{{image|}}} | <tr> <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> }}..."
 
No edit summary
 
(4 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>
      [[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 filename", "description": "Coat of arms, flag, or photo. Filename only (no \"File:\" prefix).", "type": "string", "example": "Simonville_CoA.png" },
     "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": "Image size", "type": "string", "default": "250px" },
     "imagesize":    { "label": "Main image size", "type": "string", "default": "250px" },
     "image_alt":    { "label": "Image alt text", "type": "string" },
     "image_alt":    { "label": "Main image alt text", "type": "string" },
     "image_caption":{ "label": "Image caption", "type": "string" },
     "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]]).

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

no description

Example
Simonville
Stringoptional
Main image filenameimage

Coat of arms, flag, or photo. Filename only (no "File:" prefix).

Example
Simonville_CoA.png
Stringoptional
Main image sizeimagesize

no description

Default
250px
Stringoptional
Main image alt textimage_alt

no description

Stringoptional
Main image captionimage_caption

no description

Stringoptional
Typetype

no description

Suggested values
Duchy Colony Outpost Village Area Province Special
Stringoptional
Nation (page name only)nation

no description

Example
Directionland
Stringoptional
Province (page name only)province

no description

Example
Gandry
Stringoptional
In-game banner image filenamebanner

no description

Example
Simonville_Banner.png
Stringoptional
Banner image sizebanner_imagesize

no description

Default
160px
Stringoptional
Banner alt textbanner_alt

no description

Stringoptional
Banner captionbanner_caption

no description

Stringoptional
Notable (free text; optional)notable

Use for a custom first item or formatted list if you prefer.

Stringoptional
Notable character 1 (page name)notable1

no description

Stringoptional
Notable character 2 (page name)notable2

no description

Stringoptional
Notable character 3 (page name)notable3

no description

Stringoptional
Notable character 4 (page name)notable4

no description

Stringoptional
Notable character 5 (page name)notable5

no description

Stringoptional

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
}}