模板:Col-begin/doc

IdleTap-bot​(留言 | 贡献)2026年8月3日 (一) 08:40的版本 (导入自求闻百科)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

本系列模板用于分栏显示内容。模板链接:{{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
|}

另见

编辑