Hi
I wanted to use http://en.wikipedia.org/wiki/Template:Clayden on a wiki so I went to Special:Export and added Template:Clayden and checked "Include templates" and got the file which I then imported into a new MW. I expected to get the same output as on enwiki but I got an error instead.
enwiki: J. P. Clayden, N. Greeves, S. G. Warren, P. D. Wothers (2000), Organic Chemistry (1st ed.), Oxford: Oxford University Press, ISBN 978-0-19-850346-0
mywiki: J. P. Clayden, N. Greeves, S. G. Warren, P. D. Wothers (2000), [Expression error: Missing operand for > Organic Chemistry] (1st ed.), Oxford: Oxford University Press, ISBN 978-0-19-850346-0
My question is: why that happens? (i.e. how to fix?) should I import the template with a different method?
1.15.1 5.2.10 ParserFunctions (Version 1.1.1) $wgUseTidy = true;
On Tue, Feb 16, 2010 at 3:57 PM, Mohamed Magdy mohamed.m.k@gmail.com wrote:
Hi
I wanted to use http://en.wikipedia.org/wiki/Template:Clayden on a wiki so I went to Special:Export and added Template:Clayden and checked "Include templates" and got the file which I then imported into a new MW. I expected to get the same output as on enwiki but I got an error instead.
enwiki: J. P. Clayden, N. Greeves, S. G. Warren, P. D. Wothers (2000), Organic Chemistry (1st ed.), Oxford: Oxford University Press, ISBN 978-0-19-850346-0
mywiki: J. P. Clayden, N. Greeves, S. G. Warren, P. D. Wothers (2000), [Expression error: Missing operand for > Organic Chemistry] (1st ed.), Oxford: Oxford University Press, ISBN 978-0-19-850346-0
Without looking into it at all, I'd guess that the Wikipedia template relies on ParserFunctions features from later versions. Wikimedia sites are using version 1.3.0 of ParserFunctions. You could try getting that from trunk, using it with 1.15.1, and seeing if it works (it might only work with 1.16alpha).
On Wed, Feb 17, 2010 at 2:00 AM, Aryeh Gregor <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com
wrote:
Without looking into it at all, I'd guess that the Wikipedia template relies on ParserFunctions features from later versions. Wikimedia sites are using version 1.3.0 of ParserFunctions. You could try getting that from trunk, using it with 1.15.1, and seeing if it works (it might only work with 1.16alpha).
ParserFunctions from trunk didn't work with mw115, I tried ParserFunctions
from trunk with a new mw trunk and the error remains as it is.
On Wed, Feb 17, 2010 at 12:41 AM, Mohamed Magdy mohamed.m.k@gmail.com wrote:
ParserFunctions from trunk didn't work with mw115, I tried ParserFunctions from trunk with a new mw trunk and the error remains as it is.
What does Special:ExpandTemplates show if you input {{clayden}}, on a wiki where you get the error?
On Wed, Feb 17, 2010 at 8:51 PM, Aryeh Gregor <Simetrical+wikilist@gmail.comSimetrical%2Bwikilist@gmail.com
wrote:
On Wed, Feb 17, 2010 at 12:41 AM, Mohamed Magdy mohamed.m.k@gmail.com wrote:
ParserFunctions from trunk didn't work with mw115, I tried
ParserFunctions
from trunk with a new mw trunk and the error remains as it is.
What does Special:ExpandTemplates show if you input {{clayden}}, on a wiki where you get the error?
If I don't enter the "title" variable, no error appears. this is confusing, what option is enabled on enwiki/wikimedia that allows missing stuff to go without errors?
wikitech-l@lists.wikimedia.org