跳至內容

模板:Col-begin/doc

維基語錄,自由的名人名言錄

本系列模板用於分欄顯示內容。{{Col-begin}}與{{Col-end}}通常配合使用。

細節

[編輯]

本模板包含了以下代碼:

{| class="{{{class|}}}" style="background-color: {{{bgColor|transparent}}}; width: {{{width|100%}}}"

參數:

  • class (預設: "")
  • bgColor (預設: transparent)
  • width (預設: 100%)

用法

[編輯]

創建雙欄表格的另一種方法:

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

Template:Col-begin

Template:Col-4

{{Col-begin}}
{{Col-2}}
Column 1 here
{{Col-2}}
Column 2 here
{{Col-end}}

Template:Col-4

{{Col-begin}}
{{Col-3}}
Column 1 here
{{Col-3}}
Column 2 here
{{Col-3}}
Column 3 here
{{Col-end}}

Template:Col-4

{{Col-begin}}
{{Col-4}}
Column 1 here
{{Col-4}}
Column 2 here
{{Col-4}}
Column 3 here
{{Col-4}}
Column 4 here
{{Col-end}}

Template:Col-4

and so on, up to {{Col-6}}

Template:Col-end

Template:Col-begin Template:Col-break

{{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}}

Template:Col-end

另見

[編輯]