模板:Col-begin
![]() | 本模板使用以下模板样式: |
本系列模板用于分栏显示内容。((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 |} |
((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))
|
另见
上述文档嵌入自Template:Col-begin/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (编辑 | 差异)和测试样例 (编辑)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.