Template:Import-blanktable
Jump to navigation
Jump to search
This template is currently being merged with Template:Row hover highlight. This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following this discussion initiated on 4 July 2022 at Templates for discussion. Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging. |
This template uses TemplateStyles: |
Usage
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:
|
{| class=wikitable
|-
! 1 !! 2 !! 3
|-
| 1-1 || 2-1 || 3-1
|-
| 1-2 || 2-2 || 3-2
|}
produces:
|
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
|}
|
|