本系列模板用于分栏显示内容。模板链接:{{Col-begin}}与模板链接:{{Col-end}}通常配合使用。
细节
本模板包含了以下代码:
{| class="{{{class|}}} multicol" role="presentation" style="{{#if:{{{small|}}}|font-size:90%; }}border-collapse: collapse; padding: 0; border: {{{border|0}}}; background:{{{bgColor|{{{bgcolor|transparent}}}}}}; width:{{{width|100%}}}; {{{style|}}}"
参数:
- 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}} 模板链接:{{Col-break}} Column 1 here 模板链接:{{Col-break}} Column 2 here 模板链接:{{Col-break}} Column 3 here 模板链接:{{Col-break}} Column 4 here 模板链接:{{Col-break}} Column 5 here 模板链接:{{Col-break}} Column 6 here 模板链接:{{Col-end}}
|