Difference between revisions of "Template:Infobox housing project/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Lord Bolingbroke
(change default display of Kartographer map)
imported>Trialpears
(Syncing sandbox code with main template (sync-template-sandbox.js))
 
Line 3: Line 3:
 
| above      = {{{building name|<includeonly>{{BASEPAGENAME}}</includeonly>}}}
 
| above      = {{{building name|<includeonly>{{BASEPAGENAME}}</includeonly>}}}
 
| aboveclass = fn org
 
| aboveclass = fn org
| image1    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
| caption1  = {{{caption|{{{image_caption|}}}}}}
+
| caption    = {{{caption|{{{image_caption|}}}}}}
 
 
| image2    = {{#if:{{{map|}}}
 
   |{{Location map|{{{map}}}
 
    | border = infobox | float = center
 
    | width = {{{map_width|}}}
 
    | default_width  = 220
 
    | max_width = 256
 
    | relief = {{{map_relief|{{{relief|}}}}}}
 
    | label = {{ifempty|{{{label|}}}|{{{name|}}} }}
 
    | position = {{ifempty|{{{label_position|}}}|none}} <!-- change default to none -->
 
    | caption = {{#if:{{{map_caption|}}}|{{{map_caption}}}|Location within {{#invoke:Location map|data|{{{map}}}|name}} }}
 
    | alt = {{ifempty|{{{map_alt|}}}|Map showing the location of {{if empty|{{{name|}}}|{{PAGENAMEBASE}}}} }}
 
    | mark = {{{mark|}}}
 
    | marksize = {{{marker_width|{{{marker_size|}}}}}}
 
    | coordinates = {{ifempty|{{{coordinates|}}}|{{{coords|}}}}} }}
 
  |{{#invoke:InfoboxImage|InfoboxImage|image={{{map_image|}}}|size={{{map_size|{{{map_width|}}}}}}|sizedefault=240px|maxsize=256px|alt={{{map_alt|}}}}}
 
  }}
 
| caption2  = {{#if:{{{map|}}}||{{{map_caption|}}}}}
 
 
 
| image3    = {{#if:{{{map|}}}{{{map_image|}}}||{{If affirmed|{{{mapframe|}}}||{{Infobox mapframe
 
|id={{{qid|}}}
 
|zoom={{{mapframe_zoom|12}}}
 
|frame-width={{{mapframe_width|}}}
 
|frame-height={{{mapframe_height|}}}
 
|marker={{{mapframe_marker|}}}
 
|marker-color={{{mapframe_marker_color|{{{mapframe_marker_colour|}}}}}}
 
|frame-lat={{{mapframe_lat|{{{mapframe_latitude|}}}}}}
 
|frame-long={{{mapframe_long|{{{mapframe_longitude|}}}}}}
 
}}}}}}
 
| caption3 = {{#if:{{{map|}}}{{{map_image|}}}||{{If affirmed|{{{mapframe|}}}||{{{mapframe_caption|{{{map_caption|}}}}}}}}}}
 
 
 
 
| label1    = Location
 
| label1    = Location
 
| data1      = {{{location|}}}
 
| data1      = {{{location|}}}
Line 42: Line 11:
 
| data2      = {{{coordinates|}}}
 
| data2      = {{{coordinates|}}}
 
| label3    = Status
 
| label3    = Status
| data3      = {{#if:{{{status|}}}
+
| data3      = {{{status|}}}
              |<!--then:-->{{{status}}}
 
              |<!--else:-->{{#if:{{{demolished|}}}
 
                |<!--then:-->Demolished
 
                |<!--else:--><includeonly>Proposed</includeonly>
 
                }}
 
              }}
 
 
| label4    = Category
 
| label4    = Category
 
| data4      = {{{category|}}}
 
| data4      = {{{category|}}}

Latest revision as of 00:31, 26 August 2019

Template documentation[view] [edit] [history] [purge]

Usage

{{{building name}}}
[[File:{{{image}}}|{{{image_size}}}|alt={{{alt}}}|{{{alt}}}]]
{{{caption}}}
General information
Location{{{location}}}
Coordinates{{{coordinates}}}
Status{{{status}}}
Category{{{category}}}
Area{{{area}}}
Population{{{population}}} ({{{population date}}})
No. of blocks{{{blocknumber}}}
No. of flats{{{units}}}
Density{{{density}}}
Construction
Constructed{{{built}}}
Constructed{{{construction date}}}
Architect{{{construction architect}}}
Contractors{{{construction contractors}}}
Authority{{{construction authority}}}
Style{{{construction style}}}
Influence{{{construction influence}}}
Refurbishment
[[File:{{{refurbishment image}}}|frameless]]
{{{refurbishment caption}}}
Proposed in{{{refurbishment proposal date}}}
Proposed action{{{refurbishment method}}}
Units{{{refurbishment units}}}
Refurbished{{{refurbished}}}
Architect{{{refurbishment architect}}}
Contractor{{{refurbishment contractors}}}
Directing authority{{{refurbishment authority}}}
Influence{{{refurbishment style}}}
Listing
Listed{{{listing date}}}
Listed as{{{listing type}}}
Demolished{{{demolished}}}
Replaced by{{{succession}}}
Other information
Governing
body
{{{governing body}}}
Famous
residents
{{{famous residents}}}
{{Infobox housing project
| building name = 
| image = 
| image_size = 
| alt = 
| caption = 
| image_caption = 
| location = 
| coordinates = 
| status = 
| category = 
| demolished = 
| area = 
| population date = 
| population = 
| blocknumber = 
| units = 
| density = 
| built = 
| construction period = 
| constructed = 
| construction architect = 
| construction contractors = 
| construction style = 
| construction date = 
| construction authority = 
| construction influence = 
| refurbishment architect = 
| refurbishment contractors = 
| refurbishment style = 
| refurbishment method = 
| refurbishment image = 
| refurbishment caption = 
| refurbishment proposal date = 
| refurbishment units = 
| refurbished = 
| refurbishment authority = 
| listing date = 
| listing type = 
| succession = 
| governing body = 
| famous residents = 
}}

Parameters

All fields are optional:

  • building name – the name of the building(s)
  • image – an image of the housing project; provide the image name without wikimarkup (e.g. SomeFile.jpg rather than [[Image:SomeFile.jpg|200px]])
  • image_size – the size of the image in pixels (e.g. 200px)
  • alt – alt text for visually impaired readers; see WP:ALT
  • caption – an optional text regarding the image; see WP:CAPTION. If a caption is not provided, the template will use the year_highest and year_end fields to create one.
  • location – the address (and at least the city) in which the housing project is located
  • coordinates – use {{coord}} with "display=inline,title"
  • status – the status of the housing project (e.g., Completed, Proposed, Under construction, Demolished, Destroyed, or Never built)
  • units – the number of housing units in the housing project
  • constructed – the year(s) in which the housing project was constructed (e.g. 1996–1999)
  • demolished – the date in which the housing project was demolished
  • governing body – the housing project management agency or company
  • famous residents – famous (or infamous) people who have lived in the housing project

Tracking category