Jump to content

Help:Introduction to tables with Wiki Markup/3

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codename Lisa (talk | contribs) at 12:49, 7 November 2014 (Deleted prose related to 'border="1"'. This HTML element is long deprecated. The export to another wiki allegation is wrong; this almost never happens because of the browser's default.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Editing tables
The basics

Expanding tables
Adding rows and columns

Summary
Review of what you've learned


Columns can be sorted by adding the sortable class:

{| class="wikitable sortable"
|-
! name
! data
! more data
|-
| cats
| 273
| 53
|-
| dogs
| 65
| 8,492
|-
| mice
| 1,649
| 548
|}

name data more data
cats 273 53
dogs 65 8,492
mice 1,649 548

Clicking on the up/down arrows in a column header will sort the column; clicking again will reverse the sort. Columns containing text will be sorted alphabetically; columns containing numbers will be sorted numerically. Columns containing mixed data will be sorted alphabetically. For advanced sort options, see Help:Sorting.