Jump to content

Help talk:Table

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Note: You can also ask questions here: Help desk. Teahouse. Village pump (technical).

Laugh of the day: Pros and cons

[edit]

I had to laugh, when I looked over at Help:Table/Advanced, and read the part you linked to that just got moved over to Help:Table/Advanced#Other table syntax (diff), including the part that lists the pros and cons of HTML tables versus wikicode syntax. In the row labeled "Pros" for the cell in the Wiki-pipe column (who named it that?) it lists "easy to read", and "easy to write"; I nearly had coffee coming out of my nose.

I searched back in Help:Table to see when that was first added, and it goes all the way back to the first version of Help:Table in revision 12094880 of 19:00, 20 September 2004 by Wilz (talk · contribs). Seriously made me want to add a laughing man gif or something, right after that part. Yah, it's so easy to read and write, that we only have twenty-six Help and style pages with intricate explanations of features and styles explaining how to do it, including how to have your pipe, and smoke it, too! Lol! But twenty years on and some 2500 edits by 600+ editors later explaining how easy it is, maybe it's time to change that. (On a more serious note, I've been thinking about a way to vastly reduce the size and number of help pages, but it's more of a long-term thing and not something that affects anything we are doing; I have to mull about it for "a while".)

Oh, I forgot to mention the funniest part: if you edit the § Overview section in that revision and look at that table—yep, you guessed it: it's coded in HTML. Guess it was too complex for "wiki-pipe syntax". Hope you enjoyed the chuckle. Mathglot (talk) 02:54, 9 February 2025 (UTC)[reply]

Header cell translation

[edit]

For translation, tables with identical header cells could be translated once and used several times in the ddme article.

For example, in List of Dongfeng vehicles, there are several tables with the same headers (structure).

One could use :

{| class="wikitable sortable translatable"

In the Voyah table, for the First header could stablish that:

Image, in the Spanish version is "Imagen"

For the second, Name(s) is "Nombre(s)" and so on for the full header structure of tehe table.

So, the second time this table structure is used for the M-Hero table, Imagen is automatically translated to Imagen (in the Spanish Wikipedia), Names to Nombres an so on.

This spares a lot of writer effort. 158.172.131.78 (talk) 21:41, 23 February 2025 (UTC)[reply]

Need help

[edit]

Can someone correct the first table at 2025 Greenlandic general election? Can't figure out how to fix it. Thanks. Semsûrî (talk) 17:25, 2 March 2025 (UTC)[reply]

@Semsûrî: There were too many rowspan= and colspan= attributes. The fix is to remove them all, and then add in only those that are necessary; which turned out to be just one - the one for the "Party" column heading. --Redrose64 🌹 (talk) 20:27, 2 March 2025 (UTC)[reply]
Thank you. Semsûrî (talk) 20:29, 2 March 2025 (UTC)[reply]

Rates per million. Change to rates per 100,000

[edit]

See: United States drug overdose death rates and totals over time#Comparisons to other countries in Europe.

The rates in the US tables are per 100,000. So I want to convert the rates in the Europe table below from "per million" to "per 100,000". That means moving the decimal place one place to the left. Can someone do this for me?

Better yet can someone explain exactly how to do it step by step in Libreoffice Calc. I will put this info in a section in Help:Table/Advanced or another table help page.

Drug-induced mortality rates per million among adults (15-64), females, males and total.[1]
Location Year Females Males Total
 Austria 2022 18 65 42
 Belgium 2020 7 34 21
 Bulgaria 2022 1 8 4
 Croatia 2022 13 71 42
 Cyprus 2022 3 13 8
 Czech Republic 2022 6 12 9
 Denmark 2021 19 60 40
 Estonia 2022 34 155 95
 Finland 2022 33 106 70
 France 2016 3 16 9
 Germany 2022 10 49 30
 Greece 2020 10 58 34
 Hungary 2021 3 9 6
 Ireland 2020 64 130 97
 Italy 2022 2 13 8
 Latvia 2022 12 96 53
 Lithuania 2022 10 86 47
 Luxembourg 2022 5 31 18
 Malta 2020 6 43 26
 Netherlands 2022 13 40 26
 Norway 2022 53 118 86
 Poland 2021 5 11 8
 Portugal 2021 4 19 11
 Romania 2022 1 3 2
 Slovakia 2021 3 12 7
 Slovenia 2022 16 74 46
 Spain 2021 7 34 21
 Sweden 2022 35 102 70
 Turkey 2022 1 7 4

References

  1. ^ "Overdose situation (FAQ drug overdose deaths in Europe)". European Union Drugs Agency. Scroll down to Figure 1.5. Then; "Show data table".

--Timeshifter (talk) 14:57, 6 March 2025 (UTC)[reply]

I figured out how to do it in free Google Sheets, freeware LibreOffice Calc, and free Excel online.
See: User:Timeshifter/Sandbox284.
--Timeshifter (talk) 22:11, 10 March 2025 (UTC)[reply]
Simplified instructions are here:
Help:Creating tables#Rates per million or per 100,000.
--Timeshifter (talk) 00:56, 13 March 2025 (UTC)[reply]

Template:Scrolling table doc

[edit]

See the rarely used templates listed in this doc:

There are better methods here:

I am leaving a note here in hopes some others will look and see if I am correct.

If so, someone with more time than me might put the templates up for deletion here:

I suggested the same here:

--Timeshifter (talk) 11:45, 8 April 2025 (UTC)[reply]