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

From blackwiki
Jump to navigation Jump to search
imported>Docu
m (Created page with '==Test 1 empty == {{infobox UK place/Test| |country= England |map_type= Greater London |region= London |popula…')
 
imported>WOSlinker
(update coords format in infobox)
 
(2 intermediate revisions by 2 users 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]]
 
}}
 
}}
 +
{{clear|both}}
  
 
==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 32: 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]]
 
}}
 
}}
 
+
{{clear|both}}
  
 
==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 51: 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]]
 
}}
 
}}
 
+
{{clear|both}}
  
 
==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 71: 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]]
 
}}
 
}}
 +
{{clear|both}}
  
 
==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 90: 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}}

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.