November 4th, 2019

🕒 Wiki Weekly #25! 🕑

It's November!
We've listed pages that need some love. Take a look!

Latest Announcements

Template:AltTable

From Zelda Wiki, the Zelda encyclopedia
Jump to: navigation, search

Usage

This template allows for the creation of tables with alternating row or column color. To use it, add the following to any part of the page (preferably the top):
    {{AltTable}}

Then add class="altrow" or class="altcol" after opening a table.

Note:

  • This only works on browsers that support CSS3. For those that do not, it displays a table with the regular "wikitable" style.
  • The template is only required once per page
  • The coloring may mess up on complex tables that involve "rowspan" and "colspan"

Examples

{| class="altrow"
|-
| Some || content
|-
| to || display.
|-
| This || is
|-
| exciting, || eh?
|}
Some content
to display.
This is
exciting, eh?
{| class="altcol"
|-
!colspan=2| Set 1
!colspan=2| Set 2
|-
| 1 || 2 || 3 || 4
|-
| 4 || 3 || 2 || 1
|}
Set 1 Set 2
1 2 3 4
4 3 2 1
{| class="altrow sortable"
|-
! Column 1
! Column 2
|-
| 1 || 4
|-
| 2 || 3
|-
| 3 || 2
|-
| 4 || 1
|}
Column 1 Column 2
1 4
2 3
3 2
4 1