Jump to content

Template:Aligned table/doc

Wikipedia se
{{aligned table
| cols = N
| class =
| style =

| alignX = 
| styleX = 

| .. | ..
}}
Parameter Description
colsThe number of columns in the table (default is 2)
classThe class for the table (e.g., wikitable, infobox, sidebar, ...)
styleThe style for the table (e.g., width:100%)
fullwidthAny nonblank value will remove border spacing and add width:100% to the style for the table
alignXThe alignment for the cells in column X (e.g., left, right, center)
classXThe class for the cells in column X (e.g., navbox-group)
styleXThe style for the cells in column X (e.g., white-space:nowrap)
nowrapXAny nonblank value will add white-space:nowrap to the style for column X
rowclassYThe class for cells in row Y (e.g., navbox-abovebelow)
rowstyleYThe style for cells in row Y (e.g., font-weight:bold)
classY.XThe class for the cell in row Y and column X (e.g., navbox-group)
styleY.XThe style for the cell in row Y and column X (e.g., white-space:nowrap)
leftrightAny nonblank value will set align1 = left and align2 = right
Unnamed parametersThe remaining unnamed parameters are the entries for the table

Examples

[source ke badlo]
{{aligned table
|class=wikitable
|cols=2
| A | 1
| B | 2
}}
A 1
B 2
{{aligned table
|align1=center
|align2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2
{{aligned table
|style=width:20em
|align1=center
|align2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2