Last modified: 2010-04-08 00:30:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18868, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16868 - parser function for url encoding mw sitenames like mw does
parser function for url encoding mw sitenames like mw does
Status: RESOLVED DUPLICATE of bug 22474
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-01-03 16:20 UTC by merl
Modified: 2010-04-08 00:30 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description merl 2009-01-03 16:20:00 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.
Comment 1 Splarka 2009-01-03 21:18:47 UTC
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').

Comment 2 Conrad Irwin 2010-04-08 00:30:23 UTC

*** This bug has been marked as a duplicate of bug 22474 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links