On Thu, Sep 26, 2013 at 2:37 AM, Feng Yi <[email protected]> wrote:

> “long-term we are trying to
> make template nesting more sane.”
>
> for now, do you have a list that which templates should emit properly
> nested output?
>

We do not, yet.  We hope at some point to have some tools to automatically
flag improper nesting in templates.

https://www.mediawiki.org/wiki/Parsoid/limitations and
https://www.mediawiki.org/wiki/Parsoid/Broken_wikitext_tar_pit provide some
guidelines.

But basically: if templates open a new HTML element, they should also close
it.  The most common 'broken' template types have separate templates, one
of which starts a table, and the other one closes the table.  This is very
hard to express in an tree-structured DOM, and complicates DOM fixup after
templates are updated.

 --scott

-- 
(http://cscott.net)
_______________________________________________
Wikitext-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to