Help:Tables
From STNE Wiki
STNE is a Strategy and Role Play Game. You can play here.
Contents | STNE | Colonies | Buildings | Goods | Items | NPC | Ships | Stellar Cartography | Research | Trade | Combat | Settler | Alliances | Index |
---|
Navigation
Page Editing
- Edit a page
- Start a new page
- Rename/Move a page
- Redirect a page
- Version History
- Delete a page
- Restore a page
Wiki-Syntax
Wiki Management
Tables can be used within the wiki to present data in a tabular format. While most pages have templates set up for this purpose (for more information see Help:Templates) it may be necessary in some circumstances to add custom tables to a page, for this you need to use wiki syntax.
Basic Syntax
Basic Syntax | |
---|---|
Description | Syntax |
Start Table | {| Attributes (If needed) |
Table Header | !Header goes here |
Table Cell | | Attributes (If Needed) | Text/Images |
New Row | |- |
End Table | |} |
Basic table syntax is shown in the table to the right, there are 5 main things needed when creating tables. Firstly the table needs to be started for this {| is used.
Next to add a header ! is used, this is then repeated (on new lines) depending on the amount of columns wanted. For example
!Header Goes Here
To create a new row |- is then needed.
Then a standard cell simply needs a vertical bar | to start it. For example
|Cell Contents goes here
Then to end the table is simply the reverse of starting the table |}
An Example
{| !Heading 1 !Heading 2 |- |Row 1, Column 1 |Row 1, Column 2 |- |Row 2, Column 1 |Row 2, Column 2 |}
Heading 1 | Heading 2 |
---|---|
Row 1, Column 1 | Row 1, Column 2 |
Row 2, Column 1 | Row 2, Column 2 |