Creating tables in a wiki can be surprisingly simple once you get the hang of it. You can of course use html to generate tables as well but once you get familiar with wiki tables you may want to switch over as they are easier to maintain and less intimidating to the non-html initiated.
Creating tables using wiki syntax
The following table was made with:
{| class="wikitable" |+ Table Caption !width="10%"|Header 1 !width="10%"|Header 2 !width="10%"|Header 3 !width="70%"|Header 4 |- | Cell 1 || Cell 2 || Cell 3 || Cell 4 |- | Cell 5 || Cell 6 || Cell 7 || Cell 8 |- | Cell 9 || Cell 10 || Cell 11 || Cell 12 |- | Cell 13 || Cell 14 || Cell 15 || Cell 16 |}
Header 1 | Header 2 | Header 3 | Header 4 |
---|---|---|---|
Cell 1 | Cell 2 | Cell 3 | Cell 4 |
Cell 5 | Cell 6 | Cell 7 | Cell 8 |
Cell 9 | Cell 10 | Cell 11 | Cell 12 |
Cell 13 | Cell 14 | Cell 15 | Cell 16 |
The pretty styling happens by calling class="wikitable". This css must added to your Mediawiki:Common.css page. See this wiki's Common.css for an example.
- See also
Copying and pasting table data from other applications
Table data can be copied and pasted into mediawiki, however if you want to maintain the table formatting you will need to convert it to wiki table syntax. The easiest way to that is to use the wikED extended toolbar.
- make sure you've enabled the wikED extended toolbar
- Copy your data from Excel and paste into your wiki page
- Select the pasted in text and click the [W] wiki formatting button to convert your table to wiki table syntax