[OSM-talk] Modifying variable in wiki

Ulf Möller usenet at ulfm.de
Thu Aug 6 10:42:34 BST 2009


Konrad Skeri schrieb:

> 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?

Maybe the anchorencode function is what you need?

http://www.mediawiki.org/wiki/Help:Magic_words





More information about the talk mailing list