https://bugzilla.wikimedia.org/show_bug.cgi?id=44498

C. Scott Ananian <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|PATCH_TO_REVIEW             |ASSIGNED
                 CC|                            |[email protected]
           Assignee|[email protected]        |[email protected]

--- Comment #17 from C. Scott Ananian <[email protected]> ---
Having looked into it a bit, I agree that the current bug is related to bug
50589.  However, bug 50589 *should* work -- the template is still well
structured, it is just generating content for more than one table cell.  This
bug, on the other hand, has a template which spans structural boundaries in the
HTML.  For example:

{|
|align=center {{table_attribs}}
|}

where {{table_attribs}} expands to 'style="color: red"|Foo'.  This wants to
generate something like the following HTML:
<table><tr>
<td align="center" style="color: red"> Foo
</td></tr></table>

Note that the <td> and some of its attributes come from the article text, and
the rest of the attributes come from the template. I might be able to hack this
through Parsoid, but VE will probably never be able to edit the result. 
(Imagine how you'd present the table cell editing UI for something like this.)
So the bot approach should probably be used to clean up constructs like these,
to something like:

{|
{{table_attribs|align=center}}
|}

Now the template is well-structured in the resulting html.

My current approach is to attempt to get these cases parsed by parsoid,
resulting in uneditable-but-visually-correct output.  We will still want a bot
to rewrite the templates so to make them editable in the articles using them.

As MZMcBridge correctly guessed, I'm currently running a grep over an enwiki
dump to figure out exactly how many articles use table cell templates.  It's
not done running yet so I don't have exact statistics, but the short answer is,
"a lot".  So far nothing that can't be

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to