On 11/21/07, Steve Bennett stevagewp@gmail.com wrote:
I'm not sure I grok the impact of these changes. Say you have template A defined as follows:
''italics'' '''open-bold <b
which is called from an article with text
Crazy: {{A}}r /> stuff'''.
What text does the parser see exactly? Will it see a mixture of both rendered and un-rendered HTML? ie:
Crazy: <i>italics</i> '''open-bold <br /> stuff'''.
I'm guessing not, because obviously not all HTML is valid input to the parser (unlike the <i> in this case). Would you mind explaining a bit more?
Well, as he says, uncovered main-pass syntax will now generally be valid. Bold and HTML are both handled in the main (post-template) pass, so you'd get
Crazy: <i>italics</i> <b>open-bold <br /> stuff</b>.
Even right now you can open wiki-italics or bold in one template, and close them in another. Or tables, etc. You can use chunks of markup only, if you like: Template:A = '' and template B = ' means {{a}}x{{a}} {{a}}{{b}}y{{b}}{{a}} = <i>x</i> <b>y</b>. See for yourself:
http://en.wikipedia.org/wiki/User:Simetrical/Apostrophes_and_templates
But this doesn't currently work for broken-up HTML tags.