模板: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子頁面中添加分類。本模板的子頁面。 |