Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

UniWiki:Editing Guide: Difference between revisions

From EVE University Wiki
Arin Mara (talk | contribs)
Moved "Works in progress" section from Wiki Curator Program to here
Arin Mara (talk | contribs)
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]]}}


Basic tables are simple to create, requiring just a few pieces of markup:
{| class="wikitable" style="width:70%"
*<pre><nowiki>{|</nowiki></pre> starts a table
| style="padding: 10px;"| <big><nowiki>{|</nowiki></big>
*<pre><nowiki>|-</nowiki></pre> starts a new row
| style="padding: 5px;"| '''table start''', ''required''
*<pre><nowiki>!</nowiki></pre> starts a new header cell (each cell must have its own line) <!-- Not true -->
|-
*<pre><nowiki>|</nowiki></pre> starts a new data cell (each cell must have its own line) <!-- Not true -->
| style="padding: 10px;"| <big><nowiki>|+</nowiki></big>
*<pre><nowiki>|}</nowiki></pre> ends the table
| 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"
|cell 1
|+ Caption text
|cell2
|cell3
|-
|-
|2nd row
! Header text 1 !! Header text 2 !! Header text 3
|another cell
|and another
|-
|-
|last row
| Example 1 || Example 2 || Example 3
|2 cells
|-
|and the third
| Example 4 || Example 5 || Example 6
|-
| Example 7 || Example 8 || Example 9
|}
|}
</nowiki></pre>
</nowiki></pre>


Produces:
Produces:
{|
{| class="wikitable"
|cell 1
|+ Caption text
|cell2
|cell3
|-
|-
|2nd row
! Header text 1 !! Header text 2 !! Header text 3
|another cell
|and another
|-
|-
|last row
| Example 1 || Example 2 || Example 3
|2 cells
|-
| and the third
| Example 4 || Example 5 || Example 6
|-
| Example 7 || Example 8 || Example 9
|}
|}
It can be desirable to add gridlines to your table, this can be done by starting the table with the following:
<pre><nowiki>{| class="wikitable"</nowiki></pre>


====See Also====
====See Also====