模板:Aligned table/doc
跳至導覽
跳至搜尋
如果你編輯時遇到某些技術限制,導致模板參數中無法使用 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 |