Шаблон:Wikitable
Изглед
"Wikitable" refers to Wikipedia's wp:table structure, like HTML <table>.
Usage
[уреди извор]|
Example A {| class="wikitable"
! Column 1
! Column 2
! Column 3
! Column 4
|- style="text-align:center;"
| AA
| BB
| CC
| rowspan=3 | Xx
|- style="text-align:right;"
| DD
| ee
| FF
|-
| colspan=4 | bottom row text
|}
|
Example B {| class="wikitable"
! Column 1 !! Column 2 !! Column 3 !! Column 4
|- style="text-align:center;"
| AA || BB || CC || rowspan=3 | Xx
|- style="text-align:right;"
| DD || ee || FF
|-
| colspan=4 | bottom row text
|}
|
Both Examples provide the same result:
| Column 1 | Column 2 | Column 3 | Column 4 |
|---|---|---|---|
| AA | BB | CC | Xx |
| DD | ee | FF | |
| bottom row text | |||
Parameters
[уреди извор]| {| |
Table start |
required. |
|---|---|---|
| |+ |
Table caption |
optional.
Only between table start and first table row. |
| |- |
Table row |
optional.
Can be omitted on the first row. |
| ! |
Table header cell |
optional.
Consecutive table header cells may be added on same line separated by double marks ( |
| | |
Table data cell |
optional.
Consecutive table data cells may be added on same line separated by double marks ( |
| |} |
Table end |
required. |
Style modifiers
style="vertical-align:[top, bottom];"→ aligns items vertically. Either top, or bottom.style="font-size:100%;"→ begin row, setting font size for all cellsstyle="text-align:right;"→ begin column, text aligned right (bar "|" means column)