模板:Col-begin
外觀
本系列模板用於分欄顯示內容。{{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}}
{{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}}
|
參見
| 上述zh-cn:文档; zh-tw:文件;嵌入自Template:Col-begin/doc。 (編輯 | 歷史) 編者可以在本模板的沙盒 (zh-cn:创建; zh-tw:建立; | 鏡像)和測試樣例 (zh-cn:创建; zh-tw:建立;)頁面進行實驗。 請在/doc子頁面中添加分類。本模板的子頁面。 |