Page MenuHomePhabricator

Feature Request: Provide options for "noheader","nofooter" in table markup and to "ribbon" individual rows
Open, Needs TriagePublic

Description

The concern:

On English Wikisource the situation arises were table data continues over a break between two pages..

https://en.wikisource.org/wiki/Page:Alcohol,_a_Dangerous_and_Unnecessary_Medicine.djvu/325
https://en.wikisource.org/wiki/Page:Alcohol,_a_Dangerous_and_Unnecessary_Medicine.djvu/326

Currently this is implemented by putting the table closing/opening in a footer/header respectively. Because of interactions between the table markup and proofread page/LST the current approach is not as clean as it could be..

Other templates, such as aligned table, which generate table code directly, have the option for 'page-ribbon' portions of the table which are not generated on transclusion.

Would it be possible to have an extension to table syntax (which gets translated to HTML table elements) which lets a contributor in effect write a normal table but in effect tell the parser not to include an opening/closing table tag, or to noinclude a table row, without the need for the somewhat hackish approaches currently used.

For example I would like to be able to write something like:

First page

{| nofooter=true 
|-
! Header 1 !! Header 2
|-
|Data 1|| Data 2
|}

Second page :

{| noheader=true 
|-ribbon=true <!-- I.E. Supress display of next row when transcluded.
! Header 1 !! Header 2
|-
|Data 1|| Data 2
|}

Within the context of an indvidual page, the noheader/nofooter parameters are ignored, but on transclusion they are applied.

This would allow me to write the tables individually within the body of each page and not worry about the precise whitespace handling of transclusion and interactions of <noinclude />

This would also be reasonably straight-foward to implement, I would hope..

Event Timeline

Dinoguy1000 renamed this task from Feature Request: Provide options for "no-header","nofooter" in table markup and to "ribbon" indivdual rows to Feature Request: Provide options for "noheader","nofooter" in table markup and to "ribbon" individual rows .Feb 17 2019, 6:37 PM