In other words here here how it should appear in the edit form:<div><br></div><div><h1 id="firstHeading" class="" lang="en" style="color:rgb(0,0,0);background-image:none;font-weight:normal;margin:0px 0px 0.1em;overflow:hidden;padding-top:0px;padding-bottom:0px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(170,170,170);font-size:1.6em;line-height:1.2em;font-family:sans-serif">

<span dir="auto">Modification de Template:Example</span></h1></div><div><span dir="auto"><br></span></div><div><span dir="auto"><div id="toolbar" style="clear:both;color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px">

<img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_bold.png" alt="Texte gras" title="Texte gras" id="mw-editbutton-bold" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_italic.png" alt="Texte italique" title="Texte italique" id="mw-editbutton-italic" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_link.png" alt="Lien interne" title="Lien interne" id="mw-editbutton-link" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_extlink.png" alt="Lien externe (n'oubliez pas le préfixe http://)" title="Lien externe (n'oubliez pas le préfixe http://)" id="mw-editbutton-extlink" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_headline.png" alt="Sous-titre niveau 2" title="Sous-titre niveau 2" id="mw-editbutton-headline" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_image.png" alt="Fichier inséré" title="Fichier inséré" id="mw-editbutton-image" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_media.png" alt="Lien vers un fichier média" title="Lien vers un fichier média" id="mw-editbutton-media" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_math.png" alt="Formule mathématique (LaTeX)" title="Formule mathématique (LaTeX)" id="mw-editbutton-math" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_nowiki.png" alt="Ignorer la syntaxe wiki" title="Ignorer la syntaxe wiki" id="mw-editbutton-nowiki" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_sig.png" alt="Votre signature avec la date" title="Votre signature avec la date" id="mw-editbutton-signature" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"><img src="http://bits.wikimedia.org/static-1.21wmf5/skins/common/images/button_hr.png" alt="Ligne horizontale (ne pas en abuser)" title="Ligne horizontale (ne pas en abuser)" id="mw-editbutton-hr" class="" style="border: none; vertical-align: middle; width: 23px; height: 22px;"></div>

<textarea tabindex="1" accesskey="," id="wpTextbox1" cols="80" rows="25" lang="en" dir="ltr" name="wpTextbox1" style="width:1347px;padding:0.1em;direction:ltr;clear:both;display:block;font-size:13px;margin-left:0px"></textarea></span></div>

<div><span dir="auto"><span class="" id="wpSummaryLabel" style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px"><label for="wpSummary"><span class="" id="wpTemplateSandboxPageLabel" style="line-height:19.5px"><label for="wpTemplateSandboxPage">Titre de la page à prévisualiser :</label></span><span style="line-height:19.5px"> </span><input id="wpTemplateSandboxPage" tabindex="8" size="60" name="wpTemplateSandboxPage" style="font-size:13px;direction:ltr"> Résumé :</label></span><span style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px"> </span><input class="" id="wpSummary" maxlength="255" tabindex="1" size="60" title="Entrez un bref résumé [alt-shift-b]" accesskey="b" name="wpSummary" style="direction:ltr;width:1077.5833740234375px;margin-bottom:1em;font-size:13px"><div class="" style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px">

<input name="wpMinoredit" type="checkbox" value="1" checked tabindex="3" accesskey="i" id="wpMinoredit" style="direction:ltr"> <label for="wpMinoredit" id="mw-editpage-minoredit" title="Marquer mes modifications comme mineures [alt-shift-i]">Modification mineure</label> <input name="wpWatchthis" type="checkbox" value="1" checked tabindex="4" accesskey="w" id="wpWatchthis" style="direction:ltr"> <label for="wpWatchthis" id="mw-editpage-watch" title="Ajouter cette page à votre liste de suivi [alt-shift-w]">Suivre cette page</label></div>

<div class="" style="color:rgb(0,0,0);font-family:sans-serif;font-size:13px;line-height:19.200000762939453px"><label for="wpWatchthis" title="Ajouter cette page à votre liste de suivi [alt-shift-w]"><div id="editpage-copywarn">

<table cellspacing="8" cellpadding="0" class="" style="width:1343px;clear:both;margin:0.5em auto;background-color:rgb(249,249,249);border:2px solid rgb(224,224,224);direction:ltr"><tbody><tr><td><img alt="CC-BY-SA 3.0" src="http://upload.wikimedia.org/wikipedia/commons/2/29/CCBYSA_yellow.png" width="87" height="35" style="border: none; vertical-align: middle;"><br>

