<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://conwaylife.com/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ATables</id>
	<title>Help:Tables - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://conwaylife.com/w/index.php?action=history&amp;feed=atom&amp;title=Help%3ATables"/>
	<link rel="alternate" type="text/html" href="https://conwaylife.com/w/index.php?title=Help:Tables&amp;action=history"/>
	<updated>2026-12-04T22:54:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://conwaylife.com/w/index.php?title=Help:Tables&amp;diff=8828&amp;oldid=prev</id>
		<title>Nathaniel: New page: &#039;&#039;&#039;Tables&#039;&#039;&#039; are commonly used on LifeWiki:About to organize information into rows and columns.  Although traditional HTML tags can be used to create a table (&lt;nowiki&gt;&lt;table&gt;, &lt;tr&gt;, &lt;t...</title>
		<link rel="alternate" type="text/html" href="https://conwaylife.com/w/index.php?title=Help:Tables&amp;diff=8828&amp;oldid=prev"/>
		<updated>2009-06-16T19:25:09Z</updated>

		<summary type="html">&lt;p&gt;New page: &amp;#039;&amp;#039;&amp;#039;Tables&amp;#039;&amp;#039;&amp;#039; are commonly used on &lt;a href=&quot;/wiki/LifeWiki:About&quot; title=&quot;LifeWiki:About&quot;&gt;LifeWiki:About&lt;/a&gt; to organize information into rows and columns.  Although traditional HTML tags can be used to create a table (&amp;lt;nowiki&amp;gt;&amp;lt;table&amp;gt;, &amp;lt;tr&amp;gt;, &amp;lt;t...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Tables&amp;#039;&amp;#039;&amp;#039; are commonly used on [[LifeWiki:About]] to organize information into rows and columns.  Although traditional HTML tags can be used to create a table (&amp;lt;nowiki&amp;gt;&amp;lt;table&amp;gt;, &amp;lt;tr&amp;gt;, &amp;lt;td&amp;gt;&amp;lt;/nowiki&amp;gt;, etc.), the wiki software introduces a new set of table markup tags to simplify the process. This article focusses solely on these wiki table markup tags.&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
