维多利亚3
ParaWikis
502 Bad Gateway
502 Bad Gateway
openresty
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
×
欢迎访问维多利亚3百科!
注册一个账号
,一起参与编写吧!这里是
当前的工程
。
全站已采用新UI,任何使用上的问题请点击
这里
。欢迎所有对百科感兴趣的同学加入QQ群:
497888338
。
阅读
查看源代码
查看历史
讨论
查看“Template:Collapse list”的源代码
←
Template:Collapse list
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<includeonly><div class="mw-collapsible mw-collapsed" style="<!---->{{#ifeq:{{{style|{{{1|}}} }}}|inline|display: inline-block;|{{{style|{{{1}}} }}} }}">{{#if:{{{type|}}}|{{{type}}}|{{{1}}}}}{{0| }} <div class="mw-collapsible-content"> {{{2|{{{body}}}}}} </div> </div></includeonly><noinclude> == Parameters == This template builds collapsible lists with titles. {| class="wikitable" |- ! Parameter ! Description ! Default ! Status |- | 1 | list name | empty | '''required''' |- | 2 | list content | empty | '''required''' |- | style | * If set to 'inline', the [Expand] tag is left-aligned instead of right-aligned. * If set to anything else, inserts it into the style tag for the list's <nowiki><div></nowiki>. | empty | '''optional''' |} === Old style === For backwards compatibility, these parameters remain valid. If parameter 1 is set to "inline", the parameter type must be used for the list name. {| class="wikitable" |- ! Parameter ! Description ! Default ! Status |- | type | list name | empty | '''required''' |- | body | list content | empty | '''required''' |- | 1 | * If set to 'inline', the [Expand] tag is left-aligned instead of right-aligned. * If set to anything else, inserts it into the style tag for the list's <nowiki><div></nowiki>. | empty | '''optional''' |} == Examples == <code><nowiki>{{collapse list|type=List|body= * Item}}</nowiki></code> {{collapse list|type=List|body= * Item}} ---- <code><nowiki>{{collapse list|inline|type={{icon|unknown}} Inline list|body= * Item}}</nowiki></code> {{collapse list|inline|type={{icon|unknown}} Inline list|body= * Item}} ---- <code><nowiki>{{collapse list|background-color:lightgreen; border:solid;|type=Green, bordered list|body= * Item}}</nowiki></code> {{collapse list|background-color:lightgreen; border:solid;|type=Green, bordered list|body= * Item}} == Limitations == This template cannot be used as part of lists as it breaks the collapsing effect. *{{collapse list|inline|type=List|* Item * Item 2 ** Item 3}} It can also not be used inline with a paragraph unless the whole paragraph is wrapped with <code><nowiki><span></nowiki></code> and the inline effect is applied, but even then the expand effect will break the flow of the paragraph. Example text including {{collapse list|inline|type=List|* Item * Item 2 ** Item 3}} text continues after <span>Example text including {{collapse list|style=inline|list|* Item * Item 2 ** Item 3}} text continues after</span> [[Category:Templates]] </noinclude>
本页使用的模板:
Template:0
(
查看源代码
)
Template:Collapse list
(
查看源代码
)
Template:Icon
(
查看源代码
)
Template:图标
(
查看源代码
)
返回
Template:Collapse list
。
×
登录
密码
记住登录
加入维多利亚3百科
忘记密码?
其他方式登录