Kangkk(留言 | 贡献)2020年3月2日 (一) 17:25的版本 (创建页面,内容为“The purpose is of this template is for generating simple tables in locations where standard table markup is either not possible, without significant u…”)
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 模板:Tld 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 complementary to
{{infobox}} or
{{sidebar}}, and not a replacement for
{{infobox}} or
{{sidebar}}.
A simpler method to include a table in a template that does not directly support table markup is to create the table in a sub-template using standard markup and transclude it.
If set (to anything, "on", "true", "yes", etc.), ensures table spans entire width available.
(Effect is to remove border-spacing and add width:100% to the table's styling.)
If set (to anything, "on", "true", "yes", etc.) adds "white-space:nowrap;" to the CSS style of cell in column 模板:Var (i.e., to prevent lines within its cells from wrapping; or include "nowrap" in col模板:Varclass or "white-space:nowrap;" in col模板:Varstyle).
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.
| Azerbaijan | Malta | Zaire
Not set
Examples
{{Aligned table
|cols=3 |class=wikitable
| A | 1 | a
| B | 2 | b
}}