Editors who repeatedly or seriously fail to adhere to the purpose of Wikipedia, any expected standards of behaviour, or any normal editorial process may be bloc
| Note: You can also ask questions here: Help desk. Teahouse. Village pump (technical). |
| This is the main talk page for discussing improvements to the various table help pages. |
|
| Archives (index): 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15Auto-archiving period: 9 months |
| This help page does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||
| |||||||||||
| The contentious topics procedure applies to this page. This page relates to article titles and capitalisation. Editors who repeatedly or seriously fail to adhere to the purpose of Wikipedia, any expected standards of behaviour, or any normal editorial process may be blocked or restricted by an administrator. |
| Material from Help:Table was split out into Help:Tables and locations on 9 December 2023 from this version. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted so long as the latter page exists. Please leave this template in place to link the article histories and preserve this attribution. |
Hi all, it took me quite some effort to determine how to change background color of a cell or complete table. It appears that one cannot use html color coding, like f3f3f3, but one should use (in this case), background-color:WhiteSmoke. Can this be added to the page, including a list to a conversion from html into these textual codes? I wanted to use the background color of an image for the complete table. Thanks, Ellywa (talk) 15:54, 18 December 2025 (UTC)
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | test |
| Example | Example | Example |
| Header text | Header text | Header text |
|---|---|---|
| Example | Example | Example |
| Example | Example | Example |
| Example | Example | Example |
#) is nowadays mandatory. It has always been mandatory for such values when specified in a CSS declaration such as <table style="background-color:#f3f3f3">.BGCOLOR=, TEXT=, LINK=, VLINK= and ALINK= attributes of the <BODY> tag, and the COLOR= attribute of the <FONT> tag. Some browsers also recognised the BGCOLOR= attribute (but not the others) with <TABLE>, <TR>, <TH> and <TD>. When these attributes were used to specify a colour as an RGB hex triplet, many browsers allowed the hash character to be omitted, e.g. <TABLE BGCOLOR=F3F3F3>. All of these techniques were deprecated in HTML 4.0 and declared obsolete in HTML 5.0, and therefore must not be relied upon.{| bgcolor=f3f3f3 emits <table bgcolor="f3f3f3">) and therefore the obsolete form is served to the client, and the end result may still work as intended - but only for browsers that recognise these older techniques, not necessarily for all browsers. --Redrose64 🌹 (talk) 12:22, 21 December 2025 (UTC)
Recently this site has changed its useful TOC to a useless blob on the side of the page. if not open perminally or having to chick a link to open temporarily it is evil and useless godanov (talk) 14:08, 23 December 2025 (UTC)
Recently while working on wikisource to convert an old table, I managed to use leader lines in a table that worked fairly satisfactory. I was wondering if this example would merit inclusion in the guide here, since I would like to share how I did this with other users.
{| style="margin: auto; border: none;"
|-
| || H<sub>2</sub> || N<sub>2</sub> || O<sub>2</sub> || CO || CO<sub>2</sub> || N<sub>2</sub>O || C<sub>2</sub>H<sub>4</sub>
|-
| {{ll||<math display=inline> 10^b \eta_0 </math> }}|| 86 || 166 || 187 || 162 || 138 || 135 || 92
|-
| {{ll||<math display=inline> M </math>}} || 2 || 28 || 32 || 28 || 44 || 44 || 28
|-
| {{ll||<math display=inline> C </math> }} || 79 || 109 || 127 || 100 || 277 || 260 || 272
|-
| {{ll||<math display=inline> (2a)^2 \text{(relative)} </math> }} || 127 || 228 || 206 || 239 || 239 || 261 || 288
|-
| {{ll||<math display=inline> (2a)^3 \text{(relative)} </math> }}|| 1440 || 3440 || 2963 || 3698 || 3686 || 4230 || 4884
|}
IanVG (talk) 22:18, 18 January 2026 (UTC)
How do I eliminate the bolding of text and shading of the cell with 1959 in it?
| Holiday season |
Chart | Peak position |
|---|---|---|
| 1958 | US Billboard Hot 100[1] | 13 |
| 1959 | UK Singles (Official Charts)[2] | 13 |
| US Billboard Hot 100[1] | 15 |
{| class="wikitable plainrowheaders" style="text-align:center"
|+ Chart performance for "The Little Drummer Boy" by The Harry Simeone Chorale (1958—2025)
! scope="col"| Holiday<br/>season
! scope="col"| Chart
! scope="col"| Peak<br />position
|-
| style="text-align:center;"|1958
|align="left"|US [[Billboard Hot 100|''Billboard'' Hot 100]]<ref name = WhitburnHSC/>
| style="text-align:center;"|13
|-
! rowspan=2|1959
| style="text-align:left"{{singlechart|UKsinglesbyname|13|artist=Harry Simeone Chorale |artistid=6867}}
|-
|align="left"|US ''Billboard'' Hot 100<ref name = WhitburnHSC/>
| style="text-align:center;"|15
|}
Danaphile (talk) 12:02, 19 January 2026 (UTC)
{| class="wikitable plainrowheaders" style="text-align:center"
|+ Chart performance for "The Little Drummer Boy" by The Harry Simeone Chorale (1958—2025)
! scope="col"| Holiday<br/>season
! scope="col"| Chart
! scope="col"| Peak<br />position
|-
| style="text-align:center;"|1958
|align="left"|US [[Billboard Hot 100|''Billboard'' Hot 100]]<ref name = WhitburnHSC/>
| style="text-align:center;"|13
|-
| rowspan=2|1959
| style="text-align:left"{{singlechart|UKsinglesbyname|13|artist=Harry Simeone Chorale |artistid=6867}}
|-
|align="left"|US ''Billboard'' Hot 100<ref name = WhitburnHSC/>
| style="text-align:center;"|15
|}
! rowspan=2|1959
| rowspan=2|1959
! scope="row" rowspan=2|1959. In this case, it doesn't seem like they need to be scoped or be headers; hence changing "!" to "|" for a normal data cell. The unused "plainrowheaders" class can be removed too. Jroberson108 (talk) 20:45, 19 January 2026 (UTC)References
WhitburnHSC was invoked but never defined (see the help page).
This song reached number 6 on the Easy Listening chart two years in a row, so I put in rowspan=2 for both of those cells. It's only giving me one row that is split in two.
| Holiday season |
Chart | Peak position |
|---|---|---|
| 1958 | US Billboard Hot 100[1] | 13 |
| 1959 | UK Singles (Official Charts)[2] | 13 |
| US Billboard Hot 100[1] | 15 | |
| 1960 | 24 | |
| 1961 | 22 | |
| US Billboard Easy Listening[1] | 6 | |
| 1962 | ||
| US Billboard Hot 100[1] | 28 |
{| class="wikitable" style="text-align:center"
|+ Chart performance for "The Little Drummer Boy" by The Harry Simeone Chorale (1958—2025)
! scope="col"| Holiday<br/>season
! scope="col"| Chart
! scope="col"| Peak<br />position
|-
| style="text-align:center;"|1958
|align="left"|US [[Billboard Hot 100|''Billboard'' Hot 100]]<ref name = WhitburnHSC/>
| style="text-align:center;"|13
|-
| rowspan=2|1959
| style="text-align:left"{{singlechart|UKsinglesbyname|13|artist=Harry Simeone Chorale |artistid=6867}}
|-
| rowspan=3 align="left"|US ''Billboard'' Hot 100<ref name = WhitburnHSC/>
| style="text-align:center;"|15
|-
| style="text-align:center;"|1960
| style="text-align:center;"|24
|-
| rowspan=2 style="text-align:center;"|1961
| style="text-align:center;"|22
|-
| rowspan=2 align="left"|US ''Billboard'' [[Adult Contemporary (chart)|Easy Listening]]<ref name = WhitburnHSC/>
| rowspan=2 style="text-align:center;"|6
|-
| rowspan=2 style="text-align:center;"|1962
|-
|align="left"|US ''Billboard'' Hot 100<ref name = WhitburnHSC/>
| style="text-align:center;"|28
|-
|}
Danaphile (talk) 21:01, 19 January 2026 (UTC)
| Holiday season |
Chart | Peak position |
|---|---|---|
| 1958 | US Billboard Hot 100[1] | 13 |
| 1959 | UK Singles (Official Charts)[2] | 13 |
| US Billboard Hot 100[1] | 15 | |
| 1960 | 24 | |
| 1961 | 22 | |
| US Billboard Easy Listening[1] | 6 | |
| 1962 | 6 | |
| US Billboard Hot 100[1] | 28 |
| Holiday season |
Chart | Peak position |
|---|---|---|
| 1958 | US Billboard Hot 100[1] | 13 |
| 1959 | UK Singles (Official Charts)[2] | 13 |
| US Billboard Hot 100[1] | 15 | |
| 1960 | 24 | |
| 1961 more |
22 | |
| US Billboard Easy Listening[1] | 6 | |
| 1962 more | ||
| US Billboard Hot 100[1] | 28 |
References
Since numerical data sort values are stored in double-precision floating-point format, I had the idea of writing a section about limitations of double precision. In particular, I found that passing a numeric string that parses as +∞ would allow numeric sorting at positive infinity. –LaundryPizza03 (dc̄) 06:13, 20 January 2026 (UTC)
Okay, I have an example now (based on Isotopes of bromine). I don't think we have a section on tables with mixed units yet, and the final draft might use a different subset of the table.
Isotopes of bromine
| ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{| class="wikitable sortable"
|+ Isotopes of bromine
|-
! Isotope
! Half-life
|-
| <sup>75</sup>Br
| data-sort-value = 5802 | 96.7 min <!--Sorted in seconds for compatibility of units-->
|-
| <sup>76</sup>Br
| data-sort-value = 58320 | 16.2 h
|-
| <sup>77</sup>Br
| data-sort-value = 205344 | 57.04 h
|-
| <sup>78</sup>Br
| data-sort-value = 387 | 6.45 min
|-
| <sup>79</sup>Br
| data-sort-value = 1e309 | stable <!--Exceeds upper limit of double precision-->
|-
| <sup>80</sup>Br
| data-sort-value = 1060.8 | 17.68 min
|-
| <sup>80m</sup>Br
| data-sort-value = 15913.8 | 4.4205 h
|-
| <sup>81</sup>Br
| data-sort-value = 1e309 | stable <!--Exceeds upper limit of double precision-->
|-
| <sup>82</sup>Br
| data-sort-value = 127015.2 | 35.282 h
|-
| <sup>83</sup>Br
| data-sort-value = 8546.4 | 2.374 h
|}
|
–LaundryPizza03 (dc̄) 06:50, 20 January 2026 (UTC) I propose putting this in #Default data type of a column and creating a new section on data with mixed units:
The wiki software uses double-precision floating-point format, which offers approximately 15 significant digits of precision and can represent numbers ranging in absolute value from approximately 4.9×10−324 to 1.7×10308. While tables with extremely large or extremely small values may not sort correctly, the numerical sort value of +∞ (plus infinity) can be encoded by a number that exceeds the upper limit of double precision.
–LaundryPizza03 (dc̄) 07:12, 20 January 2026 (UTC)
LaundryPizza03. I moved this discussion here so that it is more likely to get noticed. --Timeshifter (talk) 11:20, 22 January 2026 (UTC)
LaundryPizza03. I (and apparently others) are just not finding the time to help here. It might also have to do with that fact that it is advanced-math related. :) Feel free to add info to Help:Sortable tables. Hopefully someone will correct any errors.
For those who are interested, I moved the sortable table talk archives (Help talk:Sortable tables/Archive 5, etc.) to Help talk:Table archives. Archives 11 through 14 here are strictly sortable table archives. Archive 15 begins with the last of those talk threads, and then finishes with the latest Help talk:Table threads that have been archived. --Timeshifter (talk) 21:12, 2 February 2026 (UTC)
When viewing tables with the background set to transparent/none, the text is made a dark grey (#202122) on a black background, making it difficult to read. This can be seen on the Help page under the "Non-rectangular tables" section in "Workarounds":
Help:Table#Non-rectangular tables
Notably, this behavior is different depending on if the background is set to "transparent" or "none": transparent has links be in their usual blue/purple colors, while none has links also be set to that gray color.
I'm sorry if this isn't the right place to report this; There were many places that seemed like they could be viable candidates. Dinjoralo (talk) 14:11, 20 March 2026 (UTC)
@Dinjoralo: I see the problem in dark mode. I removed that section from the help page until someone can fix it. I don't have the time right now. Here it is:
|
Cell borders can be hidden by adding Wikitext {| class=wikitable style="border: none; background: none;"
! colspan=2 rowspan=2 style="border: none; background: none;" | [[File:Pfeil_SO.svg |none|link=|20px]]
! colspan=3 | To
|-
! Solid !! Liquid !! Gas
|-
! rowspan=3 | From
! Solid
| Solid–solid transformation || Melting || Sublimation
|-
! Liquid
| Freezing || {{sdash}} || Boiling/evaporation
|-
! Gas
| Deposition || Condensation || {{sdash}}
|}
Produces
The removal of the link on an image is dependent on it being purely decorative (as it will be ignored by assistive devices). Wikitext {| class=wikitable style="border: none; background: none;"
! scope=col | Year
! scope=col | Size
| rowspan=5 style="border: none; background: none;"|
! scope=col | Year
! scope=col | Size
| rowspan=5 style="border: none; background: none;"|
! scope=col | Year
! scope=col | Size
|-
| 1990 || 1000<br>(est) || 2000 || 1357 || 2010 || 1776
|-
| 1991 || 1010 || 2001 || 1471 || 2011 || 1888
|-
| colspan=2 style="text-align: center;"|⋮
| colspan=2 style="text-align: center;"|⋮
| colspan=2 style="text-align: center;"|⋮
|-
| 1999 || 1234 || 2009 || 1616 || 2019 || 1997<br>(est)
|}
Produces
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
--Timeshifter (talk) 16:28, 21 March 2026 (UTC)
For a while now, I’ve had an issue where I can’t select a large range of cells that requires scrolling down without the page forcing me to scroll back up. For example, at Foreign relations of Palau, if I try to select all the countries under the “Country” column in the table, I would normally click on “Australia,” hold the button, and scroll down to “Trinidad and Tobago.” However, I’m no longer able to do this because the page keeps scrolling back up. Is anyone else experiencing this? Semsûrî (talk) 09:10, 30 March 2026 (UTC)
Hi folks. Not expecting much because I get that people are busy. I am confused with the template: is it possible to format a table so that rows after a certain point are hidden until you click [show], basically a wikitable mw-collapsible innercollapse class inside of the table, so that the section below is hidden? My attempts all broke the table. Table WIP is at User:Catcus_DeMeowwy/Chinese_herbology#Usage_of_some_Chinese_herbs for reference.
Other talk topics asking the same have no replies/solution. I have left other attemps (template:hidden_begin) in tact to show my working. Catcus DeMeowwy (talk) 11:49, 1 May 2026 (UTC)
Need option for ~ which is often used in front of numbers in tables. For example in this table:
See Template talk:Circa/doc/sortable and:
Need a version of this template for when ~ is used in front of numbers in tables.
Or better yet the mediawiki software needs to ignore ~ if data-sort-type=number is used in the column head.
See Help:Sortable tables#Forcing a column to have a particular data type. --Timeshifter (talk) 18:56, 5 May 2026 (UTC)
data-sort-value="" to the same numeric value excluding the tilde. Jroberson108 (talk) 05:42, 6 May 2026 (UTC)
@Noleander In Special:Permalink/1353013986#Water sources and sinks, there's two tables that ideally should be rendered with the same width columns without resorting to ugly hacks like fixed pixel widths (which I'm not willing to sink to). The biggest variation is in the first column, with the longest cell being 9 Mouth of Atbarah River
in the second table. Is there some way to say (in both tables) Make this column the correct width to contain "9 Mouth of Atbarah River"? That should get both of them layed out the same while still allowing the formatting to adapt to whatever local fonts and screen-size are in use. RoySmith (talk) 17:18, 7 May 2026 (UTC)
I don't know why one would want the 2 tables to have the exact same column widths.
And why are you linking to an old version of the page? When I look at the latest version (Nile#Water sources and sinks) the 2 tables are fairly similar in column widths. Except for the first column on the left.
You could force the width in various ways. See
--Timeshifter (talk) 21:33, 7 May 2026 (UTC)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.