User:Caroig/Geobox/Czechia

Conversion to Geobox from cs:Wikipedia resources

My suggestion inspired by Tankred's Slovak version.

//Infobox české obce a města $basic_conversion=array( 'název' = 'name'  'kraj' = 'region'  'okres' = 'district'  'obyvatelé' = 'population'   'PSČ' = 'postal_code'  'web' = 'website'  'starosta' = 'mayor'  'vlajka' = 'flag'  'znak' = 'symbol'  'nad.výš' = 'elevation'  'ob.roz.půs' = 'municipality'  );

$data['area'] = str_replace (',', '.', $data['area']);

But some fields requires additional parsing of the values:


 * population sometimes contains also value of population_date or population_as_of (Eg. obyvatelé = 18 759 (28. 8. 2006) )
 * znak and vlajka needs to have initial Soubor or Image removed
 * zem.šíř and zem.dél needs to be parsed from Eg. 50° 22' 34" s. š. to lat_* fields

For Location you can also use coor template on English version, it is defined on many Town/Village pages already.