“Template:Editnotices/Namespace/模板”与“Template:分列/doc”:页面之间的差异
< Template:Editnotices(页面间差异)
跳到导航
跳到搜索
imported>=海豚= 无编辑摘要 |
imported>A635683851 (创建页面,内容为“<includeonly><!-- 在這裡加入模板的保護標識 --></includeonly> {{Documentation subpage}} <!-- 在本行下編輯模板說明 --> 本模板用于在条目...”) |
||
第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> |
2016年10月11日 (二) 16:32的版本
本文档是Template:分列的文档子页面 (见template:subjectspace zh页自身)。 本页包含用法信息、分类和其他非原template:subjectspace zh页面的内容。 |
[[分类:Template:SUBJECTSPACE ZH說明文件]]
本模板用于在条目中将内容分成多列。它基于 Template:Reflist,两者的区别是这里显示的内容需手动输入而不是来自引用来源列表。
本模板使用了CSS3的多栏布局效果
用法
{{columns-list|列数| 文字內容(一般為列表) }}
多列只有在Internet Explorer版本10及以上、Opera11.1及以上、Safari版本3及以上、Mozilla Firefox版本1.5及以上、Google Chrome等浏览器上才能正确渲染,不支持的浏览器会始终显示单列但不会混乱。
Internet Explorer 版本 9及以下 不支持列选择器。
若列数省略,则默认为 2。
範例
{{columns-list|2| * [[George Washington]] * [[John Adams]] * [[Thomas Jefferson]] * [[James Madison]] * [[James Monroe]] }}
會渲染成
行数后可以添加 CSS 样式,例如:
{{columns-list|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]] }}
將會呈現
參見
參考
{{Reflist}}