Page MenuHomePhabricator

"Preview page with this template" for MediaWiki namespace
Closed, DeclinedPublic

Description

Author: p.selitskas

Description:
Some of the messages, such as MediaWiki:Protectedpagetext, act like templates, and their behaviour depends on the page where they are displayed (like MediaWiki:Protectedpagetext depends on namespace).

Is it OK to enable "Preview page with this template" feature for MediaWiki namespace? Or provide something similar, with a message testing sandbox/framework.


Version: unspecified
Severity: enhancement

Details

Reference
bz44257

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:34 AM
bzimport set Reference to bz44257.
bzimport added a subscriber: Unknown Object (MLST).

It probably wouldn't work like you want for most cases. TemplateSandbox hooks into the transclusion function in the parser, and messages are handled in a different way.

For messages that change if you use the "uselang" URL parameter, you can always create a "sandbox" language (e.g. MediaWiki:Protectedpagetext/sandbox) and add "uselang=sandbox" to the URL. For messages that force a language, though, you're pretty much out of luck at the moment.

I'm going to mark this as "WONTFIX" since it's almost surely not going to happen in TemplateSandbox. If someone wants to write a MessageSandbox extension, don't let this "WONTFIX" stop you.