查看“︁Template:Navbox/doc”︁的源代码
←
Template:Navbox/doc
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
<!-- 在本行下编辑模板说明 --> 本模板允许通过提供一个或多个链接列表,从而相对快速地建立一个导航模板。它配备了缺省样式,这些样式应能对付大多数导航模板。不建议改变缺省样式,尽管这是可以的。为了导航模板的标准化,也为了便于使用,强烈建议使用这个模板。 ==用法== 请移除置空不用的参数。 <pre>{{Navbox | name ={{subst:PAGENAME}} | title = | image = | above = | group1 = | list1 = | group2 = | list2 = …… | group20 = | list20 = | below = }}</pre> ==参数列表== {{Navbox |name =Navbox/doc |state =uncollapsed |image ={{{image}}} |title ={{{title}}} |above ={{{above}}} |group1 ={{{group1}}} |list1 ={{{list1}}} |group2 ={{{group2}}} |list2 ={{{list2}}} |list3 ={{{list3}}}''不带{{{group3}}}'' |group4 ={{{group4}}} |list4 ={{{list4}}} |below ={{{below}}}<br/>参见下方的其他替代导航格式:[[#表格布局|''表格布局'']] }} Navbox使用小写的参数名称,如上面框中所示。如果省略其他参数,必需的''name''和''title''会创建一个单行方框。 请注意“group1”(等等)是可选的,命名为“above/below”的部分也是可选的。 基本的和最常见的参数如下所示(参见下方查看完整的列表): :<code>name - </code>模板的名称。 :<code>title - </code>标题栏的文字,像<nowiki>[[东方红魔乡]]</nowiki>。 :<code>state - autocollapse、uncollapsed、collapsed</code>:方框的折叠状态,其中“autocollapse”会自动隐藏被堆叠的多个导航框。 :<code>titlestyle - </code>一个用于标题栏的CSS样式,像:<code>background:gray;</code> :<code>groupstyle - </code>一个用于分组单元格的CSS样式,像:<code>background:#eee;</code> :<code>image - </code>一个可选的置于右侧的图片(以完整的图片标签的形式编码:<nowiki>[[文件:XX.jpg|90px]]</nowiki>)。 :<code>imageleft - </code>一个可选的置于左侧的图片(编码方式与“image”参数相同)。 :<code>above - </code>在group/list区段之上显示的文字(可能是一栏综合的维基链接)。 :<code>group<sub>n</sub> - </code>左侧的文字,在list-n之前(如果group-n被省略,list-n从方框的左侧开始)。 :<code>list<sub>n</sub> - </code>列出维基链接的文字,通常以圆点符号模板分隔开来,像:<nowiki>[[A]]<code> {{·}}</code> [[B]]</nowiki> :<code>below - </code>在group/list区段之下显示的可选文字。 进一步的细节,以及复杂的约束,在下方[[#参数描述|参数描述]]章节作了解释。参见其他的一些替代导航格式:[[#表格布局|''表格布局'']]。 ==参数描述== 下面是用于{{t1|Navbox}}的参数的一个完整清单。在大多数情况下,只要有参数<code>name</code>、<code>title</code>和<code>list1</code>就可以了,尽管[[#子导航框|子导航框]]甚至不需要设置那些参数。 ===设置参数=== :;''name'' ::模板的名称。为了在所有使用了所生成模板的页面上,“檢 {{·}} 论 {{·}} 编”链接都能正确地工作,就需要设置这个参数。你可以输入<code><nowiki>{{subst:PAGENAME}}</nowiki></code>作为这个参数的值,这也是个快捷的方法。此参数是必需的。<!-- 仅当<code>title</code>被指定,且<code>border</code>参数未被设置时,此name参数才是必需的。 --> :;''state'' <span style="font-weight: normal;">[<code>autocollapse、uncollapsed、collapsed、plain、off</code>]</span> :*缺省为<code>autocollapse</code>。如果在使用了其他可折叠表格的同一个页面上有两个或更多表格,那么该页面上的带<code>autocollapse</code>的导航框一开始就会折叠起来。否则,该导航框会被展开。要了解技术上的实现,请参见[[MediaWiki:Common.js]]。 :*如果设置为<code>collapsed</code>,该导航框总会在开始时以折叠起来的状态展现。 :*如果设置为<code>plain</code>,该导航框总会在被展开时不带右侧的“隐藏”链接,并且标题会保持居中(通过使用补白来偏移<small>查 • 论 • 编 • 历</small>链接)。(英文模板已实现。) :*如果设置为<code>off</code>,该导航框总会在被展开时不带右侧的“隐藏”链接,但是没有补白会被用来保持标题居中。这只是为了高级用法;“plain”选项应能满足大多数需要将“显示”/“隐藏”按钮隐藏起来的应用。(英文模板已实现。) :*如果设置为除<code>autocollapse</code>、<code>collapsed</code>、<code>plain</code>或<code>off</code>之外的其他值(像“uncollapsed”),该导航框总会在开始时以展开的状态出现,但是带有“隐藏”按钮。 :若要在独处(未被包含)时显示框体,而在一个条目中时自动隐藏内容,可以将“uncollapsed”置于<noinclude>标签之内: :*<code>state = </code><nowiki><noinclude>uncollapsed</noinclude></nowiki> :*如此设置会强制框体在独处时(甚至是在跟有其他方框时)可见,显示“隐藏”按钮,而当被堆叠在一个条目中时自动折叠框体。 :很多时候,对于一个导航框,编辑者会想要一个缺省的初始状态,并且在条目中它可以被覆写。要做到这一点,这里有个窍门: :在你的居间模板里,创建一个参数也命名为“state”作为一个传递,像这样: :*<tt><nowiki>| state = {{{state<includeonly>|你想要的初始状态</includeonly>}}}</nowiki></tt> :*这个<nowiki><includeonly>|</nowiki>会使得当查看模板页面本身时,模板会被展开。 :;''navbar'' ::缺省为<code>Tnavbar</code>。如果设置为<code>plain</code>,在标题栏左侧的<small>查 • 论 • 编 • 历</small>链接不会显示出来,而且补白会被自动应用以保持标题居中。设置为<code>off</code>可以移除<small>查 • 论 • 编 • 历</small>链接(英文模板已实现),但是不会应用补白(这只是为了高级用法;“plain”选项应能满足大多数不想要导航栏的应用。)强烈建议使用者不要隐藏导航栏,为的是使用户编辑该模板更加容易,并且可以贯穿各个页面都有一个标准的风格。 <!-- 中文模板目前不支持此参数。2008-10-23 :;''border'' ::''关于将导航框用在另一个导航框内部,欲了解示例及更完整的描述,请参见下面的章节。''如果设置为<code>child</code>或<code>subgroup</code>,那么该导航框能够被用作一个无边框的子导航框。其边框被隐藏并且在表格的边上没有补白,因此它能很好地放进它的父导航框的list区域。如果设置为<code>none</code>,那么 :: ''See section below on using navboxes within one another for examples and a more complete description.'' If set to <code>child</code> or <code>subgroup</code>, then the navbox can be used as a borderless child that fits snuggly in another navbox. The border is hidden and there is no padding on the sides of the table, so it fits into the ''list'' area of its parent navbox. If set to <code>none</code>, then the border is hidden and padding is removed, and the navbox may be used as a child of another container (do not use the <code>none</code> option inside of another navbox; similarly, only use the <code>child</code>/<code>subgroup</code> option inside of another navbox). If set to anything else (default), then a regular navbox is displayed with a 1px border. An alternate way to specify the border to be a subgroup style is like this (i.e. use the first unnamed parameter instead of the named ''border'' parameter): :::<code><nowiki>{{Navbox|child</nowiki></code> ::::<code>... :::<code><nowiki>}}</nowiki></code> --> ===单元格=== :;''title'' ::显示在表格顶端一行居中位置的文字。它通常是该模板的主题,也就是主体内容的一个简要描述。这应该是单独的一行,但是如果需要第二行,请使用<code><nowiki>{{-}}</nowiki></code>来保证正确的居中。本参数从技术上来说不是必需的,但是使用{{t1|Navbox}}而不带标题是相当没有意义的。 :;''group<sub>n</sub>'' ::(即''group1''、''group2''等等)如果被指定,文字会显示在位于''list<sub>n</sub>''左侧的抬头单元格中。如果被省略,''list<sub>n</sub>''占用表格的全部宽度。 :;''list<sub>n</sub>'' ::(即''list1''、''list2''等等)该模板的主体,通常为一栏链接。格式为内联;然而,如果整个列表被装入<code><nowiki><div> </div></nowiki></code>之内,文字能够被输入到不同的行中。最少需要一个''list''参数;每个附加的''list''被显示在一个单独的表格行中。每个''list<sub>n</sub>''可能在其前面有一个相对应的''group<sub>n</sub>''参数,如果提供了的话(参见下方)。 :;''image'' ::一张图片,会显示在标题(title)之下、主体(group/list)之右侧的一个单元格中。为使图片能正确地显示,必须指定''list1''参数。''image''参数接受标准的维基代码来显示图片,即: :::<code><nowiki>image = [[文件:Example.jpg|100px]]</nowiki></code> :;''imageleft'' ::一张图片,会显示在标题(title)之下、主体(list)之左侧的一个单元格中。为使图片能正确地显示,必须指定''list1''参数,而且不能指定分组(group)。''imageleft''参数接受标准的维基代码来显示图片,即: :::<code><nowiki>imageleft = [[文件:Example.jpg|100px]]</nowiki></code> :;''above'' ::一个全宽度单元格,显示在标题栏与第一个group/list之间,也就是位于该模板的主体(group、list和image)之上。在一个不带图片的模板中,''above''与不带''group1''参数的''list1''参数以同样的方式运作。 :;''below'' ::一个全宽度单元格,显示在该模板主体(group、list和image)的下方。在一个不带图片的模板中,''below''与该模板最后面的不带''group<sub>n</sub>''参数的''list<sub>n</sub>''参数以同样的方式运作。作为一个使用了''below''参数的示例。 ===样式参数=== 一般不建议更改样式,以保持维基百科中模板和网页的一致性。然而,修改样式的选项还是有的。 :;''style'' ::指定应用到模板主体的CSS样式。''bodystyle''参数也有下面举例的同样效果,并能被用来代替这个''style''参数。此选项应谨慎使用,因为它可以导致视觉上的不一致。举例: :::<code>style = background:#''nnnnnn'';</code> :::<code>style = width:''N'' [em/%/px or width:auto];</code> :::<code>style = float:[''left/right/none''];</code> :::<code>style = clear:[''right/left/both/none''];</code> <!-- 注释:中文模板目前尚不支持basestyle参数。2008-10-27 :;''basestyle'' ::CSS样式,会同时应用到''title''、''above''、''below''和''group''单元格。该样式不会应用到''list''单元格。这就比较方便了,使得编辑者很容易改变导航框的基本颜色而无需重复去为该导航框的不同部分指定样式。举例: --><!-- :: CSS styles to apply to the ''title'', ''above'', ''below'', and ''group'' cells all at once. The style are not applied to ''list'' cells. This is convenient for easily changing the basic color of the navbox without having to repeat the style specifications for the different parts of the navbox. Examples: ::: <code>basestyle = background:lightskyblue;</code> --> :;''titlestyle'' ::应用到''title''的CSS样式,最常见的有导航栏的背景颜色: :::<code><nowiki>titlestyle = background:</nowiki>''#nnnnnn'';</code> :::<code><nowiki>titlestyle = background:</nowiki>''name'';</code> :;''groupstyle'' ::应用到''groupN''单元格的CSS样式。该选项覆写应用于整个表格的任何样式。举例: :::<code>groupstyle = background:#''nnnnnn'';</code> :::<code>groupstyle = text-align:[''left/center/right''];</code> :::<code>groupstyle = vertical-align:[''top/middle/bottom''];</code> <!-- 中文模板目前不支持以下参数。2008-10-27 :;''group<sub>n</sub>style'' --> :;''liststyle'' ::应用到所有list的CSS样式。若指定了下面的''oddstyle''和''evenstyle''参数,则它们的优先级高于本参数。 <!-- 中文模板目前不支持以下参数。2008-10-27 :;''list<sub>n</sub>style'' :;''listpadding'' --> :;''oddstyle'' :;''evenstyle'' ::应用到奇数/偶数编号的列表。会推翻由''liststyle''定义的样式。缺省的表现是分别添加条纹状的颜色(白色和灰色)到奇数/偶数行,以提高可读性。除了在非常特别的情况下,这些设置不应更改。 <!-- 中文模板目前不支持以下参数。2008-10-29 :;''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span> --> :;''abovestyle'' :;''belowstyle'' ::CSS样式,应用到顶端单元格(通过''above''参数指定)和底端单元格(通过''below''参数指定)。典型地被用来设置背景颜色或文本对齐方式: :::<code>abovestyle = background:#''nnnnnn'';</code> :::<code>abovestyle = text-align:[''left/center/right''];</code> <!-- 中文模板目前不支持以下参数。2008-10-29 :;''imagestyle'' :;''imageleftstyle'' --> =====缺省样式===== 这里列出的样式设置是使用导航框的编辑者最经常更改的那些设置。其他更加复杂的样式设置被排除在这个列表之外,以保持它简单。大多数样式是在[[MediaWiki:Common.css]]中设置。 :<code>bodystyle =background:#fdfdfd; width:100%; vertical-align:middle;</code> :<code>titlestyle =background:#ccccff; padding-left:1em; padding-right:1em; text-align:center;</code> :<code>abovestyle =background:#ddddff; padding-left:1em; padding-right:1em; text-align:center;</code> :<code>belowstyle =background:#ddddff; padding-left:1em; padding-right:1em; text-align:center;</code> :<code>groupstyle =background:#ddddff; padding-left:1em; padding-right:1em; text-align:right;</code> :<code>liststyle =background:transparent; text-align:left/center;</code> :<code>oddstyle =background:transparent;</code> :<code>evenstyle =background:#f7f7f7;</code> 由于''liststyle''和''oddstyle''是透明的,奇数列表有''bodystyle''的颜色,其缺省值是#fdfdfd(白色带有少许灰色)。一个list有<code>text-align:left;</code>设定,如果它有一个group的话;否则,它有<code>text-align:center;</code>设定。由于只有''bodystyle''有一个垂直对齐(vertical-align)属性,所 有其他样式继承其<code>vertical-align:middle;</code>设定。 <!-- Since ''liststyle'' and ''oddstyle'' are transparent odd lists have the color of the ''bodystyle'', which defaults to #fdfdfd (white with a hint of gray). A list has <code>text-align:left;</code> if it has a group, if not it has <code>text-align:center;</code>. Since only ''bodystyle'' has a vertical-align all the others inherit its <code>vertical-align:middle;</code>. --> <!-- 中文模板目前不支持以下参数。2008-10-31 ===高级参数=== :;''titlegroup'' :;''titlegroupstyle'' :;''innerstyle'' --> ==表格布局== 由{{tl|Navbox}}'''不带'''''image''、''above''和''below''参数生成的表格(添加了灰色的列表背景色仅仅是为了演示): {{Navbox | name =Navbox/doc | state =uncollapsed | liststyle =background: silver; | title ={{{title}}} | group1 ={{{group1}}} | list1 ={{{list1}}} | group2 ={{{group2}}} | list2 ={{{list2}}} | list3 ={{{list3}}} ''不带 {{{group3}}}'' | group4 ={{{group4}}} | list4 ={{{list4}}} }} 由{{tl|Navbox}}'''带有'''''image''、''above''和''below''参数生成的表格(添加了灰色的列表背景色仅仅是为了演示): {{Navbox | name =Navbox/doc | state =uncollapsed | liststyle =background:silver; | image ={{{image}}} | title ={{{title}}} | above ={{{above}}} | group1 ={{{group1}}} | list1 ={{{list1}}} | group2 ={{{group2}}} | list2 ={{{list2}}} | list3 ={{{list3}}} ''不带 {{{group3}}}'' | group4 ={{{group4}}} | list4 ={{{list4}}} | below ={{{below}}} }} 由{{tl|Navbox}}'''带有'''''image''、''imageleft''、''lists'',且'''不带'''''groups''、''above''、''below''生成的表格(添加了灰色的列表背景色仅仅是为了演示): {{Navbox |name =Navbox/doc |state =uncollapsed |liststyle =background:silver; |image ={{{image}}} |imageleft ={{{imageleft}}} |title ={{{title}}} |list1 ={{{list1}}} |list2 ={{{list2}}} |list3 ={{{list3}}} |list4 ={{{list4}}} }} ==示例== ===不带图片=== <pre style="overflow: scroll;"> {{Navbox | name =Navbox/doc | title =Bilibili | group1 =[[运营本社]] | list1 =[[上海幻电信息科技有限公司]] {{·}} [[bilibili]] | group2 =[[领导班子]] | list2 =上海特首[[徐逸]] {{·}} 逸斯兰国董事委员会总书记[[陈睿]] | group3 =[[旗下艺人]] | list3 =[[四 大 蛆 王|四大蛆王]] {{·}} [[吔总会]] | group4 =[[普通员工]] | list4 =三姓家奴[[瞿申图]] {{·}} 吃雪审核[[林佳奇]] | group5 =[[其他明星]] | list5 =盈利解说[[韩光雨]] {{·}} 中专肥宅[[苗帅]] {{·}} 鬼畜教父[[刘典]] }} </pre> {{Navbox | name =Navbox/doc | title =Bilibili | group1 =[[运营本社]] | list1 =[[上海幻电信息科技有限公司]] {{·}} [[bilibili]] | group2 =[[领导班子]] | list2 =上海特首[[徐逸]] {{·}} 逸斯兰国董事委员会总书记[[陈睿]] | group3 =[[旗下艺人]] | list3 =[[四 大 蛆 王|四大蛆王]] {{·}} [[吔总会]] | group4 =[[普通员工]] | list4 =三姓家奴[[瞿申图]] {{·}} 吃雪审核[[林佳奇]] | group5 =[[其他明星]] | list5 =盈利解说[[韩光雨]] {{·}} 中专肥宅[[苗帅]] {{·}} 鬼畜教父[[刘典]] }} ===带图片,不带分组=== <pre style="overflow: scroll;"> {{Navbox | name =Navbox/doc | title =[[双重剧透: 符卡|双重剧透 符卡列表]] | image =[[文件:Th125cover.jpg|120px]] | list1 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] }} </pre> {{Navbox | name =Navbox/doc | state =uncollapsed | title =[[双重剧透: 符卡|双重剧透 符卡列表]] | image =[[文件:Th125cover.jpg|120px]] | list1 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] }} ===带两张图片,不带分组,多重列表=== <pre style="overflow:scroll;"> {{Navbox | name =Navbox/doc | title =[[双重剧透]] | image =[[文件:Th125cover.jpg|120px]] | imageleft =[[文件:Th125cover.jpg|120px]] | list1 =[[双重剧透: 角色|角色]] {{·}} [[双重剧透: 攻略|攻略]] {{·}} [[:分类:双重剧透录像|录像]] | list2 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] | list3 =Level Spoiler 对话 {{·}} [[双重剧透: 音乐|音乐]] {{·}} [[双重剧透: 后记|后记]] {{·}} [[双重剧透: 杂项|杂项]] }} </pre> {{Navbox | name =Navbox/doc | state =uncollapsed | title =[[双重剧透]] | image =[[文件:Th125cover.jpg|120px]] | imageleft =[[文件:Th125cover.jpg|120px]] | list1 =[[双重剧透: 角色|角色]] {{·}} [[双重剧透: 攻略|攻略]] {{·}} [[:分类:双重剧透录像|录像]] | list2 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] | list3 =Level Spoiler 对话 {{·}} [[双重剧透: 音乐|音乐]] {{·}} [[双重剧透: 后记|后记]] {{·}} [[双重剧透: 杂项|杂项]] }} ===带有图片、分组、上方注释、下方注释=== <pre style="overflow:scroll;"> {{Navbox | name =Navbox/doc | title =[[双重剧透]] | image =[[文件:Th125cover.jpg|120px]] | above =上方文字放在这里 | group1 =[[双重剧透: 玩法|游戏玩法]] | list1 =[[双重剧透: 角色|角色]] {{·}} [[双重剧透: 攻略|攻略]] {{·}} [[:分类:双重剧透录像|录像]] | group2 =[[双重剧透: 符卡|符卡]] | list2 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] | group3 =其他 | list3 =Level Spoiler 对话 {{·}} [[双重剧透: 音乐|音乐]] {{·}} [[双重剧透: 后记|后记]] {{·}} [[双重剧透: 杂项|杂项]] | below =网站:[http://www16.big.or.jp/~zun/ Team Shanghai Alice] }} </pre> {{Navbox | name =Navbox/doc | state =uncollapsed | title =[[双重剧透]] | image =[[文件:Th125cover.jpg|120px]] | above =上方文字放在这里 | group1 =[[双重剧透: 玩法|游戏玩法]] | list1 =[[双重剧透: 角色|角色]] {{·}} [[双重剧透: 攻略|攻略]] {{·}} [[:分类:双重剧透录像|录像]] | group2 =[[双重剧透: 符卡|符卡]] | list2 =Level [[双重剧透: Level 1 符卡|1]] {{·}} [[双重剧透: Level 2 符卡|2]] {{·}} [[双重剧透: Level 3 符卡|3]] {{·}} [[双重剧透: Level 4 符卡|4]] {{·}} [[双重剧透: Level 5 符卡|5]] {{·}} [[双重剧透: Level 6 符卡|6]] {{·}} [[双重剧透: Level 7 符卡|7]] {{·}} [[双重剧透: Level 8 符卡|8]] {{·}} [[双重剧透: Level 9 符卡|9]] {{·}} [[双重剧透: Level 10 符卡|10]] {{·}} [[双重剧透: Level 11 符卡|11]] {{·}} [[双重剧透: Level 12 符卡|12]] {{·}} [[双重剧透: Level EX 符卡|EX]] {{·}} [[双重剧透: Level Spoiler 符卡|Spoiler]] | group3 =其他 | list3 =Level Spoiler 对话 {{·}} [[双重剧透: 音乐|音乐]] {{·}} [[双重剧透: 后记|后记]] {{·}} [[双重剧透: 杂项|杂项]] | below =网站:[http://www16.big.or.jp/~zun/ Team Shanghai Alice] }} <!-- 中文模板目前不支持border参数,以下章节相应保留未译。2008-11-2 ==子导航框== --> ==技术细节== *此模板为其大部分外观使用CSS类,因此它完全可以更换皮肤。 <!-- *在内部此元模板使用了HTML标记代替 --> *欲了解更多技术细节请参见其[[模板讨论:Navbox|讨论页]]、[[MediaWiki:common.css]]中的CSS类以及[[MediaWiki:common.js]]中用来隐藏框体的可折叠表格。 ===运作详情=== <!-- 译后试了一下,中文模板无需像英文模板那样额外设置liststyle =。2008-11-04 *在分组(groups)与列表(lists)之间的2px宽的边框被绘出,是使用列表单元格的左边框(border-left)属性。因此,如果你想改变模板的背景颜色(例如<code>bodystyle = background:purple;</code>),那么你就需要使这个左边框颜色(border-left-color)与该背景色相适配(即<code>liststyle = border-left-color:purple;</code>)。如果你想有一个边框围绕在每一个列表单元格,那么在分组与列表之间的这个2px的边框会消失;你要拿出自己的解决方案。 --> *列表单元格宽度初始被设置为100%。因此,如果你想手动设置分组单元格的宽度,你就需要同时指定liststyle使之有width: auto。如果你想设置分组宽度并使用图片,这取决于你已弄明白在groupstyle、liststyle、imagestyle和imageleftstyle参数中的CSS,以使所有部件都工作正常。以下两行是设置分组宽度的示例: ::<code>groupstyle =width: 10em;</code> ::<code>liststyle =width: auto;</code> *相邻的导航框在它们之间仅有一个1px的边框(除了在IE6中,因其不支持必需的CSS)。如果你设置了<code>style/bodystyle</code>的顶端外边距(top margin)或底顶端外边距(bottom margin),那么此特性就不运作了。 *外层导航框表格的缺省的左外边距(margin-left)和右外边距(margin-right)被设置为“auto;”。如果你想使用导航框作为一个浮动对象(float),你需要手动设置左外边距和右外边距的值,因为自动外边距(auto margins)会阻止浮动(float)选项。例如,添加下列代码来使用导航框作为一个浮动对象: ::<code>style =width: 22em; float: right; margin-left: 1em; margin-right: 0em;</code> <includeonly> [[分类:导航模板|{{PAGENAME}}]] </includeonly>
该页面使用的模板:
Template:Navbar
(
查看源代码
)
Template:Navbox
(
查看源代码
)
Template:T1
(
查看源代码
)
Template:Tl
(
查看源代码
)
Template:`
(
查看源代码
)
Template:·
(
查看源代码
)
返回
Template:Navbox/doc
。
导航菜单
个人工具
登录
命名空间
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
评论管理
网站更新
随机页面
透明度报告
电子灵堂
帮助
维基守则
格式标准
财务报告
匿名工作
申请编制
站务管理
讨论版(登录用户)
讨论版(游客)
人物
国际巨星
二线明星
炼铜术士
神秘人
升级人
女人
噔噔咚
蘑菇人
音Lè人
纸片人
死爹人
拆腻子
洋垃圾
废物
野狗
粪蛆
普通话教材
恶俗之最
文章
创作文章
重要记录
刘人药
恶俗史
用语
概念解释
名人语录
群体
恶俗小鬼
大院子弟
时局图
组织
公司
站点
茂南党国鹰犬
友情链接
国家安全部
中国公安部
孤儿展览馆
恶俗百科
红岸基金会
工具
链入页面
相关更改
特殊页面
页面信息