-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Ken McDonald wrote:
I would like to define two templates, one being a "start" template which contains
<div style="bunch of stuff">
and the other containing just
</div>
However, the "</div>" is being escaped by the MW engine, so appears verbatim in the page, rather than functioning as an HTML end tag.
That's not legal in the current MediaWiki parser.
At the moment though it will "work" the way you want it if you enable the use of HTML Tidy as an HTML nesting sanitizer (install HTML Tidy and set $wgUseTidy) instead of the built-in tag balancing code.
This behavior will eventually be normalized one way or the other for both modes.
- -- brion vibber (brion @ wikimedia.org)