Template:Alternation

From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search

How it works

This template works for alternate the color of the rows in a table. Although it works for all type of table, this should be used for such tables used as templates. The options es and os within the template mean the even and odd number of sections that will appear in the table. Visit Wikipedia's page for more information.

{| class="infobox" style="float:left;"
! colspan="2" style="background:silver;" | AFC North
{{Alternation|es=background:gainsboro;
| {{!}} Ravens  {{!!}} Baltimore
| {{!}} Bengals {{!!}} Cincinnati
| {{!}} Browns {{!!}} Cleveland
| <!-- Empty! -->
| {{!}} Steelers {{!!}} Pittsburgh
}}
|-
! colspan="2" style="background:Steelblue;" | AFC East
{{Alternation|es=background:aliceblue;
| {{!}} Bills {{!!}} Buffalo
| {{!}} Dolphins {{!!}} Miami
| <!-- empty! -->
| {{!}} Patroits {{!!}} New England
| {{!}} Jets {{!!}} New York
}}
|}
AFC North
Ravens Baltimore
Bengals Cincinnati
Browns Cleveland
Steelers Pittsburgh
AFC East
Bills Buffalo
Dolphins Miami
Patroits New England
Jets New York