Jump to content

Template:Alternance

From Meta, a Wikimedia project coordination wiki
Template documentation

Classes allowing alternating line colors in tables according to the number of header lines:

  • .alternance if odd number
  • .alternance2 if even number.

.sortable: sortable tables require reversing the alternance.

Use

Add this template above any table that you want to have alternating colors.

Add the appropriate class to the table.