TablesHowto
From NagiosCommunity
So what's all this table stuff? To keep all the documenation and information looking neat and tidy, tables similar to HTML tables are used. MediaWiki uses its own syntax which then transform the tables into HTML formatting. This in return displays a table in your browser. This can be a bit tricky since most people are used to HTML standards.
Contents |
Start/End Tag Tables
A table must start with {| and contain text for formatting rules for your cells, and then end with |}.
{| "params" |}
Please take note to the spaces. These have to be included otherwise MediaWiki will ignore the start of the table.
Starting Rows
To start a new row:
|-
Cells
To insert cells:
|This is a cell
|This is another cell
|This is the last cell
Or similarily:
|This is a cell || Another cell || And another cell
Adding Headers
To add a header, enter an exclamation point (!) followed by any parameters, and lastly the header name:
!parameters|cell
Example
| What it looks like | What you type | ||||||
|---|---|---|---|---|---|---|---|
|
{| border="1" cellpadding="1"
!width="40"|header1
!width="40"|header2
!width="40"|header3
|-
|cell1 || cell2 || cell3
|-
|}
|
Nagios Wiki Table Styles
| What it looks like | What you type | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
{| border="1" cellpadding="1" style="text-align:center"
!style="background:#98b636;" width="50"|Description
!style="background:#98b636;" width="50"|Contributor
!style="background:#98b636;" width="50"|Language
!style="background:#98b636;" width="50"|Format
|-
|Enter your description into here || Who? || English || What kind of file?
|-
|More descriptions || You? || Spanish || PDF
|}
|
This is tables in nutshell. If you need or want more details, visit the tables section on MediaWiki. Please remember to at least keep the table colors and basic formatting rules the same to ensure a uniform look here on the Nagios wiki. Have fun, and thanks for contributing documentation and information to the Nagios project!

