Last modified: 2009-06-24 00:35:45 UTC
I'll explain on a simple example... Let's say I have a template called Substing, it's source is: {{#if:{{{1|}}}|{{{1}}}|7}} Now let us have 3 situations: 1. {{subst:Substing}} 2. {{subst:Substing|}} 3. {{subst:Substing|3}} This should give me: 1. 7 2. 7 3. 3 So far it all works, but now let's say I want the template to be permanent (so there will only be numbers in the source). Should be easy - changing the source to: {{<includeonly>subst:</includeonly>#if:{{{1|}}}|{{{1}}}|7}} And now let us have those 3 situations: 1. {{subst:Substing}} 2. {{subst:Substing|}} 3. {{subst:Substing|3}} This should give me: 1. 7 2. 7 3. 3 But it gives me: 1. {{{1}}} 2. 7 3. 3 So the first one is wrong. More tests (both for #if and #ifeq): http://test.wikipedia.org/wiki/Template_talk:Substing#subst_table
I found a similar bug. Maybee it's the same. For example, I created a template called "Negative" which calculates something. The source of this template is {{<includeonly>subst:</includeonly>#expr: -{{{1}}} }} for example. Usage: {{subst:Negative|7}} Result: -7 Usage: {{Negative|7}} Result: {{subst:#expr: -{{{1}}} }} This is very strange and completely useless, obviously. The expected result is {{Negative|7}}.
This bug is fixed with the new preprocessor. (In reply to comment #1) > I found a similar bug. Maybee it's the same. For example, I created a template > called "Negative" which calculates something. The source of this template is > {{<includeonly>subst:</includeonly>#expr: -{{{1}}} }} for example. > > Usage: {{subst:Negative|7}} > Result: -7 > > Usage: {{Negative|7}} > Result: {{subst:#expr: -{{{1}}} }} > > This is very strange and completely useless, obviously. The expected result is > {{Negative|7}}. > This is bug 5453.
*** This bug has been marked as a duplicate of bug 5453 ***