Hello,
I was wondering... is there a way to test the templates before save them?
I just want to avoid too many editions trying to make the templates work like they supposed to.
On 09/20/2013 08:46 AM, Camponez wrote:
Hello,
I was wondering... is there a way to test the templates before save them?
I just want to avoid too many editions trying to make the templates work like they supposed to.
In MeiaWiki 1.21 there is the usual Preview option that allows you test the template only in the context of its own page. However, in the upcoming 1.22 there is an option
"Preview page with this template" at the end of the template edit page where you can introduce the title of the page and see how the template will behave there.
You can test this in mediawiki.org or other Wikimedia sites e.g. https://en.wikipedia.org/w/index.php?title=Template:Template_sandbox&act...
On Fri, 20 Sep 2013 19:22:05 +0200, Quim Gil qgil@wikimedia.org wrote:
"Preview page with this template" at the end of the template edit page where you can introduce the title of the page and see how the template will behave there.
For the record, this is part of the TemplateSandbox extension: https://www.mediawiki.org/wiki/Extension:TemplateSandbox . (It is deployed on all Wikimedia wikis.)
On Fri, Sep 20, 2013 at 5:22 PM, Quim Gil qgil@wikimedia.org wrote:
In MeiaWiki 1.21 there is the usual Preview option that allows you test the template only in the context of its own page. However, in the upcoming 1.22 there is an option
For a while now you could preview {{foo}} with a call to itself and the preview would use the proposed (new) template version when processing the template call.
e.g.:
<includeonly> yada yada {{{1|default}}} </includeonly><noinclude>{{foo|bar}}</noinclude>
-Jeremy
On Fri, Sep 20, 2013 at 4:08 PM, Jeremy Baron jeremy@tuxmachine.com wrote:
On Fri, Sep 20, 2013 at 5:22 PM, Quim Gil qgil@wikimedia.org wrote:
In MeiaWiki 1.21 there is the usual Preview option that allows you test
the
template only in the context of its own page. However, in the upcoming
1.22
there is an option
For a while now you could preview {{foo}} with a call to itself and the preview would use the proposed (new) template version when processing the template call.
e.g.:
<includeonly> yada yada {{{1|default}}} </includeonly><noinclude>{{foo|bar}}</noinclude>
Did I miss something? Cause this just works only after a saved the template...
On Fri, Sep 20, 2013 at 8:36 PM, Camponez camponez@gmail.com wrote:
Did I miss something? Cause this just works only after a saved the template...
Well it used to work and now I tested and it doesn't seem to any more; may have broke in some more recent version. (I used to use it on the WMF cluster but I think it's a couple years since I did)
-Jeremy
mediawiki-l@lists.wikimedia.org