Template:Alternance

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.