Topic on Help talk:Lint errors/fostered

Quiddity (WMF) (talkcontribs)

1. Given the current example, should we add a line suggesting the alternatives/fixes, e.g.

If this line is below the opening {|, then you might want to add a ! before the word to turn it into a header row, or a |+ before the word to turn it into a table caption.

2. I think we should also add the second obvious example:

{|
|-
foo
| bar
|}

along with solution:

If this line is below a |- (table row start), then you might want to add a | before the word to turn it into a normal row.

3. What other circumstances might trigger this warning? (We could potentially add examples&solutions for those, too. Or at least point to Help:Tables.)

Arlolra (talkcontribs)

Worth noting that Parsoid currently generates differing output for example 2 there, so wouldn't help in surfacing those errors yet. See phab:T109897

SSastry (WMF) (talkcontribs)

Thanks @Quiddity (WMF) for the suggestion. I've revised the help text. Please check if reads better (and feel free to tweak for clarity).

@Arlolra, I suppose it is time to "fix" that in Parsoid. I'll take a look one of these days. Nick, till such time, your second example cannot be flagged by Linter.

Other examples are where fostering occurs in tables with HTML tags. You can come up with many examples. The scenarios are where content shows up outside <td>, <th>, or <caption> tags. I imagine templates are going to be sources of these markup errors.

Arlolra (talkcontribs)