| Template:Div col is indefinitely protected from editing, as it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
| This is the talk page for discussing improvements to the Div col template. |
|
| Archives: 1Auto-archiving period: 3 months |
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)
"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)
"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)
"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)
Tables
editOne 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-fillCSS. - Is there some workaround CSS to add that might fix this?
- I think this is because of differences in the handling of
- a minor issue is
column-fill: balanceseems 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
| 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 |
- Table 2
| 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 |