Page MenuHomePhabricator

Magicword required to convert "+" to "_"
Closed, ResolvedPublic

Description

Author: sadik.khalid

Description:
http://www.wikipedia.org/wiki/{{urlencode:Page Name}} returns http://www.wikipedia.org/wiki/Page+Name.

We need a function either
to get http://www.wikipedia.org/wiki/Page_Name

or to replace 'space' to '_' in {{PAGENAME}} to get "Page_Name"

http://www.wikipedia.org/wiki/{{anchorencode:Page Name} return http://www.wikipedia.org/wiki/Page_Name. but it is not useful when we use Non-Latin PAGENAME. it converts '%' to '.' too.

please see https://bugzilla.wikimedia.org/show_bug.cgi?id=7059 and https://bugzilla.wikimedia.org/show_bug.cgi?id=839 for more information.

We face this problem in http://ml.wikipedia.org/wiki/Template:Sarvavijnanakosam. Its not possible to make a link to other wiki article if Page Name contain Non-Latin character with space. Example: An article in Malayalam Wikipedia (http://ml.wikipedia.org/wiki/തൊപ്പിക്കാരൻ_കുരങ്ങ്) required link to similar article in Sarvavijnanakosam (http://mal.sarva.gov.in/index.php/തൊപ്പിക്കാരന്‍_കുരങ്ങ്)


Version: unspecified
Severity: enhancement

Details

Reference
bz24434

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:12 PM
bzimport set Reference to bz24434.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of bug 22474 ***

Not yet active on Wikimedia, it seems, but the feature is implemented.

sadik.khalid wrote:

It seems the following functions not working in mediawiki.org
{{urlencode:hi world?!}}
{{urlencode:hi world?!|WIKI}}
{{urlencode:hi world?!|PATH}}
{{urlencode:hi world?!|QUERY}}

It was implemented in r64726, not available yet on wikimedia wikis.

sadik.khalid wrote:

Shall I report another bug with "Product:Wikimedia"