Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:EL table row

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
(Redirected from Template talk:EL table row/testcases)
Latest comment: 5 years ago by Mathglot in topic Missing arg test

Extra vertical space

[edit]

This is generating excess newlines in certain cases, which disrupts the display of the col 2 cell in the subsequent line, making it taller. This seems to happen when the line above is not rendered (per design) when the category does not exist, but a blank line is inserted into the table before the next |- row tag. But not every time; in the example below, only the last row manifests the bug. This may be due to some squirrely interaction between wiki table markup, and escaped vertical bar ({{!}}. One certain way to fix this is to switch the table to Html markup, as the end tags will take care of that problem, but since wiki markup is standard here, I'd like to keep that, if I can figure out how to make it work.

Thanks, Mathglot (talk) 02:47, 28 April 2021 (UTC)Reply

This was occurring, I think, because of two-level transclusion inside a conditional parser function. Even if there's a tricky way of resolving it (such as encoding something so it unpacks as "{{!}}-" *after* the first transclusion, it's not worth it. So, html. Mathglot (talk) 04:15, 28 April 2021 (UTC)Reply

Retest after the update to html:

Working now, transcludable within parser functions, and the excess white-space problem has disappeared  Preceding unsigned comment added by Mathglot (talkcontribs) 06:12, 28 April 2021 (UTC)Reply

Missing arg test

[edit]

The code for 'missing arg2' in every switch condition is probably overkill, and could either be removed, or factored out to test it for it once at the top. Mathglot (talk) 19:24, 28 April 2021 (UTC)  Done Mathglot (talk) 06:24, 29 April 2021 (UTC)Reply