Help:Table

From WikiMD's Wellness Encyclopedia

Help:Table‏‎

A table is a structured set of data made up of rows and columns (tabular data). A table allows data to be organized in a visual format that is easy to understand and interpret. In MediaWiki, tables are used to present data in a structured manner, and can be created and modified using specific syntax.

Creating a Table in MediaWiki[edit | edit source]

To create a table in MediaWiki, you use the following syntax:

```

Header 1 Header 2
Row 1, cell 1 Row 1, cell 2
Row 2, cell 1 Row 2, cell 2

```

This will create a table with two columns and two rows. The "wikitable" class gives the table a standard style, with borders around the cells. The "!" character is used to create headers, and the "|" character is used to create cells.

Modifying a Table in MediaWiki[edit | edit source]

To modify a table in MediaWiki, you can add or remove rows and columns, change the style of the table, and add links and other content to the cells. Here is an example of a table with added rows, a changed style, and links in the cells:

```

Header 1 Header 2
Row 1, cell 1 Row 1, cell 2
Row 2, cell 1 Row 2, cell 2
Row 3, cell 1 Row 3, cell 2

```

This table has three rows, and the width of the table is set to 50% of the page width. The cells contain links to other pages.

See Also[edit | edit source]


Contributors: Prab R. Tumpati, MD