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

From blackwiki
Jump to navigation Jump to search
imported>Richardguk
(set {{Attached KML}} "display=title" instead of "display=inline,title" so that inline links can be added manually to each article in a section further down the page)
imported>Monkbot
m (Task 18a (cosmetic) (manual): eval 2 templates: hyphenate params (2×);)
 
(10 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Attached KML|display=title|title=Postcode district boundaries}}<!--
+
{{#switch:{{{area_code|}}}<!--
--><table class="infobox geography vcard" style="width: 23em;">
+
Use coordinates where no OpenData boundaries for non-Great Britain areas:
<tr>
+
-->|BT|GY|IM|JE|={{Coord|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LA}}|{{Infobox UK postcode area/stats|{{{area_code|WC}}}|LO}}|region:{{#switch:{{{area_code|}}}|GY=GG|IM=IM|JE=JE|#default=GB}}_scale:500000|display=title}}<!--
<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>
+
Use KML postcode district boundaries for Great Britain areas:
</tr>
+
-->|#default={{Attached KML|display=title|title=Postcode district boundaries}}<!--
<tr class="mergedbottomrow"><td colspan="2"></td></tr>
+
-->}}<!--
<!-- ***** UK map ***** -->
+
-->{{Infobox settlement
<tr class="mergedbottomrow">
+
| name                  = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;">
+
| settlement_type        = [[List of postcode areas in the United Kingdom|United Kingdom postcode area]]
{{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=}}
+
| image_map              = {{{map|}}}
</td>
+
| pushpin_map            = United Kingdom
</tr>
+
| pushpin_mapsize        = 250
<!-- ***** Basic ***** -->
+
| pushpin_label          = {{{area_code}}}
<tr class="adr mergedrow">
+
| pushpin_label_position = right
<th>[[List of postcode areas in the United Kingdom|Postcode area]]</th>
+
| 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 class="postal-code">{{{area_code}}}</td>
+
| subdivision_type      = Country
</tr>
+
| subdivision_name      = United Kingdom
<tr class="mergedbottomrow">
+
| postal_code_type      = [[List of postcode areas in the United Kingdom|Postcode area]]
<th>Postcode area name</th>
+
| postal_code            = {{{area_code}}}
<td class="fn org">{{Infobox UK postcode area/areaname|{{{area_code}}}}}</td>
+
| postal2_code_type      = Postcode area name
</tr>
+
| postal2_code          = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
<!-- ***** Statistics ***** -->
+
| blank_name_sec1        = [[Post town]]s
<tr class="mergedrow">
+
| blank_info_sec1        = {{Infobox UK postcode area/stats|{{{area_code}}}|PT}}
<th>[[Post town]]s</th>
+
| blank1_name_sec1      = [[List of postcode districts in the United Kingdom|Postcode districts]]
<td>{{Infobox UK postcode area/stats|{{{area_code}}}|PT}}</td>
+
| blank1_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|D}}
</tr>
+
| blank2_name_sec1      = Postcode sectors
        <tr class="mergedrow">
+
| blank2_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|S}}
                <th>[[List of postcode districts in the United Kingdom|Postcode districts]]</th>
+
| blank3_name_sec1      = Postcodes (live)
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|D}}</td>
+
| blank3_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|L}}
        </tr>
+
| blank4_name_sec1      = Postcodes (total)
        <tr class="mergedbottomrow">
+
| blank4_info_sec1      = {{Infobox UK postcode area/stats|{{{area_code}}}|T}}
                <th>Postcode sectors</th>
+
| 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}}}}}}
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|S}}</td>
+
}}<noinclude>
        </tr>
+
{{Documentation}}
        <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.