Last modified: 2009-11-26 03:17:32 UTC
Hi, I noticed a small bug in the way MediaWiki handles default arguments in {{subst}}ituted templates - they don't get substituted at all. For example, suppose you have a template containing the following: 1={{{1}}} 2={{{2|default value}}} Then, substituting the template like this {{template|foo}} will result in 1=foo 2={{{2|default value}}} instead of the expected 1=foo 2=default value I'm pretty sure that this isn't the way template substitution is supposed to work - and if it is, it's confusing as heck, which is a bug in itself as well. ;) This happens both in 1.8.2 and 1.9alpha (r17974) (the current version running on test.wikipedia.org), I've filed this as "trivial" since it's hardly more than an annoyance that can easily be dealt with and since it doesn't actually affect the rendered page, BTW.
See also bug 6305, bug 2777. Actually this is a dupe of bug 6305's original purpose, but on second thought it's really kind of a distinct request, so let's keep this open.
Geez, I already reported this? Sorry. x.x My memory's really holey these days, it seems, but that's still somewhat embarassing.
This has been FIXED with the introduction of the new preprocessor.