Help:Tables: Difference between revisions

Jump to navigation Jump to search
→‎Sortable tables: Use of class="unsortable"
(→‎Sortable tables: Use of class="unsortable")
Line 137: Line 137:


== Sortable tables ==
== Sortable tables ==
Tables can be made sortable by using the attribute <code>class="wikitable sortable"</code> istead of <code>class="wikitable"</code>.
Tables can be made sortable by using the attribute <code>class="wikitable sortable"</code> instead of <code>class="wikitable"</code>.


<pre>
Columns can be made non-sortable using the attribute <code>class="unsortable"</code>.
{| class="wikitable sortable"
 
! Cell one !! Cell two !! Cell three
<nowiki>{| class="wikitable sortable"
! Cell one !! Cell two
! class="unsortable" | Cell three
|-
|-
| Cell four || Cell five || Cell six
| Cell four || Cell five || Cell six
|-
|-
| Cell seven || Cell eight || Cell nine
| Cell seven || Cell eight || Cell nine
|}
|}</nowiki>
</pre>


{| class="wikitable sortable"
{| class="wikitable sortable"
! Cell one !! Cell two !! Cell three
! Cell one !! Cell two
! class="unsortable" | Cell three
|-
|-
| Cell four || Cell five || Cell six
| Cell four || Cell five || Cell six

Navigation menu