(Tables) |
(→Tables) |
||
Line 8: | Line 8: | ||
*A table can also be made sortable by adding "<nowiki>class="wikitable sortable"</nowiki>" to the opening "<nowiki>{|</nowiki>". Adding this will also lock your first row. | *A table can also be made sortable by adding "<nowiki>class="wikitable sortable"</nowiki>" to the opening "<nowiki>{|</nowiki>". Adding this will also lock your first row. | ||
For example, the following code... | ''For example, the following code...'' | ||
<nowiki> | <nowiki> | ||
Line 41: | Line 41: | ||
|}</nowiki> | |}</nowiki> | ||
...looks like this: | ''...looks like this:'' | ||
{| class="wikitable sortable" | {| class="wikitable sortable" |
Revision as of 03:06, 26 October 2009
Tables
Hello, I set up your table to be in a wiki format. If you are wondering how that works;
- The "{|" and "|}" designate the beginning and end of the table.
- Rows are designated by "|-".
- Columns are designated by either a "|" or a "!". The ! will make a cell bold, the | will not.
- A table can also be made sortable by adding "class="wikitable sortable"" to the opening "{|". Adding this will also lock your first row.
For example, the following code...
{| class="wikitable sortable"
|-
|Hello Normal
!Hello Bold
|-
!Goodbye Bold
|Goodbye Normal
|}
...looks like this:
Hello Normal | Hello Bold |
---|---|
Goodbye Bold | Goodbye Normal |