Last modified: 2014-09-20 18:13:06 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 T60515, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58515 - Preview page with this template should be enabled on protected pages
Preview page with this template should be enabled on protected pages
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
TemplateSandbox (Other open bugs)
master
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-15 17:56 UTC by Rezonansowy
Modified: 2014-09-20 18:13 UTC (History)
2 users (show)

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


Attachments

Description Rezonansowy 2013-12-15 17:56:26 UTC
Preview page with this template should be enabled on protected pages, this is useful when checking for issues with old versions of the protected template.
Comment 1 Brad Jorsch 2013-12-15 22:13:01 UTC
TemplateSandbox doesn't pay any attention to the protection status of the page. MediaWiki itself doesn't show the edit form in this situation.

Since the edit form isn't shown in this situation, it would be difficult to show TemplateSandbox on these pages. If MediaWiki were changed to show the edit form in these situations, TemplateSandbox would automatically show up.
Comment 2 Jackmcbarn 2014-09-20 18:13:06 UTC
As a workaround for this problem, there's a hidden form field called wpTemplateSandboxTemplate that controls which template is replaced. If you want to preview a different version of a protected template, put your new code on some other page, change wpTemplateSandboxTemplate to the name of the protected template, and then proceed normally. I wrote a script at https://en.wikipedia.org/wiki/User:Jackmcbarn/advancedtemplatesandbox.js that will turn the hidden field into a text field to make this easier.

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


Navigation
Links