<img alt="GFDL ≥ 1.2" src="http://upload.wikimedia.org/wikipedia/commons/2/27/GFDL_yellow.png" width="87" height="35" style="border: none; vertical-align: middle;"></td><td>En envoyant vos modifications, vous acceptez de publier de manière <b>irrévocable</b> votre contribution selon les termes de la <span class=""><b><a rel="nofollow" class="" href="http://creativecommons.org/licenses/by-sa/3.0/deed.fr" style="text-decoration:initial;color:rgb(102,51,102)">licence Creative Commons Paternité-Partage des Conditions Initiales à l'Identique 3.0</a></b>, et la <a href="http://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Licence_de_documentation_libre_GNU" class="" title="fr:Wikipédia:Licence de documentation libre GNU" style="text-decoration:initial;color:rgb(102,51,102);background-image:none!important;padding:0px!important">licence de documentation libre GNU</a>, version <a href="http://commons.wikimedia.org/wiki/Commons:GNU_Free_Documentation_License,_version_1.2" title="Commons:GNU Free Documentation License, version 1.2" style="text-decoration:initial;color:rgb(11,0,128);background-image:none!important;padding:0px!important">1.2</a>, <a rel="nofollow" class="" href="http://www.gnu.org/copyleft/fdl.html" style="text-decoration:initial;color:rgb(102,51,102)">1.3</a></span>, ou plus récente publiée par la <a href="http://fr.wikipedia.org/wiki/Fondation_pour_le_logiciel_libre" class="" title="fr:Fondation pour le logiciel libre" style="text-decoration:initial;color:rgb(102,51,102);background-image:none">Free Software Foundation</a> ; sans sections inaltérables, sans texte de première page de couverture et sans texte de dernière page de couverture. Les réutilisateurs de contenu auront l'obligation de vous citer, au minimum, par le biais d'un lien hypertexte (adresse internet) menant vers la page où vous avez contribué, et vous déclarez être satisfait par cette méthode d'attribution. <i><b>N'UTILISEZ PAS DE TRAVAUX SOUS COPYRIGHT SANS AUTORISATION EXPRESSE !</b></i></td>

</tr></tbody></table><table cellspacing="8" cellpadding="0" class="" style="width:1343px;clear:both;margin:0.5em auto;background-color:rgb(249,249,249);border:2px solid rgb(224,224,224);direction:ltr"><tbody><tr><td><img alt="Applications-office.svg" src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5f/Applications-office.svg/50px-Applications-office.svg.png" width="50" height="50" style="border: none; vertical-align: middle;"></td>

<td>Nous vous rappelons que d'après nos <a href="http://commons.wikimedia.org/wiki/Commons:Crit%C3%A8res_d%27inclusion" title="Commons:Critères d'inclusion" style="text-decoration:initial;color:rgb(11,0,128);background-image:none">critères d'inclusion</a>, <b><a href="http://commons.wikimedia.org/wiki/Commons:What_Commons_is_not" title="Commons:What Commons is not" style="text-decoration:initial;color:rgb(11,0,128);background-image:none">Commons n'est pas une œuvre encyclopédique ou littéraire</a></b>, mais une collection de fichiers multimédia dédiés à cet usage, par exemple pour illustrer les wikis de la Wikimedia Foundation. Si vous êtes désireux de créer ou modifier du contenu de nature encyclopédique, préférez l'utilisation de <span class=""><a class="" href="http://www.wikipedia.org/" style="text-decoration:initial;color:rgb(102,51,102)">Wikipedia</a></span>.</td>

</tr></tbody></table></div><div class=""><input id="wpSave" name="wpSave" type="submit" tabindex="5" value="Publier" accesskey="s" title="Publier vos modifications [alt-shift-s]" style="direction:ltr;font-weight:bold"> <input id="wpPreview" name="wpPreview" type="submit" tabindex="6" value="Prévisualiser" accesskey="p" title="Merci de prévisualiser vos modifications avant de les publier [alt-shift-p]" style="direction:ltr"> <input id="wpDiff" name="wpDiff" type="submit" tabindex="7" value="Modifications en cours" accesskey="v" title="Permet de visualiser les changements que vous avez effectués [alt-shift-v]" style="direction:ltr"> <span class=""><a href="http://commons.wikimedia.org/wiki/Template:Example" title="Template:Example" id="mw-editform-cancel" style="text-decoration:initial;color:rgb(11,0,128);background-image:none">Annuler</a> | </span><span class=""><a target="helpwindow" href="http://meta.wikimedia.org/wiki/Help:Editing" style="text-decoration:initial;color:rgb(11,0,128);background-image:none">Aide</a> (ouvre une nouvelle fenêtre)</span></div>

