Page MenuHomePhabricator

Add new variable NAMESPACEE for encoded namespace (like PAGENAMEE)
Closed, ResolvedPublic

Description

{{PAGENAMEE}} is useful when you want only the page name without the namespace
for a URL, but if you also wanted the namespace, you would need a encoded
version of {{NAMESPACE}}.

This would allow the creation of a escaped URL without having to use
{{localurl}} (which cannot be used on [[Template:Deletedpage]] and its localized
versions, because they have to point to the Wikipedia URL even when included on
a mirror).


Version: 1.6.x
Severity: enhancement
OS: Linux
Platform: PC
URL: http://pt.wikipedia.org/wiki/Predefini%C3%A7%C3%A3o:P%C3%A1gina_de_usu%C3%A1rio

Details

Reference
bz3831

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:55 PM
bzimport set Reference to bz3831.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

Why do they have to point to Wikipedia even when mirrored?

Sorry, I meant [[Template:Userpage]].

gangleri wrote:

See
bug 3997: suggesting a new variable {{FULLPAGENAME}} and {{FULLPAGENAMEE}}

Tom's suggestion "strips" a colon which would be generated with
{{NAMESPACE}}:{{PAGENAME}} and {{NAMESPACEE}}:{{PAGENAMEE}} .

regards reinhardt [[user:gangleri]]