打开/关闭搜索
搜索
打开/关闭菜单
1128
4558
75
1.8万
Cookie☆Wiki
导航
首页
最近更改
随机页面
帮助
沙盒
特殊页面
上传文件
常用
曲奇简介
用语列表
人物一览
曲奇团体
曲奇年表
本篇列表
榜单列表
专辑列表
创作
音MAD
曲奇静画
曲奇实况
曲奇素材
BB剧场
漫画
同人游戏
曲奇实况
中华曲奇
本篇列表
人物列表
搬运者列表
汉化组列表
友情链接
Cookie☆贴吧
真夏夜的银梦贴吧
中文音MAD维基
潮学维基
银饼视频搜索站
中文曲奇维基Fandom站[已弃用]
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
创建账号
登录
查看“模板:Cot/doc”的源代码
来自Cookie☆Wiki
查看
阅读
查看源代码
查看历史
associated-pages
模板
讨论
更多操作
←
模板:Cot/doc
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
(本段文档来自 [[wikipedia:Template:Collapse_top/doc]]) <noinclude>[[Category:模版用法]]</noinclude> == Parameters == 本模板的所有参数皆为可选参数,度量单位使用CSS所用格式。 <!--This template takes the following parameters, all of which are optional. They are case-sensitive. Those that take CSS measurements require them in CSS format (e.g. <code>1em</code> not <code>1 em</code>).--> ;{{para|1}}, {{para|title}}<span style="font-weight: normal;">, 或第一个未命名参数</span>: 标题文字,默认是"Extended content"。注意:标题中带有"="时,不要使用省略参数名的写法。 <!--Will give the collapsed box a title, which occurs on the same line as the ''show'' link and is always visible. It defaults to "Extended content". For example, <code><nowiki>{{collapse top|title=This is the title text}}</nowiki></code> or <code><nowiki>{{collapse top|This is the title text}}</nowiki></code>. Note: The shorter markup will not work if the title value contain an equals (<code>=</code>) character.--> ;{{para|warning|yes}}: 用不到。<small>(会在标题下显示警告文本,默认的警告文本是"The following is a closed debate. {{strongbad|Please do not modify it.}}")</small> <!--Will display a default warning line under the main title which reads "The following is a closed debate. {{strongbad|Please do not modify it.}}" Any value supplied to this parameter will have this effect (i.e. {{para|warning|{{!mxt|no}}}} will not work as expected).--> ;{{para|2}}<span style="font-weight: normal;"> 或第二个未命名参数</span>: 用不到。(<small>用来覆盖掉默认的警告文本。</small>) <!--This is optional warning-line text. It will override the standard warning line above; it is not necessary to also use {{para|warning|yes}} in this case, though doing so is harmless.--> ;{{para|left|yes}}: 使标题文本靠左对齐。 <!--Will align the title along the left margin. Text aligns centered between the left margin and the left bracket of the left ''show'' link by default. Any value will have this effect (i.e. {{para|left|{{!mxt|no}}}} will not work as expected); nor is there a {{para|{{!mxt|right}}}} parameter (only useful in a right-to-left language).--> ;{{para|expand|yes}} <span style="font-weight: normal;">或</span> {{para|collapse|no}}: 使此模板在浏览时默认展开。 <!--Will leave the material uncollapsed with the border and coloring. Default is to collapse the material. Any value will have this effect (i.e. {{para|expand|{{!mxt|no}}}} and {{para|collapse|{{!mxt|yes}}}} will not work as expected).--> ;{{para|bg}}: 标题框的背景颜色,默认是<code>#CCFFCC</code>。使用命名颜色可参见[[BB素材]]。 <!--Sets the background color of the collapsed material. Defaults to <code>#CCFFCC</code>, a green hue. Named colors are listed at [[List of colors]]. For example, <code><nowiki>{{collapse top|This is the title text|bg=#F0F2F5}}</nowiki></code> or <code><nowiki>{{collapse top|This is the title text|bg=LightGrey}}</nowiki></code> (HTML color codes require the leading <code>#</code>).--> ;{{para|fc}}: 标题字体的颜色。 <!--Sets the font color of the title of the collapsible bar. Defaults to inheriting the current text color of the context. See {{para|bg}}, above, for details on color options.--> ;{{para|border}}: 边框的宽度,默认是<code>1px</code>。 <!--Sets the width of the border line on the collapsed material. defaults to <code>1px</code>. For example, <code><nowiki>{{collapse top|border=2px}}</nowiki></code>; going much thicker than this is not very useful.--> ;{{para|b-color}}: 边框的颜色,默认是<code>Silver</code>。 <!--Sets the border color. defaults to <code>Silver</code> (<code>#C0C0C0</code>). See {{para|bg}}, above, for details on color options.--> ;{{para|padding}}: 设置padding(模板展开时显示的内容与边框的间距)。 <!--Sets the padding (distance from borders) on the collapsed material inside the colored area. Defaults to <code>0.6em</code>.--> ;{{para|width}}: 整个模板相对于页面(或包含此模板的块元素)的宽度。如{{para|width|50%}}、{{para|width|30em}}。应该避免使用绝对的单位(如<code>px</code>)。 <!--Sets the width of the overall template relative to the page (or a block element containing the collapse box). This should virtually always be given as a percentage, e.g. {{para|width|50%}}, or in relative <samp>em</samp> units, e.g. {{para|width|30em}}. Pixel-based values should be avoided, as they are effectively meaningless – the result will be different depending on each user's browser and local CSS settings (which browser and operating system it is, zoom level, font sizes, etc.).--> ;{{para|border2}}: 模板展开时显示的内容的边框,默认是<code>1px Silver</code>。 <!--Sets the properties of the border of the box that appears when template is expanded; defaults to <code>1px Silver</code> (there is no provision to change from a solid line). For example, <code><nowiki>{{collapse top|border2=2px}}</nowiki></code> (only width or color will be changed if only one value is supplied). See {{para|bg}}, above, for details on color options.--> ;{{para|bg2}}: 模板展开时显示的内容的背景颜色,默认是<code>White</code>。 <!--Sets the background color of the box that appears when template is expanded; defaults to <code>White</code> (<code>#FFFFFF</code>). See {{para|bg}}, above, for details on color options.--> ;{{para|indent}}: 模板相对于页面(或包含此模板的块元素)左侧的缩进距离,一般以<code>1.6em</code>作为标准单位(维基百科中每一个<code>:</code>缩进<code>1.6em</code>)。 <!--Indents the box from the left of the page. Defaults to no indentation. Each <code>:</code> in talk page markup is approximately equivalent to <code>1.6em</code> of indent (e.g., to match <code>::::</code> indentation level, use {{para|indent|6.4em}}. You can also use a percentage value. Pixel-based values should be avoided (see {{para|width}}, above, for why).--> ;{{para|clear}}: 模板默认的 css clear 属性是<code>clear: both;</code>,某些情况下可以使用此参数改变该属性(如{{para|clear|none}}、{{para|clear|right}}、{{para|clear|left}})。 <!--In some situations you may not want the default <code>clear: both;</code> CSS to apply, with puts the collapse box below any left- or right-floated content within the same HTML block. In this case, you can use {{para|clear|none}}, {{para|clear|right}}, or {{para|clear|left}}, as needed.-->
该页面使用的模板:
模板:Para
(
查看源代码
)
模板:Strongbad
(
查看源代码
)
返回
模板:Cot/doc
。