模板: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
编辑上述文档嵌入自Template:Import-blanktable/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |