模板:Aligned table
跳到导航
跳到搜索
如果你编辑时遇到某些技术限制,导致模板参数中无法使用 wiki 代码嵌入表格,那么本模板就会帮助你在里面成功插入一个表格。
参数
{{Aligned table | cols = | fullwidth = | class = | style = | colwidth = | leftright = | colstyle = | rowstyle = <!-- C 列 --> | colCwidth = | colCclass = | colCalign = | colCstyle = | colCnowrap = <!-- R 行 --> | rowRclass = | rowRstyle = | rowRheader = <!-- R 行 C 列的单元格 --> | classR.C = | styleR.C = | (cell 1,1) | (cell 1,2) | ... | ... | (cell 2,1) | (cell 2,2) | ... | ... }}
示例
{{Aligned table |cols=3 |class=wikitable | A | 1 | a | B | 2 | b }}
A | 1 | a |
B | 2 | b |
{{Aligned table |cols=4 |class=wikitable |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; |col1align=center |col2align=right | AAA | 123 | B | 2 }}
AAA | 123 |
B | 2 |
{{Aligned table |cols=3 |class=wikitable sortable |row1header=y | U | # | l | A | 1 | a | B | 2 | b }}
U | # | l |
---|---|---|
A | 1 | a |
B | 2 | b |