{{aligned table
| cols = N
| class =
| style =
| alignX =
| styleX =
| .. | ..
}}
| Parameter |
Description |
cols | The number of columns in the table (default is 2) |
class | The class for the table (e.g., wikitable, infobox, sidebar, ...) |
style | The style for the table (e.g., width:100%) |
fullwidth | Any nonblank value will remove border spacing and add width:100% to the style for the table |
alignX | The alignment for the cells in column X (e.g., left, right, center) |
classX | The class for the cells in column X (e.g., navbox-group) |
styleX | The style for the cells in column X (e.g., white-space:nowrap) |
nowrapX | Any nonblank value will add white-space:nowrap to the style for column X |
rowclassY | The class for cells in row Y (e.g., navbox-abovebelow) |
rowstyleY | The style for cells in row Y (e.g., font-weight:bold) |
classY.X | The class for the cell in row Y and column X (e.g., navbox-group) |
styleY.X | The style for the cell in row Y and column X (e.g., white-space:nowrap) |
leftright | Any nonblank value will set align1 = left and align2 = right |
| Unnamed parameters | The remaining unnamed parameters are the entries for the table |
{{aligned table
|class=wikitable
|cols=2
| A | 1
| B | 2
}}
{{aligned table
|align1=center
|align2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
{{aligned table
|style=width:20em
|align1=center
|align2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}