Шаблон:Wikitable

С Википедије, слободне енциклопедије
Документација шаблона[прикажи] [уреди] [историја] [освежи]

"Wikitable" refers to Wikipedia's wp:table structure, like HTML <table>.

Usage[уреди извор]

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 (!!); or start on new lines, each with its own single mark (!).

|

Table data cell

optional.

Consecutive table data cells may be added on same line separated by double marks (||) or start on new lines, each with its own single mark (|). This mark is also used to separate HTML attributes from cell and caption contents.

|}

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 cells
  • style="text-align:right;"    → begin column, text aligned right (bar "|" means column)