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

From blackwiki
Jump to navigation Jump to search
imported>Twiceuponatime
(adding {{clear|both}} to improve presentation)
imported>WOSlinker
(update coords format in infobox)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
==Test 1 empty ==
 
==Test 1 empty ==
{{infobox UK place/Test|
+
{{infobox UK place/sandbox
 
|country=                  England
 
|country=                  England
 
|map_type=                  Greater London
 
|map_type=                  Greater London
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
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 20: Line 19:
  
 
==Test 2 number==
 
==Test 2 number==
{{infobox UK place/Test|
+
{{infobox UK place/sandbox
 
|country=                  England
 
|country=                  England
 
|map_type=                  Greater London
 
|map_type=                  Greater London
Line 33: 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
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 40: Line 38:
  
 
==Test 3 no field==
 
==Test 3 no field==
{{infobox UK place/Test|
+
{{infobox UK place/sandbox
 
|country=                  England
 
|country=                  England
 
|map_type=                  Greater London
 
|map_type=                  Greater London
Line 52: 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
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 59: Line 56:
  
 
==Test 4 with text==
 
==Test 4 with text==
{{infobox UK place/Test|
+
{{infobox UK place/sandbox
 
|country=                  England
 
|country=                  England
 
|map_type=                  Greater London
 
|map_type=                  Greater London
Line 72: 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
 
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
|constituency_westminster=  [[Kingston and Surbiton (UK Parliament constituency)|Kingston and Surbiton]]
 
}}
 
}}
Line 79: Line 75:
  
 
==Test 5 with comma==
 
==Test 5 with comma==
{{infobox UK place/Test|
+
{{infobox UK place/sandbox
 
|country=                  England
 
|country=                  England
 
|map_type=                  Greater London
 
|map_type=                  Greater London
Line 92: 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
 
 
|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.