Difference between revisions of "Template:Infobox UK postcode area"

From blackwiki
Jump to navigation Jump to search
imported>Mangesh.Kulkarni03
m (Rectified the month of the data retrieval)
imported>TerraCyprus
(wrapper)
Line 5: Line 5:
 
-->|#default={{Attached KML|display=title|title=Postcode district boundaries}}<!--
 
-->|#default={{Attached KML|display=title|title=Postcode district boundaries}}<!--
 
-->}}<!--
 
-->}}<!--
-->{{Infobox
+
-->{{Infobox settlement
| bodyclass = geography vcard
+
| name                  = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
 
+
| settlement_type        = [[List of postcode areas in the United Kingdom|United Kingdom postcode area]]
| above    = {{Infobox UK postcode area/areaname|{{{area_code}}}}} postcode area
+
| image_map              = {{{map|}}}
 
+
| pushpin_map            = United Kingdom
<!-- ***** UK map ***** -->
+
| pushpin_mapsize        = 250
| image    = {{Location map|United Kingdom|label={{{area_code}}}|position=right|width=250|lat={{Infobox UK postcode area/stats|{{{area_code|WC}}}|LA}}|long={{Infobox UK postcode area/stats|{{{area_code|WC}}}|LO}}|caption=|float=center|border=infobox}}
+
| pushpin_label          = {{{area_code}}}
 
+
| pushpin_label_position = right
<!-- ***** Basic ***** -->
+
| coordinates            = {{coord|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LA}}|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LO}}|type:city|display=inline}}
| label1    = [[List of postcode areas in the United Kingdom|Postcode area]]
+
| subdivision_type      = Country
| data1    = {{{area_code}}}
+
| subdivision_name      = United Kingdom
| rowclass1 = mergedtoprow adr
+
| postal_code_type      = [[List of postcode areas in the United Kingdom|Postcode area]]
| class1    = postal-code
+
| postal_code            = {{{area_code}}}
 
+
| postal2_code_type      = Postcode area name
| label2    = Postcode area name
+
| postal2_code          = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
| data2    = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
+
| blank_name_sec1        = [[Post town]]s
| rowclass2 = mergedbottomrow
+
| blank_info_sec1        = {{Infobox UK postcode area/stats|{{{area_code}}}|PT}}
| class2    = fn org
+
| blank1_name_sec1      = [[List of postcode districts in the United Kingdom|Postcode districts]]
 
+
| blank1_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|D}}
<!-- ***** Statistics ***** -->
+
| blank2_name_sec1      = Postcode sectors
| label3    = [[Post town]]s
+
| blank2_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|S}}
| data3    = {{Infobox UK postcode area/stats|{{{area_code}}}|PT}}
+
| blank3_name_sec1      = Postcodes (live)
| rowclass3 = mergedtoprow
+
| blank3_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|L}}
 
+
| blank4_name_sec1      = Postcodes (total)
| label4    = [[List of postcode districts in the United Kingdom|Postcode districts]]
+
| blank4_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|T}}
| data4    = {{Infobox UK postcode area/stats|{{{area_code}}}|D}}
+
| footnotes              = Statistics as at May 2020{{#tag:ref|{{Cite web|url=http://www.ons.gov.uk/ons/guide-method/geography/products/postcode-directories/-nspp-/onspd-user-guide-and-version-notes.zip|title=ONS Postcode Directory Version Notes|format=ZIP|at=Table 2|date=May 2020|work=National Statistics Postcode Products|publisher=[[Office for National Statistics]]|accessdate=19 Jun 2020}} {{#switch:{{{area_code|}}}|BT|GY|IM|JE=|#default=Coordinates from mean of unit postcode points, {{Cite web|url=http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/|title=Code-Point Open|date=February 2012|work=OS OpenData|publisher=[[Ordnance Survey]]|accessdate=21 April 2012}}}}}}
| rowclass4 = mergedrow
 
 
 
| label5    = Postcode sectors
 
| data5    = {{Infobox UK postcode area/stats|{{{area_code}}}|S}}
 
| rowclass5 = mergedbottomrow
 
 
 
| label6    = Postcodes (live)
 
| data6    = {{Infobox UK postcode area/stats|{{{area_code}}}|L}}
 
| rowclass6 = mergedtoprow
 
 
 
| label7    = Postcodes (total)
 
| data7    = {{Infobox UK postcode area/stats|{{{area_code}}}|T}}
 
| rowclass7 = mergedbottomrow
 
 
 
<!-- ***** Static image ***** -->
 
| data8    = {{{map|}}}
 
 
 
<!-- ***** Footnote ***** -->
 
| below    = Statistics as at May 2020{{#tag:ref|{{Cite web|url=http://www.ons.gov.uk/ons/guide-method/geography/products/postcode-directories/-nspp-/onspd-user-guide-and-version-notes.zip|title=ONS Postcode Directory Version Notes|format=ZIP|at=Table 2|date=May 2020|work=National Statistics Postcode Products|publisher=[[Office for National Statistics]]|accessdate=19 Jun 2020}} {{#switch:{{{area_code|}}}|BT|GY|IM|JE=|#default=Coordinates from mean of unit postcode points, {{Cite web|url=http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/|title=Code-Point Open|date=February 2012|work=OS OpenData|publisher=[[Ordnance Survey]]|accessdate=21 April 2012}}}}}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:43, 13 September 2020

Lua error: callParserFunction: function "#coordinates" was not found.Template:Tfm/dated

[[Category:Template:Pagetype with short description]]

Script error: No such module "If empty".
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Coordinates: Lua error: callParserFunction: function "#coordinates" was not found.
CountryUnited Kingdom
Script error: No such module "If empty".
Postcode area
{{{area_code}}}
Script error: No such module "If empty".
Statistics as at May 2020[1]

[[Category:Infobox templates|Template:Remove first word]]

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

Template:Uses Infobox settlement

Microformat

Template:UF-hcard-place

References

  1. "ONS Postcode Directory Version Notes" (ZIP). National Statistics Postcode Products. Office for National Statistics. May 2020. Table 2. Retrieved 19 Jun 2020. Coordinates from mean of unit postcode points, "Code-Point Open". OS OpenData. Ordnance Survey. February 2012. Retrieved 21 April 2012.