Last modified: 2010-04-08 00:30:23 UTC
There are multiple magic words in mw which are url-encoding a pagename (e.g. PAGENAMEE) like mw uses it in its own url-sheme, but there is no parser function doing it in the same way. urlencode replaces spaces with '+' and anchorencode also encodes brakes to e.g. ".26". full-/localurl are adding additional path info. So it it would be nice to have an parser function which is doing the same transformation as PAGENAME -> PAGENAMEE, so that "A (BC)" becomes "A_(BC)". Maybe this can be done by adding a parameter to urlencode or creating a new function.
This can be done if the foreign wiki is registered as an interwiki link, via {{fullurl:interwiki:page name}}, however, if this is the case, one can just link via [[interwiki:page name]] in most cases. But there are other uses where this might be handy, such as linking to arbitrary wikis which might not be in the interwiki map, or to link to page actions, like {{fullurl:interwiki:page name|action=edit}} can. To keep consistency with "anchorencode" and "urlencode" it should be non-hashed core parserfunction and have a name like {{linkencode}} or {{wikiencode}} (pageencode and titleencode would get that ugly 'ee', but perhaps that would be oddly consistent with the page name variables ending in 'EE').
*** This bug has been marked as a duplicate of bug 22474 ***