A simple table looks like:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! First Column !! Second Column&lt;br /&gt;
|-&lt;br /&gt;
| A cell || Another cell&lt;br /&gt;
|-&lt;br /&gt;
| More || ...and more&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The code used to produce this table is:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! First Column !! Second Column&lt;br /&gt;
|-&lt;br /&gt;
| A cell || Another cell&lt;br /&gt;
|-&lt;br /&gt;
| More || ...and more&lt;br /&gt;
|} &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The basic parts used to construct tables (as shown in this example) are:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;: creates the start of the table.  The first line, following the &amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt; tag, is used to [[#Definition|define]] the overall table.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;class=&amp;quot;wikitable&amp;quot;&amp;#039;&amp;#039;&amp;#039;: part of the table definition, this [[#Classes|class]] creates a table with a standard UESP appearance. &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;!&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;!!&amp;#039;&amp;#039;&amp;#039;: provide the text for the column [[#Header Cells|headers]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;|-&amp;#039;&amp;#039;&amp;#039;: defines the start of a new [[#Rows|row]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;: provide the text for individual [[#Cells|cells]] in the table.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;: marks the end of the table.&lt;br /&gt;
&lt;br /&gt;
==Table Structure==&lt;br /&gt;
===Definition===&lt;br /&gt;
All tables must start with &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;. The &amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt; tag must be placed at the start of a new line.&lt;br /&gt;
&lt;br /&gt;
Following the &amp;lt;nowiki&amp;gt;{|&amp;lt;/nowiki&amp;gt; tag it is possible to provide any options that you wish to apply to the overall table.  Common types of options include the table class, positioning the table on the page, and default text alignment for all cells.&lt;br /&gt;
&lt;br /&gt;
One common mistake is to forget to close the table with a &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; tag. Although the wiki will try to fix the problem, the results are generally not what you want. If you find that parts of your table are showing up in strange places on the page, make sure that you have closed all of your tables.&lt;br /&gt;
&lt;br /&gt;
===Rows===&lt;br /&gt;
To start a new row of the table, use &amp;#039;&amp;#039;&amp;#039;|-&amp;#039;&amp;#039;&amp;#039;. The |- tag must be placed at the start of a new line. The contents of the row are &amp;#039;&amp;#039;not&amp;#039;&amp;#039; provided on the same row.&lt;br /&gt;
&lt;br /&gt;
The only text that can be added following the |- tag are parameters to change the formatting of the row.  For example:&lt;br /&gt;
* |- style=&amp;quot;text-align:left&amp;quot;&lt;br /&gt;
** This makes the text in this row left-aligned.  &amp;quot;Left&amp;quot; can be replaced by &amp;quot;right&amp;quot; or &amp;quot;center&amp;quot; for right-aligned or center-aligned text, respectively.  This option applies only to the one row and will override any other options specified by the table&amp;#039;s class or in the table&amp;#039;s definition.  However, individual cells may override the general row formatting.&lt;br /&gt;
* |- valign=&amp;quot;top&amp;quot;&lt;br /&gt;
** This makes all cells in the row be vertically &amp;quot;top-aligned&amp;quot; (i.e., the text in the cells starts at the very top of the cell).&lt;br /&gt;
&lt;br /&gt;
===Cells===&lt;br /&gt;
Cells are generated either like this:&lt;br /&gt;
 |cell1&lt;br /&gt;
 |cell2&lt;br /&gt;
 |cell3&lt;br /&gt;
or like this:&lt;br /&gt;
 |cell1||cell2||cell3&lt;br /&gt;
The two types can be combined in various ways, e.g.&lt;br /&gt;
 |cel11||cell2&lt;br /&gt;
 |cell3&lt;br /&gt;
&lt;br /&gt;
Any formatting options for the cell are supplied before the cell contents and separated from the contents using a &amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039; tag.  Adding alignment options to the previous examples would be done as:&lt;br /&gt;
 |style=&amp;quot;text-align:left&amp;quot;|cell1&lt;br /&gt;
 |style=&amp;quot;text-align:center&amp;quot;|cell2&lt;br /&gt;
 |style=&amp;quot;text-align:left&amp;quot;|cell3&lt;br /&gt;
or&lt;br /&gt;
 |style=&amp;quot;text-align:left&amp;quot;|cell1 |style=&amp;quot;text-align:center&amp;quot;|cell2 |style=&amp;quot;text-align:left&amp;quot;|cell3&lt;br /&gt;
or&lt;br /&gt;
 |style=&amp;quot;text-align:left&amp;quot;|cell1 |style=&amp;quot;text-align:center&amp;quot;|cell2&lt;br /&gt;
 |style=&amp;quot;text-align:left&amp;quot;|cell3&lt;br /&gt;
&lt;br /&gt;
===Header cells===&lt;br /&gt;
Header cells are used to provide the column titles, and generally have bold text and a different background color for emphasis.  They are&lt;br /&gt;
specified similarly to standard [[#Cells]], except &amp;#039;&amp;#039;&amp;#039;!&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;!!&amp;#039;&amp;#039;&amp;#039; is used instead the opening &amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;.  When formatting is being provided for a header cell, one &amp;#039;&amp;#039;&amp;#039;!&amp;#039;&amp;#039;&amp;#039; and one &amp;#039;&amp;#039;&amp;#039;|&amp;#039;&amp;#039;&amp;#039; must be combined:&lt;br /&gt;
 !style=&amp;quot;text-align:left&amp;quot;|cell1&lt;br /&gt;
&lt;br /&gt;
Header cells can be specified anywhere in a table (e.g., the fourth column in every row could be made into a &amp;quot;header&amp;quot; format, if desired).&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
===Classes===&lt;br /&gt;
LifeWiki has some pre-defined classes that provide the tables on the site with a uniform appearance and allow editors to quickly and easily create tables without learning detailed table formatting commands.  These classes are defined in the site&amp;#039;s CSS files and can only be modified by the site&amp;#039;s [[LifeWiki:Administrators|administrators]].&lt;br /&gt;
&lt;br /&gt;
The three common classes used to specify overall table layout are:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;class=&amp;quot;wikitable&amp;quot;&amp;#039;&amp;#039;&amp;#039;: The standard table layout used for most data tables.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;class=&amp;quot;hiddentable&amp;quot;&amp;#039;&amp;#039;&amp;#039;: For tables that are used solely for organizing information where no table borders, margins, or backgrounds are desired.  In many cases, this format of table is possible simply by omitting the class option from the table definition.  However, there are situations such as nested tables where the hiddentable class is necessary.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;class=&amp;quot;toc&amp;quot;&amp;#039;&amp;#039;&amp;#039;: For manually-created tables of contents.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{| class=&amp;quot;wikitable&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;!Header 1!!Header 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|abcde||fghij&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|klmno||pqrst&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{| class=&amp;quot;hiddentable&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;!Header 1!!Header 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|abcde||fghij&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|klmno||pqrst&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{| class=&amp;quot;toc&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;!Header 1!!Header 2&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|abcde||fghij&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|klmno||pqrst&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Header 1!!Header 2&lt;br /&gt;
|-&lt;br /&gt;
|abcde||fghij&lt;br /&gt;
|-&lt;br /&gt;
|klmno||pqrst&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;hiddentable&amp;quot;&lt;br /&gt;
!Header 1!!Header 2&lt;br /&gt;
|-&lt;br /&gt;
|abcde||fghij&lt;br /&gt;
|-&lt;br /&gt;
|klmno||pqrst&lt;br /&gt;
|}&lt;br /&gt;
|&lt;br /&gt;
{| class=&amp;quot;toc&amp;quot;&lt;br /&gt;
!Header 1!!Header 2&lt;br /&gt;
|-&lt;br /&gt;
|abcde||fghij&lt;br /&gt;
|-&lt;br /&gt;
|klmno||pqrst&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Sortable Tables===&lt;br /&gt;
Another class that can be added for extra table features is &amp;#039;&amp;#039;&amp;#039;sortable&amp;#039;&amp;#039;&amp;#039;.  With this option, an icon is added to the header of each column; clicking on the icon causes the entire table to be sorted based upon the values in that column.&lt;br /&gt;
&lt;br /&gt;
{| width=100%&lt;br /&gt;
|-&lt;br /&gt;
|width=50%|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;{| class=&amp;quot;wikitable sortable&amp;quot;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;!Name!!Value!!Price&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|Alpha||42||$500.00&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|Beta||27||$2000.00&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|-&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|Gamma||3||$10.00&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|width=50%|&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Name!!Value!!Price&lt;br /&gt;
|-&lt;br /&gt;
|Alpha||42||$500.00&lt;br /&gt;
|-&lt;br /&gt;
|Beta||27||$2000.00&lt;br /&gt;
|-&lt;br /&gt;
|Gamma||3||$10.00&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can remove the sort icon from a column by giving the header the &amp;quot;unsortable&amp;quot; class, like so:&lt;br /&gt;
{| width=100%&lt;br /&gt;
|-&lt;br /&gt;
|width=50%|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Name!!Value!!Price!!class=unsortable|Notes&lt;br /&gt;
|-&lt;br /&gt;
|Alpha||42||$500.00||Found under the bed&lt;br /&gt;
|-&lt;br /&gt;
|Beta||27||$2000.00||Hiding in the closet&lt;br /&gt;
|-&lt;br /&gt;
|Gamma||3||$10.00||Above the dresser&lt;br /&gt;
|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|width=50%|&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Name!!Value!!Price!!class=unsortable|Notes&lt;br /&gt;
|-&lt;br /&gt;
|Alpha||42||$500.00||Found under the bed&lt;br /&gt;
|-&lt;br /&gt;
|Beta||27||$2000.00||Hiding in the closet&lt;br /&gt;
|-&lt;br /&gt;
|Gamma||3||$10.00||Above the dresser&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
You can also exclude a bottom row from sorting by giving it the &amp;quot;sortbottom&amp;quot; class:&lt;br /&gt;
{| width=100%&lt;br /&gt;
|-&lt;br /&gt;
|width=50%|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Name!!Value!!Price&lt;br /&gt;
|-&lt;br /&gt;
|Alpha||42||$500.00&lt;br /&gt;
|-&lt;br /&gt;
|Beta||27||$2000.00&lt;br /&gt;
|-&lt;br /&gt;
|Gamma||3||$10.00&lt;br /&gt;
|-class=&amp;quot;sortbottom&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Totals:&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;72&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;$2510&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|width=50%|&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot;&lt;br /&gt;
!Name!!Value!!Price&lt;br /&gt;
|-&lt;br /&gt;
|Alpha||42||$500.00&lt;br /&gt;
|-&lt;br /&gt;
|Beta||27||$2000.00&lt;br /&gt;
|-&lt;br /&gt;
|Gamma||3||$10.00&lt;br /&gt;
|-class=&amp;quot;sortbottom&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Totals:&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;72&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;$2510.00&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
Keep in mind that only &amp;#039;&amp;#039;one&amp;#039;&amp;#039; row can be bottom-sorted in this way, and there is no way to top-sort a row. &lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://meta.wikimedia.org/wiki/Help:Sorting Help:Sorting] at WikiMedia.org&lt;br /&gt;
* [http://meta.wikimedia.org/wiki/Help:Table Help:Table] at WikiMedia.org&lt;br /&gt;
* [http://en.wikipedia.org/wiki/Help:Table Help:Table] at [http://www.wikipedia.org/ Wikipedia]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{ContributeNavbox}}&lt;/div&gt;</summary>
		<author><name>Nathaniel</name></author>
	</entry>
</feed>