With this template rows are highlighted via cursor hover.

Non-header cells are given a white background. Cells and rows with preexisting background colors from inline CSS or templates are not effected.

Add {{Import-blanktable}} in the wikitext anywhere before the table wikitext.

Add class=tpl-blanktable to the top of the table wikitext.

To see where and how it is used:

Scroll your cursor over the tpl-blanktable tables below to see the light blue hover banding in the tables with class=tpl-blanktable.

class=tpl-blanktable produces a white background for data cells; while class=wikitable produces a gray background for data cells.

{{Import-blanktable}}
{| class=tpl-blanktable
|-
! 1 !! 2 !! 3
|-
| 1-1 || 2-1 || 3-1
|-
| 1-2 || 2-2 || 3-2
|}

produces:

1 2 3
1-1 2-1 3-1
1-2 2-2 3-2
{| class=wikitable
|-
! 1 !! 2 !! 3
|-
| 1-1 || 2-1 || 3-1
|-
| 1-2 || 2-2 || 3-2
|}

produces:

1 2 3
1-1 2-1 3-1
1-2 2-2 3-2

class=tpl-blanktable can be used in combination with class class=wikitable

Wiki source Rendered result
{{Import-blanktable}}
{| class="wikitable tpl-blanktable"
|-
! 1 !! 2 !! 3
|-
| 1-1 || 2-1 || 3-1
|-
| 1-2 || 2-2 || 3-2
|}
1 2 3
1-1 2-1 3-1
1-2 2-2 3-2

See also

编辑