Template:Infobox-place: Difference between revisions
SGPolitico (talk | contribs) (Created page with "<div class="infobox-place"> {| style="width: 100%; border-collapse: collapse;" |+ style="background-color: #eaf3ff; border: 1px solid #a2a9b1; padding: 8px; font-weight: bold; font-size: 1.2em;" | {{{name|{{PAGENAME}}}}} |- {{#if:{{{native_name|}}}| {{!}} colspan="2" style="text-align: center; font-style: italic; border-bottom: 1px solid #a2a9b1;" {{!}} {{{native_name}}} {{!}}- }} | colspan="2" style="text-align: center; padding: 10px;" | {{#if:{{{image|}}}| File:{{{im...") |
SGPolitico (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
|+ style="background-color: #eaf3ff; border: 1px solid #a2a9b1; padding: 8px; font-weight: bold; font-size: 1.2em;" | {{{name|{{PAGENAME}}}}} | |+ style="background-color: #eaf3ff; border: 1px solid #a2a9b1; padding: 8px; font-weight: bold; font-size: 1.2em;" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
{{#if:{{{ | {{#if:{{{othername|}}}| | ||
{{!}} colspan="2" style="text-align: center; font-style: italic; border-bottom: 1px solid #a2a9b1;" {{!}} {{{ | {{!}} colspan="2" style="text-align: center; font-style: italic; border-bottom: 1px solid #a2a9b1;" {{!}} {{{othername}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| colspan="2" style="text-align: center; padding: 10px;" | {{#if:{{{image|}}}| | ||
{{!}} colspan="2" style="text-align: center; padding: 10px;" {{!}} [[File:{{{image}}}|250px|center]] {{#if:{{{caption|}}}|<br/><small>{{{caption}}}</small>}} | |||
}} | |||
{{#if:{{{designation1|}}}| | |||
{{!}}- | |||
! colspan="2" style="text-align: center; background: #dcebff; padding: 5px; border-top: 1px solid #a2a9b1;" {{!}} {{{designation1}}} | |||
{{!}}- | |||
{{!}} colspan="2" style="text-align: center; padding: 2px; background: #eaf3ff;" {{!}} {{#if:{{{current1|}}} | '''Current designation''' | }} | |||
{{!}}- | |||
! style="text-align: left; padding: 5px;" {{!}} {{#if:{{{current1|}}}|Designated since|Designated}} | |||
{{!}} style="padding: 5px;" {{!}} {{{designation_start1}}} {{#if:{{{designation_end1|}}}| – {{{designation_end1}}} | }} | |||
}} | |||
{{#if:{{{designation2|}}}| | |||
{{!}}- | |||
! colspan="2" style="text-align: center; background: #dcebff; padding: 5px; border-top: 1px solid #a2a9b1;" {{!}} {{{designation2}}} | |||
{{!}}- | |||
! style="text-align: left; padding: 5px;" {{!}} Period | |||
{{!}} style="padding: 5px;" {{!}} {{{designation_start2}}} – {{{designation_end2}}} | |||
}} | |||
{{#if:{{{data01|}}}| | |||
{{!}}- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{field01}}} | |||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{data01}}} | |||
}} | |||
|- | |- | ||
! colspan="2" style="text-align: center; background-color: #dcebff; color: #333; padding: 5px; border-top: 2px solid #a2a9b1;" | | ! colspan="2" style="text-align: center; background-color: #dcebff; color: #333; padding: 5px; border-top: 2px solid #a2a9b1;" | Location details | ||
|- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd; width: 35%;" | Type | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd; width: 35%;" | | style="padding: 5px; border-top: 1px solid #ddd;" | {{#switch:{{{type|}}} | ||
| park='''Public park''' | |||
| venue='''Venue''' | |||
| landmark='''Landmark''' | |||
| district='''District''' | |||
| #default={{{type|Place}}} | |||
}} | }} | ||
{{#if:{{{location|}}}| | {{#if:{{{location|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd | ! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Location | ||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{location}}} | {{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{location}}} | ||
}} | }} | ||
{{#if:{{{coordinates|}}}| | {{#if:{{{coordinates|}}}| | ||
| Line 30: | Line 52: | ||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{coordinates}}} | {{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{coordinates}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{area|}}}| | ||
{{!}}- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Area | |||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{area}}} | |||
}} | |||
{{#if:{{{created|}}}| | |||
{{!}}- | {{!}}- | ||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Established | ! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Established | ||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{ | {{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{created}}} | ||
}} | |||
{{#if:{{{former_names|}}}| | |||
{{!}}- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Former name(s) | |||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{former_names}}} | |||
}} | |||
{{#if:{{{operator|}}}| | |||
{{!}}- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Operator | |||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{operator}}} | |||
}} | |||
{{#if:{{{status|}}}| | |||
{{!}}- | |||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Status | |||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{status}}} | |||
}} | }} | ||
{{#if:{{{ | {{#if:{{{website|}}}| | ||
{{!}}- | {{!}}- | ||
! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} | ! style="text-align: left; background: #f2f2f2; padding: 5px; border-top: 1px solid #ddd;" {{!}} Website | ||
{{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{ | {{!}} style="padding: 5px; border-top: 1px solid #ddd;" {{!}} {{{website}}} | ||
}} | }} | ||
|} | |} | ||
</div><noinclude> | </div><noinclude> | ||
{{ | == Usage == | ||
Copy the template below onto a page and fill in the parameters that apply. Any parameter left blank is simply omitted from the rendered infobox — leave unused fields out entirely rather than filling them with "N/A". | |||
<pre> | |||
{{Infobox-place | |||
| name = | |||
| othername = | |||
| image = | |||
| caption = | |||
| type = park <!-- or: venue / landmark / district --> | |||
| location = | |||
| coordinates = | |||
| area = | |||
| created = | |||
| former_names = | |||
| operator = | |||
| status = | |||
| website = | |||
| designation1 = <!-- e.g. a special legal/heritage designation covering part of the place --> | |||
| current1 = yes <!-- set to "yes" if the designation is still in effect --> | |||
| designation_start1 = | |||
| designation_end1 = | |||
| designation2 = <!-- e.g. a second, distinct designation or period --> | |||
| designation_start2 = | |||
| designation_end2 = | |||
| field01 = | |||
| data01 = | |||
}} | |||
</pre> | |||
'''designation1 / designation2''' are for a place that carries a specific legal, heritage or administrative status distinct from its general identity — for example, a park that contains a statutorily designated free-speech zone, or a building with conservation status. Use ''current1'' = yes to show a "Current designation" banner instead of an end date. | |||
=== Example: Hong Lim Park === | |||
<pre> | |||
{{Infobox-place | |||
| name = Hong Lim Park | |||
| former_names = Dunman's Green; Hong Lim Green | |||
| type = park | |||
| location = Upper Pickering Street, Downtown Core / Chinatown, Singapore | |||
| coordinates = 1°17′12″N 103°50′47″E | |||
| area = 0.94 ha | |||
| created = 1876 (as a public garden) | |||
| operator = National Parks Board | |||
| status = Open all year | |||
| designation1 = Speakers' Corner (free speech zone) | |||
| current1 = yes | |||
| designation_start1 = 1 September 2000 | |||
}} | |||
</pre> | |||
</noinclude> | </noinclude> | ||
Latest revision as of 23:49, 11 July 2026
| Location details | |
|---|---|
| Type | Place
|
Usage
Copy the template below onto a page and fill in the parameters that apply. Any parameter left blank is simply omitted from the rendered infobox — leave unused fields out entirely rather than filling them with "N/A".
{{Infobox-place
| name =
| othername =
| image =
| caption =
| type = park <!-- or: venue / landmark / district -->
| location =
| coordinates =
| area =
| created =
| former_names =
| operator =
| status =
| website =
| designation1 = <!-- e.g. a special legal/heritage designation covering part of the place -->
| current1 = yes <!-- set to "yes" if the designation is still in effect -->
| designation_start1 =
| designation_end1 =
| designation2 = <!-- e.g. a second, distinct designation or period -->
| designation_start2 =
| designation_end2 =
| field01 =
| data01 =
}}
designation1 / designation2 are for a place that carries a specific legal, heritage or administrative status distinct from its general identity — for example, a park that contains a statutorily designated free-speech zone, or a building with conservation status. Use current1 = yes to show a "Current designation" banner instead of an end date.
Example: Hong Lim Park
{{Infobox-place
| name = Hong Lim Park
| former_names = Dunman's Green; Hong Lim Green
| type = park
| location = Upper Pickering Street, Downtown Core / Chinatown, Singapore
| coordinates = 1°17′12″N 103°50′47″E
| area = 0.94 ha
| created = 1876 (as a public garden)
| operator = National Parks Board
| status = Open all year
| designation1 = Speakers' Corner (free speech zone)
| current1 = yes
| designation_start1 = 1 September 2000
}}