Misplaced Pages

Template:Aligned table/doc

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Aligned table

This is an old revision of this page, as edited by Sardanaphalus (talk | contribs) at 18:10, 6 May 2014 (alternate parameter names (with "" as reminder for "column" and "" for row), Default and Examples columns). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Revision as of 18:10, 6 May 2014 by Sardanaphalus (talk | contribs) (alternate parameter names (with "" as reminder for "column" and "" for row), Default and Examples columns)(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Aligned table.
It may contain usage information, categories and other content that is not part of the original template page.
This template uses Lua:

Usage

{{Aligned table
| cols = N
| class =
| style =
| colalignX = 
| colstyleX = 
| .. | ..
}}
Parameter Description Example/s Default
cols Number of columns in the table. |cols=4 2
class Class for the table. |class=wikitable  |class=infobox  |class=sidebar  etc. none
style Styling for the table. |style=background:transparent;
|style=width:100%;background:transparent;
etc.
none
fullwidth Set to anything Template:95% to ensure table spans entire width available.
Template:95%
|fullwidth=on not set
colclass Class for the cells in column no. . |col1class=navbox-group none
colalign Alignment (left, right, center) for column 's cell contents. |col4align=right center
leftright Set to anything Template:95% to set Template:95% and Template:95%. |leftright=on not set
colstyle Styling for column 's cells. |col3style=white-space:nowrap; none
colnowrap Set to anything Template:95% to add white-space:nowrap to column 's cell styling
(i.e. prevent lines within its cells from wrapping).
|col1nowrap=on not set
rowclass Class for the cells in row . |row10class=navbox-abovebelow none
rowstyle Styling for cells in row . |row1style=font-weight:bold; none
class. Class for the cell in row , column . Overrides any other class attribution Template:95%. none
style. Styling for the cell in row , column . Overrides any more generalized styling Template:95%. none
Unnamed parameters Each unnamed parameter is taken to be the next cell in the table, working top-to-bottom, left-to-right and starting from the table's top left corner.

Examples

{{Aligned table
|class=wikitable
|cols=2
| A | 1
| B | 2
}}
A 1
B 2
{{Aligned table
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2
{{Aligned table
|style=width:20em
|colalign1=center
|colalign2=right
|class=wikitable
|cols=2
| AAA | 123
| B | 2
}}
AAA 123
B 2

See also