Data table examples
editDate found | Feature | Link |
---|---|---|
2024-09-17 | User subpages | WP:User pages#Creating_a_subpage |
2024-09-17 | Transclusion | Transclusion |
2024-09-17 | Userboxes | Userboxes |
2024-09-27 | Edit signature | Signature tutorial |
Generic example
editcolumn header 1 | column header 2 | column header 3 |
---|---|---|
row header 1 | data 1 | data 2 |
row header 2 | data 3 | data 4 |
Alt attribute test
editCan we add an alt attribute to any image that does not have one? It turns out that we can.
Rank | Name | Score |
---|---|---|
Kathy Rowlatt (ENG) | 147.10 | |
Beverly Boys (CAN) | 134.92 | |
Susan Knight (AUS) | 134.90 | |
4 | Madeleine Haswell (WAL) | 130.74 |
5 | Robyn Bradshaw (AUS) | 130.18 |
6 | Cathy McDonald (CAN) | 121.67 |
7 | Betsy Sullivan (JAM) | 70.61 |
Sorting
editIt turns out that there is no need for leading zeroes or any sorting templates for columns of numbers to be sortable in a table. However, if we want names to be sortable by surname (for example), use 'data-sort-value="surname, forename" | forename surname'
Rank | Name | Nationality | Distance | Notes |
---|---|---|---|---|
George Puce | Canada | 59.02 | ||
Les Mills | New Zealand | 57.84 | ||
Bill Tancred | England | 56.68 | ||
4 | Arthur McKenzie | England | 55.34 | |
5 | Zigurd Stauts | Canada | 55.20 | |
6 | Robin Tait | New Zealand | 53.82 | |
7 | Joe Antunovich | New Zealand | 53.50 | |
8 | Mike Cushion | England | 51.34 | |
9 | Mike Lindsay | Scotland | 50.94 | |
10 | Dave Steen | Canada | 50.64 | |
11 | John Walters | Wales | 48.06 | |
12 | Yovan Ochola | Uganda | 44.98 | |
13 | Imbert Roberts | Saint Lucia | 37.28 | |
Praveen Kumar | India | DNS |
References
edit- ^ Groom 2017, p. 221.