Difference between revisions of "Template:Infobox UK place/testcases2"

From blackwiki
Jump to navigation Jump to search
imported>WOSlinker
(update coords format in infobox)
 
Line 13: Line 13:
 
|postcode_district=        KT3
 
|postcode_district=        KT3
 
|dial_code=                020
 
|dial_code=                020
|latitude=                 51.40
+
|coordinates=               {{coord|51.40|-0.252|type:city_region:GB|display=inline}}
|longitude=                -0.252
 
|coordinates_display = inline
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 34: Line 32:
 
|postcode_district=        KT3
 
|postcode_district=        KT3
 
|dial_code=                020
 
|dial_code=                020
|latitude=                 51.40
+
|coordinates=               {{coord|51.40|-0.252|type:city_region:GB|display=inline}}
|longitude=                -0.252
 
|coordinates_display = inline
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 54: Line 50:
 
|postcode_district=        KT3
 
|postcode_district=        KT3
 
|dial_code=                020
 
|dial_code=                020
|latitude=                 51.40
+
|coordinates=               {{coord|51.40|-0.252|type:city_region:GB|display=inline}}
|longitude=                -0.252
 
|coordinates_display = inline
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 75: Line 69:
 
|postcode_district=        KT3
 
|postcode_district=        KT3
 
|dial_code=                020
 
|dial_code=                020
|latitude=                 51.40
+
|coordinates=               {{coord|51.40|-0.252|type:city_region:GB|display=inline}}
|longitude=                -0.252
 
|coordinates_display = inline
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 96: Line 88:
 
|postcode_district=        KT3
 
|postcode_district=        KT3
 
|dial_code=                020
 
|dial_code=                020
|latitude=                 51.40
+
|coordinates=               {{coord|51.40|-0.252|type:city_region:GB|display=inline}}
|longitude=                -0.252
 
|coordinates_display = inline
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
 
{{clear|both}}
 
{{clear|both}}

Latest revision as of 09:02, 9 June 2017

Test 1 empty

New Malden
Lua error in Module:Location_map at line 399: Malformed coordinates value.
OS grid referenceTQ215685
London borough
Ceremonial countyGreater London
Region
CountryEngland
Sovereign stateUnited Kingdom
Post townNEW MALDEN
Postcode districtKT3
Dialling code020
PoliceMetropolitan
FireLondon
AmbulanceLondon
UK Parliament
London Assembly
List of places
UK
England
London
Lua error: callParserFunction: function "#coordinates" was not found.

Test 2 number

New Malden
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Population123,123 
OS grid referenceTQ215685
London borough
Ceremonial countyGreater London
Region
CountryEngland
Sovereign stateUnited Kingdom
Post townNEW MALDEN
Postcode districtKT3
Dialling code020
PoliceMetropolitan
FireLondon
AmbulanceLondon
UK Parliament
London Assembly
List of places
UK
England
London
Lua error: callParserFunction: function "#coordinates" was not found.

Test 3 no field

New Malden
Lua error in Module:Location_map at line 399: Malformed coordinates value.
OS grid referenceTQ215685
London borough
Ceremonial countyGreater London
Region
CountryEngland
Sovereign stateUnited Kingdom
Post townNEW MALDEN
Postcode districtKT3
Dialling code020
PoliceMetropolitan
FireLondon
AmbulanceLondon
UK Parliament
London Assembly
List of places
UK
England
London
Lua error: callParserFunction: function "#coordinates" was not found.

Test 4 with text

New Malden
Lua error in Module:Location_map at line 399: Malformed coordinates value.
PopulationExpression error: "123123 dsfasd" must be numeric 
OS grid referenceTQ215685
London borough
Ceremonial countyGreater London
Region
CountryEngland
Sovereign stateUnited Kingdom
Post townNEW MALDEN
Postcode districtKT3
Dialling code020
PoliceMetropolitan
FireLondon
AmbulanceLondon
UK Parliament
London Assembly
List of places
UK
England
London
Lua error: callParserFunction: function "#coordinates" was not found.

Test 5 with comma

New Malden
Lua error in Module:Location_map at line 399: Malformed coordinates value.
Population12,000 
OS grid referenceTQ215685
London borough
Ceremonial countyGreater London
Region
CountryEngland
Sovereign stateUnited Kingdom
Post townNEW MALDEN
Postcode districtKT3
Dialling code020
PoliceMetropolitan
FireLondon
AmbulanceLondon
UK Parliament
London Assembly
List of places
UK
England
London
Lua error: callParserFunction: function "#coordinates" was not found.