Template:Infobox settlement: Difference between revisions

No edit summary
No edit summary
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>
      [[File:{{{image}}}|{{#pageimage:{{{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 64: 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 74: 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 83: 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 95: 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