Template:Aligned table/doc

From blackwiki
< Template:Aligned table
Revision as of 15:04, 24 February 2015 by blackwiki>Frietjes (→‎Parameters)
Jump to navigation Jump to search

The purpose is of this template is for generating simple tables in locations where standard table markup is either not possible, without significant use of the {{!}} magic word (e.g., with a {{sidebar}} template), or cumbersome (due to the repetitive use of specification of the same style statement in each row). This template should not be used to replace standard table markup in articles. This template is meant to be complimentary to {{infobox}} or {{sidebar}}, and not a replacement for {{infobox}} or {{sidebar}}.

Full syntax

For parameter explanations, see table below.

{{Aligned table
| cols = 
| fullwidth = 
| class = 
| style = 
| colwidth = 
<!--| colclass = -->
| leftright = 
| colstyle =
| rowstyle = 

<!--for Cth column:-->
| colCwidth = 
| colCclass = 
| colCalign = 
| colCstyle = 
| colCnowrap = 

<!--for Rth row:-->
| rowRclass = 
| rowRstyle = 

<!--for cell R,C:-->
| classR.C = 
| styleR.C = 

| (cell 1,1) | (cell 1,2) | ... | ...
}}

Parameters

Script error: No such module "aligned table".

Examples

{{Aligned table
|cols=3 |class=wikitable
| A | 1 | a
| B | 2 | b
}}

Script error: No such module "aligned table".

{{Aligned table
|cols=4 |class=wikitable
|col1align=center |col2align=center
|col3align=right  |col4align=right
| AAA | aa    | 123  | 12345
| B   | bbbbb | 1234 | 2
}}

Script error: No such module "aligned table".

{{Aligned table
|class=wikitable |style=width:20em;
|col1align=center |col2align=right
| AAA | 123
| B   | 2
}}

Script error: No such module "aligned table".

{{Aligned table
|cols=3 |class=wikitable sortable
|row1header=y
| U | # | l
| A | 1 | a
| B | 2 | b
}}

Script error: No such module "aligned table".