Jump to content

Template talk:T2a1

Add topic
From Meta, a Wikimedia project coordination wiki

The rendering of the page Template:t2a1, corresponding to calling it without parameter, is confusing, as a result of parsing the code differently from when called with a parameter; the first two closing braces of the parameter are taken as closing braces of the template call:

  • {{t2a1}} gives start-a-middle-{{{1}}}-end - confusing, as if there is a parameter "1-end"
  • {{t2a1|b}} gives start-a-middle-b-end - functioning correctly

{{subst:t2a1}} gives the wikitext {{t2|a|{{{1}}}}}, which is rendered as Parameter 1 is "a", parameter 2 is "{{{1}}}".

{{subst:t2a1|par1}} gives the wikitext and rendered text Parameter 1 is "a", parameter 2 is "par1". If we now replace part1 by {{{1}}}, we have the content of t2a1 in a self-contained form: start-a-middle-{{{1}}}-end.

Start a discussion about Template:T2a1

Start a discussion