Last modified: 2006-01-26 20:45:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 651 - URL-escaped version of {{PAGENAME}}
URL-escaped version of {{PAGENAME}}
Status: RESOLVED FIXED
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: 2004-10-06 02:47 UTC by poccil
Modified: 2006-01-26 20:45 UTC (History)
1 user (show)

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


Attachments

Description poccil 2004-10-06 02:47:56 UTC
Previously I asked for an escaped version of 
PAGENAME and came back with one that escaped spaces 
to underscores.  That's not exactly what I wanted.  
What I wanted was a variable that escaped the name 
of a page as though it were a URL.  For example:

  Page name =>  Page%20name

I would prefer that such a variable be named 
PAGENAMEUE.

Thanks.

--[[:w:User:Poccil]]
Comment 1 River Tarnell 2004-10-06 02:49:35 UTC
What is the difference between an underscore and a %20 for a URL to a wiki page?
Comment 2 poccil 2004-10-06 02:56:12 UTC
(In reply to comment #1)
> What is the difference between an underscore and a %20 for 
a URL to a wiki page?

The difference is manifested when one wants to use the 
variable to express a search phrase as an external link to a 
search engine.  For example, Google will not parse the name 
Page_name in the same way as it would parse Page%20name.  
 --User:Poccil


Comment 3 Goplat 2004-10-06 03:13:49 UTC
Template:Google is often used with a parameter other than the page 
title, so a generalized {{urlescape:text}} would be useful.
Comment 4 poccil 2004-10-16 04:08:40 UTC
Just to check the status of this feature request.
Comment 5 Bjørn Erik Pedersen 2005-02-04 20:55:06 UTC
I support the suggestion for:

A general {{urlescape:text}}
Comment 6 Melancholie 2006-01-26 03:19:46 UTC
This is possible by typing {{PAGENAMEE}} now! Thus I 
close this bug.

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


Navigation
Links