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

From blackwiki
Jump to navigation Jump to search
imported>Gadget850
m (Reverted edits by Gadget850 (talk) to last version by Jonesey95)
imported>Izkala
(Infobox conversion)
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
<tr>
+
| bodyclass = geography vcard
<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>
+
 
</tr>
+
| above    = {{Infobox UK postcode area/areaname|{{{area_code}}}}} postcode area
<tr class="mergedbottomrow"><td colspan="2"></td></tr>
+
 
 
<!-- ***** UK map ***** -->
 
<!-- ***** UK map ***** -->
<tr class="mergedbottomrow">
+
| 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}}
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;">
+
 
{{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=}}
 
</td>
 
</tr>
 
 
<!-- ***** Basic ***** -->
 
<!-- ***** Basic ***** -->
<tr class="adr mergedrow">
+
| label1    = [[List of postcode areas in the United Kingdom|Postcode area]]
<th>[[List of postcode areas in the United Kingdom|Postcode area]]</th>
+
| data1    = {{{area_code}}}
<td class="postal-code">{{{area_code}}}</td>
+
| rowclass1 = mergedtoprow adr
</tr>
+
| class1    = postal-code
<tr class="mergedbottomrow">
+
 
<th>Postcode area name</th>
+
| label2    = Postcode area name
<td class="fn org">{{Infobox UK postcode area/areaname|{{{area_code}}}}}</td>
+
| data2    = {{Infobox UK postcode area/areaname|{{{area_code}}}}}
</tr>
+
| rowclass2 = mergedbottomrow
 +
| class2    = fn org
 +
 
 
<!-- ***** Statistics ***** -->
 
<!-- ***** Statistics ***** -->
<tr class="mergedrow">
+
| label3    = [[Post town]]s
<th>[[Post town]]s</th>
+
| data3    = {{Infobox UK postcode area/stats|{{{area_code}}}|PT}}
<td>{{Infobox UK postcode area/stats|{{{area_code}}}|PT}}</td>
+
| rowclass3 = mergedtoprow
</tr>
+
 
        <tr class="mergedrow">
+
| label4    = [[List of postcode districts in the United Kingdom|Postcode districts]]
                <th>[[List of postcode districts in the United Kingdom|Postcode districts]]</th>
+
| data4    = {{Infobox UK postcode area/stats|{{{area_code}}}|D}}
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|D}}</td>
+
| rowclass4 = mergedrow
        </tr>
+
 
        <tr class="mergedbottomrow">
+
| label5    = Postcode sectors
                <th>Postcode sectors</th>
+
| data5    = {{Infobox UK postcode area/stats|{{{area_code}}}|S}}
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|S}}</td>
+
| rowclass5 = mergedbottomrow
        </tr>
+
 
        <tr class="mergedrow">
+
| label6    = Postcodes (live)
                <th>Postcodes (live)</th>
+
| data6    = {{Infobox UK postcode area/stats|{{{area_code}}}|L}}
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|L}}</td>
+
| rowclass6 = mergedtoprow
        </tr>
+
 
        <tr class="mergedrow">
+
| label7    = Postcodes (total)
                <th>Postcodes (total)</th>
+
| data7    = {{Infobox UK postcode area/stats|{{{area_code}}}|T}}
                <td>{{Infobox UK postcode area/stats|{{{area_code}}}|T}}</td>
+
| rowclass7 = mergedbottomrow
        </tr>
+
 
 
<!-- ***** Static image ***** -->
 
<!-- ***** Static image ***** -->
{{#if:{{{map|}}}|
+
| data8    = {{{map|}}}
<tr class="mergedbottomrow">
+
 
<td colspan="2" style="text-align: center; padding: 0.7em 0.8em 0.7em 0.8em;;">
+
<!-- ***** Footnote ***** -->
{{{map}}}
+
| below    = 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|date=February 2012|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|date=February 2012|work=[http://www.ordnancesurvey.co.uk/oswebsite/docs/licences/os-opendata-licence.pdf OS OpenData]|publisher=[[Ordnance Survey]]|accessdate=21 April 2012}}}}}}
</td>
+
}}<noinclude>
</tr>
+
{{Documentation}}
}}<!-- ***** 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|date=February 2012|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|date=February 2012|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>

Revision as of 16:03, 24 June 2015

Lua error: callParserFunction: function "#coordinates" was not found.

postcode area
Postcode area{{{area_code}}}
Statistics as at February 2012[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. February 2012. Table 2. Retrieved 21 April 2012. External link in |work= (help) Coordinates from mean of unit postcode points, "Code-Point Open". OS OpenData. Ordnance Survey. February 2012. Retrieved 21 April 2012. External link in |work= (help)