K (1 Version) |
imported>Oetterer K (Schützte „Vorlage:Aligned table“: Automatic protection of selected project pages ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt))) |
||
(Eine dazwischenliegende Version von einem anderen Benutzer wird nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
{{#invoke:aligned table|table}}<noinclude> | {{#invoke:aligned table|table}}<noinclude> | ||
+ | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Aktuelle Version vom 7. Oktober 2022, 16:56 Uhr
This template uses Lua: |
Full syntax[Quelltext bearbeiten]
For parameter explanations, see table below.
{{Aligned table | fullwidth = | class = | style = | cols = | colwidth = <!-- | colstyle = --> | leftright = | 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) | ... | ... }}
Parameter | Description | Examples | Default |
---|---|---|---|
sample text
|
Set to anything ("on", "yes", "true", ...) to ensure table spans entire width available.
(Effect is to remove border-spacing and add width:100% to the table's styling.) |
|fullwidth=on
|
not set |
sample text
|
Class for the table | |class=wikitable |class=infobox |class=sidebar etc.
|
none |
sample text
|
CSS styling for the table | |style=width:80%;background:transparent;
|
none |
sample text
|
Number of columns in the table | |cols=4
|
2 |
sample text
|
Width of each column | |colwidth=6.0em |colwidth=25% etc.
|
not set |
|
|
|
|
sample text
|
CSS styling for each row | |rowstyle=text-align:center;
|
not set |
sample text
|
Width of column number [C] | |col2width=6.0em |col3width=25% etc.
|
not set |
sample text
|
Class for the cells in column number [C] | |col1class=navbox-group
|
none |
sample text
|
Alignment (left, right, center) for column [C]'s cell contents. | |col4align=right
|
not set |
|
|
|
|
sample text
|
Class for the cells in row [R] | |row10class=navbox-abovebelow
|
none |
sample text
|
CSS styling for cells in row [R] | |row1style=font-weight:bold;
|
none |
sample text
|
Class for the cell in row [R], column [C]. Overrides any other class attribution (sample text ).
|
none | |
sample text
|
CSS styling for the cell in row [R], column [C]. Overrides any more generalized styling (sample text , etc).
|
none | |
Unnamed parameters | Each unnamed parameter is taken to be the next cell in the table, starting at the table's top left corner and working left to right from top to bottom. |
Examples[Quelltext bearbeiten]
{{Aligned table |class=wikitable |cols=3 | A | 1 | a | B | 2 | b }}
A | 1 | a |
B | 2 | b |
{{Aligned table |class=wikitable |cols=4 |col1align=center |col2align=center |col3align=right |col4align=right | AAA | aa | 123 | 12345 | B | bbbbb | 1234 | 2 }}
AAA | aa | 123 | 12345 |
B | bbbbb | 1234 | 2 |
{{Aligned table |class=wikitable |style=width:20em |cols=2 |col1align=center |col2align=right | AAA | 123 | B | 2 }}
AAA | 123 |
B | 2 |
{{Aligned table |class=wikitable sortable |row1header = y |cols=3 | U | # | l | A | 1 | a | B | 2 | b }}
U | # | l |
---|---|---|
A | 1 | a |
B | 2 | b |
See also[Quelltext bearbeiten]
- Module:Aligned table, the Lua module that generates this template.