imported>A635683851 |
|
第1行: |
第1行: |
| <includeonly><!-- 在這裡加入模板的保護標識 --></includeonly>
| | == 文件说明 == |
| {{Documentation subpage}}
| | 基于批量 上 传工具 上 传 的文件 |
| <!-- 在本行下編輯模板說明 -->
| |
| | |
| 本模板用于在条目中将内容分成多列。它基于 [[Template:Reflist]],两者的区别是这里显示的内容需手动输入而不是来自引用来源列表。
| |
| | |
| 本模板使用了CSS3的[http://www.w3.org/TR/css3-multicol/ 多栏布局效果]
| |
| | |
| === 用法 ===
| |
| | |
| <nowiki>{{</nowiki>columns-list|'''列数'''| | |
| '''文字內容(一般為列表)'''
| |
| <nowiki>}}</nowiki>
| |
| | |
| 多列只有在Internet Explorer版本10及以上、Opera11.1及以 上 、Safari版本3及以 上 、Mozilla Firefox版本1.5及以上、Google Chrome等浏览器上才能正确渲染,不支持 的 浏览器会始终显示单列但不会混乱。
| |
| | |
| Internet Explorer 版本 9及以下 不支持列选择器。
| |
| | |
| 若列数省略,则默认为 2。
| |
| | |
| ==== 範例 ====
| |
| <nowiki>{{columns-list|2|
| |
| * [[George Washington]]
| |
| * [[John Adams]]
| |
| * [[Thomas Jefferson]]
| |
| * [[James Madison]]
| |
| * [[James Monroe]]
| |
| }}</nowiki>
| |
| 會渲染成
| |
| <!-- Substituted {{columns-list}} to prevent possible loop --><div {{#if: 2| style="-moz-column-count:2; -webkit-column-count:2; column-count:2 }};">
| |
| * [[George Washington]]
| |
| * [[John Adams]]
| |
| * [[Thomas Jefferson]]
| |
| * [[James Madison]]
| |
| * [[James Monroe]]
| |
| </div>
| |
| | |
| | |
| 行数后可以添加 CSS 样式,例如:
| |
| <nowiki>{{columns-list|2</nowiki>''';width:400px;font-style:italic'''<nowiki>|
| |
| * [[New York, I Love You]]
| |
| * [[Hōtai Club]]
| |
| * [[The Kon Ichikawa Story]]
| |
| * [[Rainbow Song]]
| |
| * [[Hana and Alice|Hana & Alice]]
| |
| * [[All About Lily Chou-Chou]]
| |
| * [[April Story]]
| |
| * [[Swallowtail Butterfly (film)|Swallowtail Butterfly]]
| |
| * [[Picnic (1996 film)|Picnic]]
| |
| * [[Fried Dragon Fish]]
| |
| }}</nowiki>
| |
| | |
| 將會呈現
| |
| | |
| <div {{#if: 2| style="-moz-column-count:2; -webkit-column-count:2; column-count:2; width:400px; font-style:italic }};">
| |
| * [[New York, I Love You]]
| |
| * [[Hōtai Club]]
| |
| * [[The Kon Ichikawa Story]]
| |
| * [[Rainbow Song]]
| |
| * [[Hana and Alice|Hana & Alice]]
| |
| * [[All About Lily Chou-Chou]]
| |
| * [[April Story]]
| |
| * [[Swallowtail Butterfly (film)|Swallowtail Butterfly]]
| |
| * [[Picnic (1996 film)|Picnic]]
| |
| * [[Fried Dragon Fish]]
| |
| </div>
| |
| <!--
| |
| === 重定向 ===
| |
| * {{tl|cmn}} 重定向至此
| |
| -->
| |
| | |
| === 參見 ===
| |
| * [[Template:2columns]]
| |
| * [[Template:3columns]]
| |
| * [[Template:4columns]]
| |
| | |
| === 參考 ===
| |
| {{tl|Reflist}}
| |
| | |
| <noinclude>[[Category:模板說明 文件]]</noinclude>
| |
| <includeonly>[[Category:表格模板|{{PAGENAME}}]]</includeonly>
| |