Page MenuHomePhabricator

A newline after pipe in a table implies a paragraph
Closed, InvalidPublic

Description

Author: rene.kijewski

Description:
Recently you can't write

{|

{{{1}}}

}

anymore, because it renders to

<p>{{{1}}}</p>

and no more to

{{{1}}}

as it would without a newline.

The newline is helpful in conjunction with infoboxes, where it makes using lists (* and #) as a parameter easier. Not a long time ago (the change was one recently discovert) both rendered the same. Also I'm quite sure, that a table may not contain a paragraph, as it needs to descend from a <p> or <div> itself in HTML >4.0 (if I am not all wrong).


Version: unspecified
Severity: normal
URL: http://de.wikipedia.org/wiki/Benutzer:Revolus/table_newline

Details

Reference
bz16872

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:29 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz16872.
bzimport added a subscriber: Unknown Object (MLST).

a.d.bergi wrote:

In my opinion this is OK. Through this you can choose whether you want a <p> or not. So when you have infoboxes with a possibility of list-paramters, you can check ([[:de:Template:Str left]]) the first char of you Parameter and then provide a tablerow with a p next to an ul, or just the raw #PCDATA.

Otherwise the layout (no element and p/ul have different top-margins) cant be controlled that easy.

BTW: As referring to http://de.selfhtml.org/html/referenz/elemente.htm#td, p in td is allowed, more: #PCDATA is not!

EN.WP.ST47 wrote:

Looks like Bergi is saying that this is the expected behavior. Closing invalid.