Template:Alternation: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(Created page with "{{#if:{{{1|}}}| {{!-}} style="{{{os|}}}" {{{1|}}} }} {{{{#if:{{{1|}}}|1x|void}}| }}{{#if:{{{2|}}}| {{!-}} style="{{#ifexpr: ({{ #ifeq: {{{1}}} || 0 | 1 }} ) mod 2 = 0 | {{{os|...") |
No edit summary |
||
Line 91: | Line 91: | ||
}}<noinclude> |
}}<noinclude> |
||
==How it works== |
==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 |
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 [http://en.wikipedia.org/wiki/Template:Alternating_rows_table_section Wikipedia's page] for more information. |
||
<pre> |
<pre> |
||
{| class="infobox" style="float:left;" |
{| class="infobox" style="float:left;" |
Latest revision as of 02:03, July 6, 2021
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 |