Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Infobox building: Difference between revisions

Template page
No edit summary
wikipeida>Jonesey95
Add "is infobox in lead" to prevent short description from being generated when infobox is outside of lead. This does not check for redirects to this template.
Line 1: Line 1:
{{#if:{{Has short description}} |<!--Do nothing--> |{{main other|{{#invoke:Type in location|main|{{{building_type|Building}}}|{{comma separated entries
{{main other|{{#if:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Bb]uilding}}|{{#if:{{Has short description}} |<!--Do nothing--> |{{#invoke:Type in location|main|{{{building_type|Building}}}|{{comma separated entries
  |1= {{if empty|{{{location|}}}|{{{address|}}}}}
  |1= {{if empty|{{{location|}}}|{{{address|}}}}}
  |2= {{if empty|{{{location_town|}}}|{{{location_city|}}}}}
  |2= {{if empty|{{{location_town|}}}|{{{location_city|}}}}}
  |3= {{{location_country|}}}
  |3= {{{location_country|}}}
}}}}}}}}{{Infobox
}}}}}}}}}}{{Infobox
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
| child = {{#ifeq:{{{embed|}}}|yes|yes}}
| bodyclass  = vcard
| bodyclass  = vcard
Line 19: Line 19:
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{image_width|}}}}}}|sizedefault=250px|upright={{{image_upright|1.1}}}|border=yes|alt={{{image_alt|{{{alt|}}}}}}}}
| image2    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{image_width|}}}}}}|sizedefault=250px|upright={{{image_upright|1.1}}}|border=yes|alt={{{image_alt|{{{alt|}}}}}}}}
| caption2  = {{{caption|{{{image_caption|}}}}}}
| caption2  = {{{caption|{{{image_caption|}}}}}}
| image3    = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type|}}}}}}
|alt    = {{{pushpin_map_alt|{{{map_alt|}}}}}}
|coordinates = {{{coordinates|}}}
|float  = center
|mark    = {{{map_dot_mark|Red pog.svg}}}
|marksize= 7
|label  = {{{pushpin_label|{{{map_dot_label|}}}}}}
|relief  = {{{pushpin_relief|{{{relief|}}}}}}
|border  = infobox
|caption = {{{pushpin_map_caption|{{{map_caption|Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}}}}}}
|width  = {{{pushpin_mapsize|{{{map_size|}}}}}}
}} |<!-- else if map_type is blank
-->{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=250px|alt={{{map_alt|}}}}}<!-- end if map_type
-->}}
| caption3  = {{#if:{{{pushpin_map|{{{map_type|}}}}}} |<!-- leave blank -->| {{{map_caption|}}} }}
| image4      = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-zoom={{{mapframe-zoom|13}}}|mapframe-frame-width={{{mapframe-frame-width|250}}}|mapframe-wikidata={{{mapframe-wikidata|yes}}}}}
| caption4    = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}}}


| label1    = Former names
| label1    = Former names
Line 99: Line 118:
|  data17  = {{{location_country|}}}
|  data17  = {{{location_country|}}}


| label18  = Coordinates
| label18  = [[Geographic coordinate system|Coordinates]]
|  data18  = {{{coordinates|}}}
|  data18  = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark|{{#if:{{{location_country|}}}|region:{{Country abbreviation|{{{location_country}}}}}}}}}|}}


| label19  = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}}
| label19  = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}}

Revision as of 17:01, 3 July 2024