Chrono Wiki:Manual of Style: Difference between revisions
From Chrono Wiki, a database for the Chrono series that anyone can edit
→Tables
(→Tables) |
|||
Line 71: | Line 71: | ||
=== Tables === | === Tables === | ||
Tables should use | Tables should use a "class" design when possible, and should include as little 'fancy' formatting as possible. Tables can also be made sortable by adding a "sortable" class. | ||
For long tables, it is recommended to | For long tables, it is recommended to create an "alt" class to alternate row colours to enhance readability. | ||
==== With row headings, table caption, sortable ==== | ==== With row headings, table caption, sortable ==== | ||
Line 80: | Line 80: | ||
|- | |- | ||
| | | | ||
{| class=" | {| class="toccolours sortable" | ||
|+ I am a caption | |+ I am a caption | ||
|- | |- | ||
Line 99: | Line 99: | ||
| | | | ||
<code style="font-size:90%"> | <code style="font-size:90%"> | ||
<nowiki>{|</nowiki> class=" | <nowiki>{|</nowiki> class="toccolours sortable"<br/> | ||
<nowiki>|+</nowiki> I am a caption<br/> | <nowiki>|+</nowiki> I am a caption<br/> | ||
<nowiki>|-</nowiki><br/> | <nowiki>|-</nowiki><br/> | ||
Line 124: | Line 124: | ||
|- | |- | ||
| | | | ||
{| class=" | {| class="toccolours" | ||
|- | |- | ||
! Heading one || Heading two || Heading three | ! Heading one || Heading two || Heading three | ||
Line 131: | Line 131: | ||
| Row data 2 | | Row data 2 | ||
| Row data 3 | | Row data 3 | ||
|- class="alt" | |- <!-- class="alt" --> style="background-color:#77a;" | ||
| Row data 1 | | Row data 1 | ||
| Row data 2 | | Row data 2 | ||
Line 139: | Line 139: | ||
| Row data 2 | | Row data 2 | ||
| Row data 3 | | Row data 3 | ||
|- class="alt" | |- <!-- class="alt" --> style="background-color:#77a;" | ||
| Row data 1 | | Row data 1 | ||
| Row data 2 | | Row data 2 | ||
Line 146: | Line 146: | ||
| | | | ||
<code style="font-size:90%"> | <code style="font-size:90%"> | ||
<nowiki>{|</nowiki> class=" | <nowiki>{|</nowiki> class="toccolours"<br/> | ||
<nowiki>|-</nowiki><br/> | <nowiki>|-</nowiki><br/> | ||
<nowiki>!</nowiki> Heading one || Heading two || Heading three<br/> | <nowiki>!</nowiki> Heading one || Heading two || Heading three<br/> |