Jump to content

Template:Infobox city: Difference between revisions

From Legopedia
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<table style="float: right; clear: right; margin: 0 0 1em 1em; width: 22em; border: 1px solid var(--border-color-base, #a2a9b1); background-color: var(--background-color-interactive-subtle, #f8f9fa); color: var(--color-base, #202122); font-size: 88%; line-height: 1.4; border-collapse: separate; border-spacing: 0; border-radius: 4px; padding: 0.6rem;">
{| class="infobox" style="float: right; clear: right; margin: 0 0 1em 1em; width: 18em; border: 1px solid var(--border-color-base, #a2a9b1); background-color: var(--background-color-interactive-subtle, #f8f9fa); color: var(--color-base, #202122); font-size: 85%; line-height: 1.4; border-collapse: collapse;"
|-
! colspan="2" style="text-align: center; padding: 0.5em 0.2em; border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);" |
<div style="font-size: 90%; color: var(--color-subtle, #54595d);">{{{native_name|}}}</div>
<div style="font-size: 115%; font-weight: bold;">{{{name|{{PAGENAME}}}}}</div>


  <!-- Main Title -->
|-
  <tr>
| colspan="2" style="padding: 0.5em 0.2em; border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);" |
    <th colspan="2" style="background-color: var(--background-color-neutral-subtle, #eaecf0); font-family: 'Linux Libertine', Georgia, serif; font-size: 1.2rem; font-weight: bold; text-align: center; padding: 0.4rem; border-radius: 4px; border: 1px solid var(--border-color-subtle, #c8ccd1);">
{| style="width: 100%; text-align: center; background: transparent; border: none; border-collapse: collapse;"
      {{{name|{{PAGENAME}}}}}
|-
    </th>
| style="width: 50%; vertical-align: bottom; padding: 0.1em; border: none;" |
  </tr>
[[File:{{{flag_image|}}}|100x60px|center]]
<span style="font-size: 85%;">([[{{{flag_link|Flag of {{{name|{{PAGENAME}}}}}}}}|Flag]])</span>


  <!-- Flag / Image Section -->
| style="width: 50%; vertical-align: bottom; padding: 0.1em; border: none;" |
  {{#if: {{{image|}}} |
[[File:{{{coat_image|}}}|80x60px|center]]
  <tr>
<span style="font-size: 85%;">([[{{{coat_link|Coat of arms of {{{name|{{PAGENAME}}}}}}}}|Coat of Arms]])</span>
    <td colspan="2" style="text-align: center; padding: 0.6rem 0 0.4rem 0;">
|}
      [[File:{{{image}}}|220px|center]]
      {{#if: {{{image_caption|}}} | <div style="font-size: 0.85rem; margin-top: 0.4rem; color: var(--color-subtle, #54595d);">{{{image_caption}}}</div> }}
    </td>
  </tr>
  }}


  <!-- Basic Information Section -->
|-
  <tr>
| colspan="2" style="text-align: center; padding: 0.4em 0.2em; border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);" |
    <th colspan="2" style="background-color: var(--background-color-neutral-subtle, #eaecf0); text-align: center; font-weight: bold; padding: 0.3rem; margin-top: 0.4rem; border-radius: 4px; border: 1px solid var(--border-color-subtle, #c8ccd1);">
[[File:{{{map_image|}}}|220px|center]]
      Basic Information
<div style="font-size: 80%; margin-top: 0.2em; color: var(--color-subtle, #54595d);">{{{map_caption|}}}</div>
    </th>
  </tr>


  {{#if: {{{country|}}} |
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr style="border-bottom: 1px solid var(--border-color-subtle, #eaecf0);">
! style="text-align: left; padding: 0.3em 0.4em; width: 40%; font-weight: bold; color: var(--color-progressive, #36c);" | Country
    <th style="text-align: left; padding: 0.3rem 0.2rem; width: 35%; font-weight: bold;">Country</th>
| style="padding: 0.3em 0.4em;" | {{{country|}}}
    <td style="padding: 0.3rem 0.2rem;">{{{country}}}</td>
  </tr>
  }}


  {{#if: {{{founded|}}} |
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr style="border-bottom: 1px solid var(--border-color-subtle, #eaecf0);">
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | State/Province
    <th style="text-align: left; padding: 0.3rem 0.2rem; font-weight: bold;">Founded</th>
| style="padding: 0.3em 0.4em;" | {{{state|}}}
    <td style="padding: 0.3rem 0.2rem;">{{{founded}}}</td>
  </tr>
  }}


  {{#if: {{{mayor|}}} |
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr style="border-bottom: 1px solid var(--border-color-subtle, #eaecf0);">
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Coordinates
    <th style="text-align: left; padding: 0.3rem 0.2rem; font-weight: bold;">Mayor</th>
| style="padding: 0.3em 0.4em;" | {{{coordinates|}}}
    <td style="padding: 0.3rem 0.2rem;">{{{mayor}}}</td>
  </tr>
  }}


  <!-- Demographics Section -->
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr>
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Founded
    <th colspan="2" style="background-color: var(--background-color-neutral-subtle, #eaecf0); text-align: center; font-weight: bold; padding: 0.3rem; border-radius: 4px; border: 1px solid var(--border-color-subtle, #c8ccd1);">
| style="padding: 0.3em 0.4em;" | {{{founded|}}}
      Demographics
    </th>
  </tr>


  {{#if: {{{population|}}} |
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr style="border-bottom: 1px solid var(--border-color-subtle, #eaecf0);">
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Mayor
    <th style="text-align: left; padding: 0.3rem 0.2rem; font-weight: bold;">Population</th>
| style="padding: 0.3em 0.4em;" | {{{mayor|}}}
    <td style="padding: 0.3rem 0.2rem;">{{{population}}}</td>
  </tr>
  }}


  {{#if: {{{area|}}} |
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
  <tr style="border-bottom: 1px solid var(--border-color-subtle, #eaecf0);">
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Population
    <th style="text-align: left; padding: 0.3rem 0.2rem; font-weight: bold;">Area</th>
| style="padding: 0.3em 0.4em;" | {{{population|}}}
    <td style="padding: 0.3rem 0.2rem;">{{{area}}}</td>
  </tr>
  }}


</table><noinclude>
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
[[Category:Infobox templates]]
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Area
</noinclude>
| style="padding: 0.3em 0.4em;" | {{{area|}}}
 
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Elevation
| style="padding: 0.3em 0.4em;" | {{{elevation|}}}
 
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Time zone
| style="padding: 0.3em 0.4em;" | {{{timezone|}}}
 
|- style="border-bottom: 1px solid var(--border-color-subtle, #a2a9b1);"
! style="text-align: left; padding: 0.3em 0.4em; font-weight: bold; color: var(--color-progressive, #36c);" | Postal code
| style="padding: 0.3em 0.4em;" | {{{postal_code|}}}
|}

Latest revision as of 22:51, 30 July 2026

Infobox city

[[File:|100x60px|center]] (Flag)

[[File:|80x60px|center]] (Coat of Arms)

[[File:|220px|center]]

Country
State/Province
Coordinates
Founded
Mayor
Population
Area
Elevation
Time zone
Postal code