More actions
Moved "Works in progress" section from Wiki Curator Program to here |
Added table example and syntax |
||
| Line 110: | Line 110: | ||
{{hatnote|For full details of tables, see [[Mediawikiwiki:Help:Tables|Mediawiki's article]]}} | {{hatnote|For full details of tables, see [[Mediawikiwiki:Help:Tables|Mediawiki's article]]}} | ||
{| class="wikitable" style="width:70%" | |||
| style="padding: 10px;"| <big><nowiki>{|</nowiki></big> | |||
| style="padding: 5px;"| '''table start''', ''required'' | |||
|- | |||
| style="padding: 10px;"| <big><nowiki>|+</nowiki></big> | |||
| style="padding: 5px;" | table '''caption''', ''optional;'' only between '''table start''' and '''table row''' | |||
|- | |||
| style="padding: 10px;"| <big><nowiki>|-</nowiki></big> | |||
| style="padding: 5px;" | '''table row''', ''optional on first row'' - wiki engine assumes the first row | |||
|- | |||
| style="padding: 10px;"| <big><nowiki>!</nowiki></big> | |||
| style="padding: 5px;" | '''table header''' cell, ''optional.'' Consecutive '''table header''' cells may be added on same line separated by double marks (<code>!!</code>) or start on new lines, each with its own single mark (<code>!</code>). | |||
|- | |||
| style="padding: 10px;"| <big><nowiki>|</nowiki></big> | |||
| style="padding: 5px;" | '''table data''' cell, ''optional''. Consecutive '''table data''' cells may be added on same line separated by double marks (<code><nowiki>||</nowiki></code>) or start on new lines, each with its own single mark (<code><nowiki>|</nowiki></code>). | |||
|- | |||
| style="padding: 10px;"| <big><nowiki>|}</nowiki></big> | |||
| style="padding: 5px;" | '''table end''', ''required'' | |||
|} | |||
Example: | Example: | ||
<pre><nowiki> | <pre><nowiki> | ||
{| | {| class="wikitable" | ||
| | |+ Caption text | ||
|- | |- | ||
! Header text 1 !! Header text 2 !! Header text 3 | |||
|- | |- | ||
| | | Example 1 || Example 2 || Example 3 | ||
| | |- | ||
| | | Example 4 || Example 5 || Example 6 | ||
|- | |||
| Example 7 || Example 8 || Example 9 | |||
|} | |} | ||
</nowiki></pre> | </nowiki></pre> | ||
Produces: | Produces: | ||
{| | {| class="wikitable" | ||
| | |+ Caption text | ||
|- | |- | ||
! Header text 1 !! Header text 2 !! Header text 3 | |||
|- | |- | ||
| | | Example 1 || Example 2 || Example 3 | ||
| | |- | ||
| | | Example 4 || Example 5 || Example 6 | ||
|- | |||
| Example 7 || Example 8 || Example 9 | |||
|} | |} | ||
====See Also==== | ====See Also==== | ||