Help:Tables
From AcmlmWiki
Tables can be used for multiple purposes. Their main purpose though is to list old award winners, hacking data, or similar. AcmlmWiki provides two methods to use tables.
[edit] The MediaWiki method
The MediaWiki method is the preferred method to use tables, since it is relatively easy to read and change. This is an example table written in MediaWiki code:
{|
! Test heading
! Test heading 2
|-
| Test content
| test content 2
|}
{| marks the beginning of a table. HTML parameters for normal tables can also go here. After this, use ! to create table headings (they are bold) and | to create table fields. |- creates a new row, and |} closes the table.
[edit] The HTML method
It is often better to use MediaWiki code, but if you know HTML, this method creates much more possibilities. Here is an example table, written in HTML:
<table> <tr> <th>Test heading</th> <th>Test heading 2</th> </tr><tr> <td>Test content</td> <td>Test content 2</td> </tr> </table>
<table> marks the beginning of a table, and table attributes can also be defined here. <tr> creates a row, <th> a table heading (in bold), and <td> a normal table field. All of these must also be closed like in the example. (and all of these elements can contain attributes).
Note that there is much more to HTML tables, though this is a completely unrelated topic. If you want to know more about HTML tables, check a HTML tutorial.
| AcmlmWiki Help | |
|---|---|
|
Basic editing | Links and Images | Tables | HTML | Talk Pages | Templates |
