Community Wishlist Survey 2022/Editing/Formatting columns in table
Formatting columns in table
- Problem: When editing a table in wikitext, it is possible to add CSS properties to rows and to cells, but not to columns. When a property applies to an entire column, we are compelled to copy-paste this property in every cell of the column; it would be easier and shorter to write it only once, at the beginning of the column.
- Proposed solution: Enable in some way the use of the
<colgroup>
and<col>
HTML attributes within{| |}
. - Who would benefit: Contributors who create or edit tables on any Wiki project.
- More comments:
- Phabricator tickets: phab:T2986, phab:T103276
- Proposer: ElioPrrl (talk) 16:27, 11 January 2022 (UTC)
Discussion
- I can see this as being useful for centering a column of flags (images) or right aligning a numeric column, but my tests on Windows 10 (Chrome, Edge, Firefox) browsers showed that the "text-align" style on the colgroup's col didn't work. I found some other styles didn't work too like "font-weight". It needs more browser support to be effective. Jroberson108 (talk) 10:43, 30 January 2022 (UTC)
- A mostly numeric table can be right-aligned as a whole. But there are usually also 1 or more columns that need to be left aligned. style=text-align:left has to be added to every cell in those columns. I can usually find a mass find-and-replace method to do that, but it can be difficult. It would be nice if the Visual Editor could do that to selected columns. --Timeshifter (talk) 14:31, 31 January 2022 (UTC)
Voting
- Support Lion-hearted85 (talk) 22:53, 28 January 2022 (UTC)
- Support Daud Iffa (talk) 23:40, 28 January 2022 (UTC)
- Support {{u|Sdkb}} talk 00:02, 29 January 2022 (UTC)
- Support --𝑇𝑚𝑣 (𝑡𝑎𝑙𝑘) 01:28, 29 January 2022 (UTC)
- Support JDspeeder1 (talk) 01:48, 29 January 2022 (UTC)
- Support Kishorekumar 62 (talk) 05:46, 29 January 2022 (UTC)
- Support Rupalavanyan (talk) 07:41, 29 January 2022 (UTC)
- Support —Bruce1eetalk 10:05, 29 January 2022 (UTC)
- Support --Mahl (talk) 11:09, 29 January 2022 (UTC)
- Support --Hemantha (talk) 12:35, 29 January 2022 (UTC)
- Support NguoiDungKhongDinhDanh 12:37, 29 January 2022 (UTC)
- Support Aca (talk) 12:56, 29 January 2022 (UTC)
- Support — SHEIKH (Talk) 13:13, 29 January 2022 (UTC)
- Support --Yann (talk) 13:17, 29 January 2022 (UTC)
- Support--Matěj Suchánek (talk) 13:42, 29 January 2022 (UTC)
- Support --Raymonde Lanthier (talk) 14:19, 29 January 2022 (UTC)
- Support Mbrickn (talk) 15:41, 29 January 2022 (UTC)
- Support Saliousoft (talk) 17:42, 29 January 2022 (UTC)
- Support Mohammad ebz (talk) 18:02, 29 January 2022 (UTC)
- Support--Cunegonde1 (talk) 18:21, 29 January 2022 (UTC)
- Support — Jules* Talk 18:26, 29 January 2022 (UTC)
- Support Wostr (talk) 19:41, 29 January 2022 (UTC)
- Support Juenti el toju (talk) 20:04, 29 January 2022 (UTC)
- Support OwenBlacker (Talk) 22:14, 29 January 2022 (UTC)
- Support Goombiis (talk) 22:20, 29 January 2022 (UTC)
- Support josecurioso ❯❯❯ Tell me! 00:19, 30 January 2022 (UTC)
- Support --Timeshifter (talk) 07:19, 30 January 2022 (UTC)
- Support Lectrician1 (talk) 07:28, 30 January 2022 (UTC)
- Support DePlusJean (talk) 09:14, 30 January 2022 (UTC)
- Support F. Riedelio (talk) 11:02, 30 January 2022 (UTC)
- Support Better for editing tables. We can't not color table nowadays Thingofme (talk) 15:11, 30 January 2022 (UTC)
- Support --F0x1 (talk) 19:06, 30 January 2022 (UTC)
- Support daSupremo 22:23, 30 January 2022 (UTC)
- Support This is such a pain in the ass. I would love a feature to deal with it. JPxG (talk) 00:42, 31 January 2022 (UTC)
- Support Lfstevens (talk) 06:39, 31 January 2022 (UTC)
- Support Hb2007 (talk) 15:59, 31 January 2022 (UTC)
- Support RamónMC (talk) 16:32, 31 January 2022 (UTC)
- Support JAn Dudík (talk) 20:35, 31 January 2022 (UTC)