HandWiki:Help/Tables

From HandWiki


Showing table

HandWiki uses the standard Mediawiki markup to create tables. For example, this table standard table:

Orange Apple Peach
Bread Pie Peach
Butter Ice cream Table

was created using this code:

{|
|Orange
|Apple
|Peach
|-
|Bread
|Pie
|Peach
|-
|Butter
|Ice cream
|Table 
|}

Here is another example that includes styling:

Food complements
Orange Apple
Bread Pie
Butter Ice cream

which is programmed as:

{| class="wikitable"
|+Food complements
|-
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}

Showing tables with headers

Tables can include headers like this:

Item Amount Cost
Orange 10 7.00
Bread 4 3.00
Butter 1 5.00

Showing referenced tables

In addition, one can reference tables using CrossReference method. Here is a sentence that has a reference to a table:

This example shows <xr id="tab:T1"/>.

<figtable id="tab:T1">

Orange Apple Peach
Bread Pie Peach
Butter Ice cream Table

My caption of this table </figtable> Note that <xr id="tab:T1"/> is "clickable" for easy referencing this table in any place of the article. The markup code that creates this sentence and the table is shown below:

This example shows <xr id="tab:T1"/>.

<figtable id="tab:T1">
{|
|Orange
|Apple
|Peach
|-
|Bread
|Pie
|Peach
|-
|Butter
|Ice cream
|Table 
|}
<caption>My caption of this table</caption>
</figtable>