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

From blackwiki
Jump to navigation Jump to search
imported>Richardguk
(suppress KML for non-Great Britain areas where OpenData is not available: BT, GY, IM, JE)
imported>Monkbot
m (Task 18a (cosmetic) (manual): eval 2 templates: hyphenate params (2×);)
 
(9 intermediate revisions by 6 users not shown)
Line 5: Line 5:
 
-->|#default={{Attached KML|display=title|title=Postcode district boundaries}}<!--
 
-->|#default={{Attached KML|display=title|title=Postcode district boundaries}}<!--
 
-->}}<!--
 
-->}}<!--
--><table class="infobox geography vcard" style="width: 23em;">
+
-->{{Infobox settlement
<tr>
+
| name                  = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
<td colspan="2" align="center" style="width:100%; font-size: 1.25em; white-space: nowrap;">'''{{Infobox UK postcode area/areaname|{{{area_code}}}}} postcode area'''</td>
+
| settlement_type        = [[List of postcode areas in the United Kingdom|United Kingdom postcode area]]
</tr>
+
| image_map              = {{{map|}}}
<tr class="mergedbottomrow"><td colspan="2"></td></tr>
+
| pushpin_map            = United Kingdom
<!-- ***** UK map ***** -->
+
| pushpin_mapsize        = 250
<tr class="mergedbottomrow">
+
| pushpin_label          = {{{area_code}}}
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;">
+
| pushpin_label_position = right
{{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=}}
+
| coordinates            = {{coord|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LA}}|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LO}}|type:city|display=inline}}
</td>
+
| subdivision_type      = Country
</tr>
+
| subdivision_name      = United Kingdom
<!-- ***** Basic ***** -->
+
| postal_code_type      = [[List of postcode areas in the United Kingdom|Postcode area]]
<tr class="adr mergedrow">
+
| postal_code            = {{{area_code}}}
<th>[[List of postcode areas in the United Kingdom|Postcode area]]</th>
+
| postal2_code_type      = Postcode area name
<td class="postal-code">{{{area_code}}}</td>
+
| postal2_code          = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
</tr>
+
| blank_name_sec1        = [[Post town]]s
<tr class="mergedbottomrow">
+
| blank_info_sec1        = {{Infobox UK postcode area/stats|{{{area_code}}}|PT}}
<th>Postcode area name</th>
+
| blank1_name_sec1      = [[List of postcode districts in the United Kingdom|Postcode districts]]
<td class="fn org">{{Infobox UK postcode area/areaname|{{{area_code}}}}}</td>
+
| blank1_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|D}}
</tr>
+
| blank2_name_sec1      = Postcode sectors
<!-- ***** Statistics ***** -->
+
| blank2_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|S}}
<tr class="mergedrow">
+
| blank3_name_sec1      = Postcodes (live)
<th>[[Post town]]s</th>
+
| blank3_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|L}}
<td>{{Infobox UK postcode area/stats|{{{area_code}}}|PT}}</td>
+
| blank4_name_sec1      = Postcodes (total)
</tr>
+
| blank4_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|T}}
        <tr class="mergedrow">
+
| 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]]|access-date=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]]|access-date=21 April 2012}}}}}}
                <th>[[List of postcode districts in the United Kingdom|Postcode districts]]</th>
+
}}<noinclude>
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|D}}</td>
+
{{Documentation}}
        </tr>
 
        <tr class="mergedbottomrow">
 
                <th>Postcode sectors</th>
 
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|S}}</td>
 
        </tr>
 
        <tr class="mergedrow">
 
                <th>Postcodes (live)</th>
 
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|L}}</td>
 
        </tr>
 
        <tr class="mergedrow">
 
                <th>Postcodes (total)</th>
 
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|T}}</td>
 
        </tr>
 
<!-- ***** Static image ***** -->
 
{{#if:{{{map|}}}|
 
<tr class="mergedbottomrow">
 
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;">
 
{{{map}}}
 
</td>
 
</tr>
 
}}<!-- ***** Footnote ***** -->
 
<tr class="mergedtoprow">
 
<td colspan="2" align="center"><small>Statistics as at February 2012{{#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|year=2012|month=February|work=[http://www.ons.gov.uk/ons/guide-method/geography/products/postcode-directories/-nspp-/index.html National Statistics Postcode Products]|publisher=[[Office for National Statistics]]|accessdate=21 April 2012}} {{#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|year=2012|month=February|work=[http://www.ordnancesurvey.co.uk/oswebsite/docs/licences/os-opendata-licence.pdf OS OpenData]|publisher=[[Ordnance Survey]]|accessdate=21 April 2012}} }} }}</small></td>
 
</tr>
 
</table><noinclude>
 
{{documentation}}
 
{{Template reference list}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 01:05, 21 December 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.