<div class=""><span class=""><div class=""><fieldset id="templatesandbox-editform" style="border:1px solid rgb(47,111,171);margin:1em 0px;padding:0px 1em 1em;line-height:1.5em"><legend style="padding:0.5em;font-size:12px">Aperçu de la page avec ce modèle</legend><br>

</fieldset></div><div class=""></div></span></div></label></div></span></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/30 Philippe Verdy <span dir="ltr"><<a href="mailto:verdy_p@wanadoo.fr" target="_blank">verdy_p@wanadoo.fr</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Note that I also tested using this link:<div><br></div><div><a href="http://commons.wikimedia.org/w/index.php?title=Template:Example&action=edit&wpTemplateSandboxPage=x" target="_blank">http://commons.wikimedia.org/w/index.php?title=Template:Example&action=edit&wpTemplateSandboxPage=x</a><br>


</div><div><br></div><div>because <span style="font-size:12px;white-space:pre-wrap;font-family:Consolas,'Lucida Console',monospace">wpTemplateSandboxPreview</span> is the id and name of the HTML form field that is submitted by the Preview button in the sandbox subform.</div>


<div><br></div><div>But this does not work: it has no effect with action=edit or action=submit.</div><div><br></div><div>In my opinion the two Preview buttons should be only one, they are confusing. Just a single editable field containing the name of the preview page would be enough, and it should be prefilled in all cases (at least with the full name of the currently edited page).</div>

<div class="HOEnZb"><div class="h5">
<div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/30 Philippe Verdy <span dir="ltr"><<a href="mailto:verdy_p@wanadoo.fr" target="_blank">verdy_p@wanadoo.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Well, I just notice now this integration, but I regret that the test subform is BELOW the Publish/View modifications/Preview buttons. It should be ABOVE them (and may be even before the Edit comment field, which is for the Publish button) to make sure that people see it.<div>



<br></div><div>And I don't know how to prefill the name of the test page directly from the edit link. As well, this test subform field remains empty : it should be prefilled by default with the name of the edited page (to simplify the action of appending the name of a "/test" subpage) : if I manually enter "x" in this empty field and press the "Preview test page" button, that "x" does not appear as a GET parameter in the URL displayed in the navigator address bar: this "x" should appear here, along with the name of the edit link parameter that allows prefilling the preview test page.</div>


<div><div>
<div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2012/11/30 Philippe Verdy <span dir="ltr"><<a href="mailto:verdy_p@wanadoo.fr" target="_blank">verdy_p@wanadoo.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



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 ?<div><br></div><div>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.</div>




<div><br></div><div>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 tests.</div>




<div><br></div><div>E.g. of a normal edit link adding the test page in parameter:</div><div><br></div><div><a href="http://commons.wikimedia.org/w/index.php?title=Template:Example&action=edit&testpage=Template:Example/test" target="_blank">http://commons.wikimedia.org/w/index.php?title=Template:Example&action=edit&testpage=Template:Example/test</a></div>




<div><br></div><div>And to format the edit link using Wiki syntax :</div><div><br></div><div>[{{FULLURL:Template:Example|action=edit|testpage=Template:Example/test edit]</div><div><br></div><div>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.</div>




<div><br></div><div>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).</div>




<div><br></div><div>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).</div>




<div><br></div><div>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 test page.</div>




<div><br></div><div>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.</div><div class="gmail_extra"><br><div class="gmail_quote">2012/11/30 Paul Selitskas <span dir="ltr"><<a href="mailto:p.selitskas@gmail.com" target="_blank">p.selitskas@gmail.com</a>></span><br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>TemplateSandbox will go live soon!<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>



From: <b class="gmail_sendername">Sumana Harihareswara</b> <span dir="ltr"><<a href="mailto:sumanah@wikimedia.org" target="_blank">sumanah@wikimedia.org</a>></span><br>


