Konrad Skeri wrote: > How do I modify a variable in a template on the wiki. > > In the Swedish version of the place-template there's a link to a > weather site with forecasts for the city. Works for all Swedish cities > as long as there is no space in the area name. However, for Vastra > Gotaland the url of the area part to the weather site has to be > Vastra_Gotaland. Is there a simple way to handle this (changing spaces > to _) within the wiki-templare, or do I have to pass a url-friendly > area name as a variable?
I guess this is http://wiki.openstreetmap.org/wiki/Template:Sv:Place and the link http://www.openstreetmap.org/traces/tag/{{urlencode:{{{name}}}}} Urlencode should work, since it changes space to "+". Doesn't this work? Perhaps the OSM server needs to be changed to accept "+". An alternative is to write Västra_Götaland (with underscore) in the page that calls the template. -- Lars Aronsson (l...@aronsson.se) Aronsson Datateknik - http://aronsson.se _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk