Template talk:Div col

Latest comment: 2 months ago by Jnestorius in topic Tables

"Template:Nonstandard list end" listed at Redirects for discussion

edit

The redirect Template:Nonstandard list end has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2025 November 23 § Template:Nonstandard list end until a consensus is reached. GhostInTheMachine talk to me 13:47, 23 November 2025 (UTC)Reply

"Template:Nonstandardlistend" listed at Redirects for discussion

edit

The redirect Template:Nonstandardlistend has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2025 December 20 § Template:Nonstandardlistend until a consensus is reached. GhostInTheMachine talk to me 14:08, 20 December 2025 (UTC)Reply

"Template:Ns list end" listed at Redirects for discussion

edit

The redirect Template:Ns list end has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2025 December 20 § Template:Ns list end until a consensus is reached. GhostInTheMachine talk to me 14:09, 20 December 2025 (UTC)Reply

"Template:Nslistend" listed at Redirects for discussion

edit

The redirect Template:Nslistend has been listed at redirects for discussion to determine whether its use and function meets the redirect guidelines. Readers of this page are welcome to comment on this redirect at Wikipedia:Redirects for discussion/Log/2025 December 20 § Template:Nslistend until a consensus is reached. GhostInTheMachine talk to me 14:09, 20 December 2025 (UTC)Reply

Tables

edit

One may try to display a long narrow table as parallel segments by placing it inside {{div col}} ... {{div col end}}.

  • Technically it works in Chrome (though title and/or column headings may make the result unsightly)
  • however, it doesn't seem to work in Firefox; always shows the table as a single column
    • I think this is because of differences in the handling of column-fill CSS.
    • Is there some workaround CSS to add that might fix this?
  • a minor issue is column-fill: balance seems to add odd rows from the centre column out, whereas adding from left to right would be neater.
;Table 1:
{{div col|rules=yes|style=column-count:3}}
{|class="wikitable sortable"
|+Column Count 3
|-
! Number !! Date !! Name
|-
| 1 || 2001-04-07 || Jones
|-
| 2 || 1998-04-07 || Smith
|-
| 3 || 2002-04-07 || Lopez
|-
| 4 || 2003-04-07 || Green
|-
| 5 || 1976-05-07 || Brown
|-
| 6 || 2005-06-07 || Young
|-
| 7 || 2100-07-07 || Lee
|-
| 8 || 2009-04-07 || Jones
|-
| 9 || 2011-08-07 || Jones
|-
|}
{{div col end}}
;Table 2:
{{div col|colwidth=20em|rules=yes}}
{|class="wikitable sortable"
|+Column Count not set
|-
! Number !! Date !! Name
|-
| 1 || 2001-04-07 || Jones
|-
| 2 || 1998-04-07 || Smith
|-
| 3 || 2002-04-07 || Lopez
|-
| 4 || 2003-04-07 || Green
|-
| 5 || 1976-05-07 || Brown
|-
| 6 || 2005-06-07 || Young
|-
| 7 || 2100-07-07 || Lee
|-
| 8 || 2009-04-07 || Jones
|-
| 9 || 2011-08-07 || Jones
|-
|}
{{div col end}}

Produces:

Table 1
Column Count 3
NumberDateName
12001-04-07Jones
21998-04-07Smith
32002-04-07Lopez
42003-04-07Green
51976-05-07Brown
62005-06-07Young
72100-07-07Lee
82009-04-07Jones
92011-08-07Jones
Table 2
Column Count not set
NumberDateName
12001-04-07Jones
21998-04-07Smith
32002-04-07Lopez
42003-04-07Green
51976-05-07Brown
62005-06-07Young
72100-07-07Lee
82009-04-07Jones
92011-08-07Jones

jnestorius(talk) 16:50, 5 May 2026 (UTC)Reply