Will it be available immediately when editing ANY template, just by giving
the name of a page using the template, and without having to go to a
special page ?
The idea would be that we could have just before the edit comment field a
field that contains the name of a page to see, and that the "Preview"
button will preview that page instead of just the template page itself.
Then an edit link somewhere on a page could prefill that field with a test
page name (with an edit parameter). Notably, in the Template space, it
could be prefilled with the name of a "/test" subpage where it exists,
otherwise it will continue to preview the main template page transcluding
the /doc subpage containing the examples of usages (but generally these
examples do not contain an extensive list of rendering tests for complex
E.g. of a normal edit link adding the test page in parameter:
And to format the edit link using Wiki syntax :
In other words, no need to visit a special page, but a full integration in
the standard page edit form (independantly of whever the edited page is in
the Template namespace or not), using the specified (or manually entered)
test page directly with the Preview button.
When editing an article in the main namespace, or a talk page, with the top
"Edit" tab, no testpage would be prefilled but the testpage field would be
there at the bottom of the edit form, where one could still manually enter
the name of a test page (its default value would be the edited page itself,
to make easy to append the name of a subpage).
When this form field is erased or contains the name of an inexistant page,
its value would be replaced by the name of the currently edited page and
the Preview page would refill that field and the preview page would also
indicate the name of the test page it uses for rendering the preview (it
should also say to the user with a warning that the name of the test page
does not exist, before displaying the rest of the rendered testpage).
As well, when using the edit links above, if they don't specify the name of
the testpage, or if they specify an inexistant page, the same warning would
be displayed before the edit form, and the form would still be prefilled
automatically with the name of the edited page as the default name of the
So there's no need for a special page. The name of a test page would be
present in all edit forms from any page in any namespace.
2012/11/30 Paul Selitskas <p.selitskas(a)gmail.com>
TemplateSandbox will go live soon!
---------- Forwarded message ----------
From: Sumana Harihareswara <sumanah(a)wikimedia.org>
Date: Fri, Nov 30, 2012 at 1:51 AM
Subject: Re: [Wikitech-ambassadors] Template sandbox - new feature to help
you improve & make templates
To: Coordination of technology deployments across languages/projects <
Update: I see that TemplateSandbox is now LIVE on Meta, Commons, and
the other non-Wikipedia WMF wikis! It'll be going live to English
Wikipedia on Monday 3 December and all other Wikipedias on Wednesday 5
December. Sorry for wrongly saying that it wasn't going live on most
WMF sites yet.
It'd be great if you could help by translating TemplateSandbox on
and by spreading the word about this new feature to template editors
in your community. Thanks!
Engineering Community Manager
On Wed, Nov 28, 2012 at 8:34 PM, Sumana Harihareswara
"TemplateSandbox" lets you preview a
page with a change in a template it
At the bottom of the edit form in the Template and Module namespaces, a
new box will appear that allows you to preview other pages as they would
appear if you saved the template/module you are currently editing.
Example: try editing the sample "thank-you" template
. On the edit form,
under the Save button, you'll see "Preview page with this template" --
try User_talk:Example_user .
Or, go to
and give it the "sandbox prefix" User:Sharihareswara (WMF)/sandbox and
tell it to "render page" User_talk:Example_user . You'll see the ugly
changes I made to the template in my sandbox.
More information at
You can check this out in the new version of MediaWiki, now live on
, but until we have more feedback and improvements we
aren't pushing it live on the other sites.
We figure this will make it easier for people to hack on templates, and
to develop new Lua templates to replace wikitext templates.
Engineering Community Manager
Wikitech-ambassadors mailing list
Павел Селіцкас/Pavel Selitskas
Wizardist @ Wikimedia projects
Translators-l mailing list