Last modified: 2013-03-13 16:02:57 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 T46257, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 44257 - "Preview page with this template" for MediaWiki namespace
"Preview page with this template" for MediaWiki namespace
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
TemplateSandbox (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-01-22 22:07 UTC by Pavel Selitskas [wizardist]
Modified: 2013-03-13 16:02 UTC (History)
2 users (show)

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


Attachments

Description Pavel Selitskas [wizardist] 2013-01-22 22:07:53 UTC
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.
Comment 1 Brad Jorsch 2013-03-13 16:02:57 UTC
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.

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


Navigation
Links