“模板:Col-begin/doc”的版本间的差异
(创建页面,内容为“<noinclude>Category:模板文档</noinclude> <!-- 在本行下編輯模板說明 --> 本系列模板用于分栏显示内容。{{tl|Col-begin}}与{{tl|Col-end}}…”) |
(没有差异)
|
2023年10月6日 (五) 23:33的版本
本系列模板用于分栏显示内容。{{Col-begin}}与{{Col-end}}通常配合使用。
细节
本模板包含了以下代码:
{| cellspacing="0" cellpadding="0" class="{{{class|}}} multicol" style="background:{{{bgColor|transparent}}}; width:{{{width|100%}}};"
参数:
- class(缺省:无)
- bgColor(缺省:transparent)
- width(缺省:100%)
用法
创建双栏表格的另一种方法:
{{col-begin|width=95%}}
|-
|
Left column
|
Right column
|}
|
|
{{Col-begin}}
{{Col-2}}
Column 1 here
{{Col-2}}
Column 2 here
{{Col-end}}
|
{{Col-begin}}
{{Col-3}}
Column 1 here
{{Col-3}}
Column 2 here
{{Col-3}}
Column 3 here
{{Col-end}}
|
{{Col-begin}}
{{Col-4}}
Column 1 here
{{Col-4}}
Column 2 here
{{Col-4}}
Column 3 here
{{Col-4}}
Column 4 here
{{Col-end}}
|
and so on, up to {{Col-6}}
|
{{Col-begin|class=references-small}}
Column 1 here
Column 2 here
Column 3 here
Column 4 here
Column 5 here
Column 6 here
{{Col-end}}
|
另見