Help:Lists and tables

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Pipe syntax tutorial)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
The formatting of tables is unfortunately not easy in MediaWiki. Tables are build up with a pipe syntax defining the single rows and cells. Before you start to learn that please consider the possibility to transform spreadsheet formats to wiki-syntax!
+
The formatting of tables is unfortunately not easy in MediaWiki. Tables are build up with a pipe syntax defining the single rows and cells. Before you start to learn that, please consider the possibility to transform spreadsheet formats to wiki-syntax! You can find more help for tables [[Help:tables|here]].
 
==Spreadsheet to wiki table format==
 
==Spreadsheet to wiki table format==
To convert from spreadsheets such as Gnumeric, MS Excel or OpenOffice.org Calc, go [http://people.fas.harvard.edu/~sdouglas/table.cgi here].  
+
To convert from spreadsheets such as Gnumeric, MS Excel or OpenOffice.org Calc, go [http://people.fas.harvard.edu/~sdouglas/table.cgi here]. Here you find a perfect converter that gives you wiki syntax back. Just copy the wikitext into the editor and you have your table.
 +
You can save a lot of time compared to start formatting your table directly in the editor and this method is suitable to cover a wide range of reqirements.
 +
For more special cases, e.g. if you need to conect cells, you need at least some practice with the pipe syntax.
  
 +
==Pipe syntax tutorial==
 +
To try out the pipe syntax for tables you can use the [[sandbox]].
  
 
Here you can see an example of wiki-syntax for a simple table and the resulting outcome below it:
 
Here you can see an example of wiki-syntax for a simple table and the resulting outcome below it:
Line 21: Line 25:
 
  |}
 
  |}
 
  </nowiki>
 
  </nowiki>
 
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 38: Line 41:
 
|}
 
|}
  
{{construction}}
+
For more detailed help about tables see [[Help:tables|tables]].

Latest revision as of 07:32, 18 December 2008

The formatting of tables is unfortunately not easy in MediaWiki. Tables are build up with a pipe syntax defining the single rows and cells. Before you start to learn that, please consider the possibility to transform spreadsheet formats to wiki-syntax! You can find more help for tables here.

[edit] Spreadsheet to wiki table format

To convert from spreadsheets such as Gnumeric, MS Excel or OpenOffice.org Calc, go here. Here you find a perfect converter that gives you wiki syntax back. Just copy the wikitext into the editor and you have your table. You can save a lot of time compared to start formatting your table directly in the editor and this method is suitable to cover a wide range of reqirements. For more special cases, e.g. if you need to conect cells, you need at least some practice with the pipe syntax.

[edit] Pipe syntax tutorial

To try out the pipe syntax for tables you can use the sandbox.

Here you can see an example of wiki-syntax for a simple table and the resulting outcome below it:


 {| class="wikitable"
 |-
 ! header 1
 ! header 2
 ! header 3
 |-
 | row 1, cell 1
 | row 1, cell 2
 | row 1, cell 3
 |-
 | row 2, cell 1
 | row 2, cell 2
 | row 2, cell 3
 |}
 
header 1 header 2 header 3
row 1, cell 1 row 1, cell 2 row 1, cell 3
row 2, cell 1 row 2, cell 2 row 2, cell 3

For more detailed help about tables see tables.

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox