User:Pilkingtonmax28


 * }} gives start- - the last-but-one pair of closing braces is taken as closing braces of Template:t1 [ talk edit history links ]
 * }} gives the wikitext rendered as start- -end - after substitution the last pair of closing braces is taken as closing braces of t1
 * tc }} gives the wikitext start rendered as startTemplate:Tc-end - the last-but-one pair of closing braces is taken as closing braces of t1 for both substitutions
 * t1|a}}, substituting Template:subst [ talk edit history links ], gives the wikitext a rendered the same; in the next edit the wikitext is converted to "startaend".
 * a, substituting Template:tsubst 1 [ talk edit history links ] : ditto.

With parser function #if instead of template:t1:


 * |b}} gives - the last-but-one pair of closing braces is taken as closing braces of #if.
 * |b}} gives the wikitext rendered as start-a-end - after substitution the last pair of closing braces is taken as closing braces of #if.
 * t1 |b}} gives the wikitext rendered as start-b-end - the last-but-one pair of closing braces is taken as closing braces of #if for both substitutions.
 * t1 |b}} gives the wikitext " b " rendered the same: " b " (the substitution phase is finished; the ordinary template expansion phase ignores substitution calls); in the next edit the wikitext is converted to "startbend".
 * t1 |c}} gives the wikitext " c " rendered the same: " c ".
 * a gives the wikitext "startaend". Apparently there is a substitution phase of parameter expansion resulting in the parameter value " a ", and another substitution phase for the substitution of #if, taking the parameter value not as plain text, but interpreting the "subst:" in it again.