Date: Fri, Nov 30, 2012 at 1:51 AM<br>Subject: Re: [Wikitech-ambassadors] Template sandbox - new feature to help you improve & make templates<br>To: Coordination of technology deployments across languages/projects <<a href="mailto:wikitech-ambassadors@lists.wikimedia.org" target="_blank">wikitech-ambassadors@lists.wikimedia.org</a>><br>






<br><br>Update: I see that TemplateSandbox is now LIVE on Meta, Commons, and<br>
the other non-Wikipedia WMF wikis!  It'll be going live to English<br>
Wikipedia on Monday 3 December and all other Wikipedias on Wednesday 5<br>
December.  Sorry for wrongly saying that it wasn't going live on most<br>
WMF sites yet.<br>
<br>
It'd be great if you could help by translating TemplateSandbox on<br>
translatewiki <a href="https://translatewiki.net/w/i.php?title=Special%3ATranslate&taction=translate&group=ext-templatesandbox&language=ru&limit=100&task=untranslated" target="_blank">https://translatewiki.net/w/i.php?title=Special%3ATranslate&taction=translate&group=ext-templatesandbox&language=ru&limit=100&task=untranslated</a><br>







and by spreading the word about this new feature to template editors<br>
in your community.  Thanks!<br>
<div><br>
Sumana Harihareswara<br>
Engineering Community Manager<br>
Wikimedia Foundation<br>
<br>
<br>
</div><div><div>On Wed, Nov 28, 2012 at 8:34 PM, Sumana Harihareswara<br>
<<a href="mailto:sumanah@wikimedia.org" target="_blank">sumanah@wikimedia.org</a>> wrote:<br>
> "TemplateSandbox" lets you preview a page with a change in a template it<br>
> uses.<br>
><br>
> At the bottom of the edit form in the Template and Module namespaces, a<br>
> new box will appear that allows you to preview other pages as they would<br>
> appear if you saved the template/module you are currently editing.<br>
> Example: try editing the sample "thank-you" template<br>
> <a href="https://www.mediawiki.org/wiki/Template:Thankyou" target="_blank">https://www.mediawiki.org/wiki/Template:Thankyou</a> .  On the edit form,<br>
> under the Save button, you'll see "Preview page with this template" --<br>
> try User_talk:Example_user .<br>
><br>
> Or, go to<br>
><br>
> <a href="https://www.mediawiki.org/wiki/Special:TemplateSandbox" target="_blank">https://www.mediawiki.org/wiki/Special:TemplateSandbox</a><br>
><br>
> and give it the "sandbox prefix" User:Sharihareswara (WMF)/sandbox and<br>
> tell it to "render page" User_talk:Example_user .  You'll see the ugly<br>
> changes I made to the template in my sandbox.<br>
><br>
> More information at<br>
> <a href="https://en.wikipedia.org/wiki/Wikipedia:VPT#New_feature_needs_testing" target="_blank">https://en.wikipedia.org/wiki/Wikipedia:VPT#New_feature_needs_testing</a> .<br>
>  You can check this out in the new version of MediaWiki, now live on<br>
> <a href="http://mediawiki.org" target="_blank">mediawiki.org</a>, but until we have more feedback and improvements we<br>
> aren't pushing it live on the other sites.<br>
><br>
> We figure this will make it easier for people to hack on templates, and<br>
> to develop new Lua templates to replace wikitext templates.<br>
><br>
> --<br>
> Sumana Harihareswara<br>
> Engineering Community Manager<br>
> Wikimedia Foundation<br>
<br>
_______________________________________________<br>
Wikitech-ambassadors mailing list<br>
<a href="mailto:Wikitech-ambassadors@lists.wikimedia.org" target="_blank">Wikitech-ambassadors@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors" target="_blank">https://lists.wikimedia.org/mailman/listinfo/wikitech-ambassadors</a><span><font color="#888888"><br>
</font></span></div></div></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>З павагай,<br>Павел Селіцкас/Pavel Selitskas<br>Wizardist @ Wikimedia projects<br><a href="mailto:p.selitskas@gmail.com" target="_blank">p.selitskas@gmail.com</a>, +375257408304<br>






Skype: p.selitskas<br>
</font></span><br></div></div>_______________________________________________<br>
Translators-l mailing list<br>
<a href="mailto:Translators-l@lists.wikimedia.org" target="_blank">Translators-l@lists.wikimedia.org</a><br>
<a href="https://lists.wikimedia.org/mailman/listinfo/translators-l" target="_blank">https://lists.wikimedia.org/mailman/listinfo/translators-l</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>