Search results
Results From The WOW.Com Content Network
data-sort-type:text - Sort the following table to see an example of the alphabetic sort order. Note that sorting is case-insensitive: the two-character entries such as A1 demonstrate that A and a are at the same position.
The two most commonly used classes are "wikitable" and "wikitable sortable"; the latter allows the reader to sort the table by clicking on the header cell of any column. |+ caption Required for accessibility purposes on data tables, and placed only between the table start and the first table row. ! header cell Optional.
To start a new table row, type a vertical bar and a hyphen on its own line: "|-". The codes for the cells in that row start on the next line. An id for § anchoring in-links, and § row style may be included on the same line. {| |+ The table's caption |-row code goes here |-next row code goes here |}
If a table is created in Visual Editor, the dialog includes a checkbox to "Make table sortable". If you check this box, then a reader can sort the table by any column, by clicking on the header cell for that column. Existing tables, or tables created in wikitext can be made sortable by adding the wikitable sortable class to the top of the table:
See the section on putting a table in initial alphabetical order. You can move rows around in VE, but it would be slow to do an initial sort of a country list that way. Many things can be done in spreadsheet programs that can not be done on wiki. Select and copy a table right off of a page (do not go into the wikitext or the HTML).
Normally, copying and pasting columns or rows removes the inline CSS styling such as cell colors. There is a way to break up a table (a too-wide table for example) into more tables without losing all the background colors, and other inline styling. Copy the table to 2 sandboxes (or one sandbox, and in the article itself).
Lists and tables are two different ways to format multiple, similar items on a page. Lists and HTML tables go back to Wikipedia's early days. The current wikicode tables (see the section about tables), which you can edit more easily and even sort, came later. You'll find many more lists than tables on Wikipedia.
This template is for manually adjusting sorting order in sortable tables by specified sortkeys. Usage {{Sort | 1 = {{{sort value}}} | 2 = {{{displayed value}}} }} → {{{displayed value}}} The first parameter is the sortkey; the second parameter is the wikitext of what has to be displayed. By default, this is the sortkey with link brackets: