Table Style Examples: Difference between revisions
From Xen
Jump to navigationJump to search
Lars.kurth (talk | contribs) No edit summary |
Lars.kurth (talk | contribs) |
||
Line 87: | Line 87: | ||
|} |
|} |
||
<br> |
|||
== class <em>sortable</em> == |
== class <em>sortable</em> == |
||
Make a table sortable. |
Make a table sortable. |
||
<pre> |
<pre> |
||
{| class=" |
{| class="prettytable sortable" |
||
... |
... |
||
</pre> |
</pre> |
||
Line 100: | Line 101: | ||
|- |
|- |
||
! Fruit !! Price |
! Fruit !! Price |
||
⚫ | |||
⚫ | |||
|- |
|- |
||
| Apples || £0.95 |
| Apples || £0.95 |
||
|- |
|- |
||
| Oranges || £0.85 |
| Oranges || £0.85 |
||
⚫ | |||
⚫ | |||
|} |
|} |
||
Revision as of 22:07, 24 June 2013
This page contains examples of our table styles
Base Styles
class prettytable
Shopping List | |||||
---|---|---|---|---|---|
Bread & Butter | Pie | Buns | Danish | Croissant | |
Cheese | Ice cream | Butter | Yogurt |
class shadedtable
Shopping List | |||||
---|---|---|---|---|---|
Bread & Butter | Pie | Buns | Danish | Croissant | |
Cheese | Ice cream | Butter | Yogurt |
class wikitable
Shopping List | |||||
---|---|---|---|---|---|
Bread & Butter | Pie | Buns | Danish | Croissant | |
Cheese | Ice cream | Butter | Yogurt |
class zebra
Shopping List | |||||
---|---|---|---|---|---|
Bread & Butter | Pie | Buns | Danish | Croissant | |
Cheese | Ice cream | Butter | Yogurt |
Modifiers
These are table classes that modify an existing table classes behavior.
class fullwidth
Make a table the size of the page.
{| class="zebra fullwidth" ...
Example:
Fruit | Price |
---|---|
Apples | £0.95 |
class sortable
Make a table sortable.
{| class="prettytable sortable" ...
Example:
Fruit | Price |
---|---|
Pears | £1.15 |
Apples | £0.95 |
Oranges | £0.85 |