置顶公告:【置顶】关于临时开启评论区所有功能的公告(2022.10.22) | 【置顶】关于本站Widget恢复使用的公告
  • 你好~!欢迎来到萌娘百科镜像站!如需查看或编辑,请联系本站管理员注册账号。
  • 本镜像站和其他萌娘百科的镜像站无关,请注意分别。

模板:Col-begin/doc

萌娘百科,萬物皆可萌的百科全書!轉載請標註來源頁面的網頁連結,並聲明引自萌娘百科。內容不可商用。
跳至導覽 跳至搜尋

本系列模板用於分欄顯示內容。{{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}}

另見