模板:Import-blanktable/doc
此页面是Template:Import-blanktable的模板文档。 此页面可能包含了模板的使用说明、分类和其他内容。 |
本模板使用以下模板样式: |
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
|}
|
|
See also
编辑