Help:Wiki markup, tables

From Clubnix.net

Jump to: navigation, search

When you need to edit an existing table try not to remove the { | |- and } characters at the start of the line. Then you won't disrupt the table formatting. And the cell boundaries will stretch nicely to make the new text fit. Below are two examples how to create tables.

[edit] Example 1

  • You type
{|
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}
  • You get
Orange Apple
Bread Pie
Butter Ice cream

[edit] Example 2

  • You type
{| style="color:black; background-color:#FFFF00;" cellpadding="4" cellspacing="0" border="1"
|Orange
|Apple
|-
|Bread
|Pie
|-
|Butter
|Ice cream 
|}
  • You get
Orange Apple
Bread Pie
Butter Ice cream
  • Experimentation is the quickest way to find out how everything works. You can click edit to edit this very wiki page and use Show preview to experiment without really changing this page.

[edit] Example 3

  • For table you may use HTML markup instead of wiki markup. Most of the time the wiki markup is mandatory when using the MediaWiki software.
  • You type
<table style="color:black; background-color:#FFFF00;" cellpadding="4" cellspacing="0" border="1">
<tr>
<td>Orange</td>
<td>Apple</td>
</tr>
<tr>
<td>Bread</td>
<td>Pie</td>
</tr>
<tr>
<td>Butter</td>
<td>Ice cream</td>
</tr>
  • You get
Orange Apple
Bread Pie
Butter Ice cream
Personal tools