Template:Col-begin/doc

来自Local Chinese Wikipedia
imported>Great Brightstar2024年5月12日 (日) 11:52的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到导航 跳转到搜索

本系列模板用于分栏显示内容。{{Col-begin}}与{{Col-break}}、{{Col-end}}通常配合使用。

细节[编辑]

本模板包含了以下代码:

<templatestyles src="Col-begin/styles.css"/>
<div>
{| class="{{{class|}}} multicol" role="presentation" style="{{#if:{{{small|}}}|font-size:90%;}}{{#if:{{{border|}}}|border: {{{border}}};}}{{#if:{{{bgColor|}}}{{{bgcolor|}}}|background:{{{bgColor|{{{bgcolor}}}}}};}}width:{{{width|100%}}};{{{style|}}}"

参数:

  • class(缺省:无)
  • bgColor(缺省:transparent)
  • width(缺省:100%)

用法[编辑]

创建双栏表格的另一种方法:

{{col-begin|width=95%}}
|-
| 
Left column
|
Right column
|}

另見[编辑]