Hello, I hope this is the correct list for wiki syntax problems:
I have written a template for typesetting command-lines: Template:Cmd
<font style="some_fancy_css_stuff">{{{1}}}</font>
This script does not work for {{Cmd|a+b=c}}
Any help?
Thanks, Daniel
On Wed, 09 Feb 2005 08:54:01 +0100, Kropveld wrote:
... This script does not work for {{Cmd|a+b=c}} ...
See: * http://meta.wikimedia.org/wiki/Help:Template#Parameters * http://bugzilla.wikimedia.org/show_bug.cgi?id=1409
-- Zigger
Zigger wrote:
See:
Yup, a bug (feature?)...
Perhaps I hit another one here: I have used this template about 10 times in one page. After the fifth time it suddenly stops working, end then it echos just _Template:Cmd_ , but it does not expand.
Any hints or workarounds??
Thanks Daniel
On Wed, 09 Feb 2005 20:16:11 +0100, Daniel K. DKml@xs4all.nl wrote:
Perhaps I hit another one here: I have used this template about 10 times in one page. After the fifth time it suddenly stops working, end then it echos just _Template:Cmd_ , but it does not expand.
Versions of MediaWiki prior to 1.4 use[d] an arbitrary constant (MAX_INCLUDE_REPEAT, with the default value 5, at the top of includes/Parser.php) to limit the number of times the same template could appear on a page. This was primarily a kludge to avoid the possibility of someone including a template in itself and thus causing infinite recursion. Version 1.4 includes proper protection against such an attack, and therefore has no such arbitrary limit.
A somewhat rambling bug report which tracked this issue is at http://bugzilla.wikimedia.org/show_bug.cgi?id=95
Workaround: increase the constant; true solution: upgrade to version 1.4 (still officially in beta, but happily running all Wikimedia sites for many weeks now).
mediawiki-l@lists.wikimedia.org