User:Chronowar/sandbox3:修订间差异

来自Arcaea中文维基
无编辑摘要
无编辑摘要
 
(未显示同一用户的46个中间版本)
第1行: 第1行:
本页面作为本地化[[模板:Navbox/doc]]的页面,仅供参考。
<div class="arcaeabox light byd">
 
<div id="title">PRAGMATISM<br />PRAGMATISM -RUSERRECTION- <span style=color:#822328>[Beyond]</span></div>
以下是正文内容。
<div id="top-image">
 
<div class="container">
__NOTOC__
<div id="tab-a" class="img-tab">
= 正文=
<div class="img-tab-part ftr" index="0">Normal</div>
{{本地化未完成}}
<div class="img-tab-part byd" index="1">Beyond</div>
本模板允许通过提供一个或多个链接列表相对快速地建立一个[[:分类:索引模板|索引模板]]。
</div>
 
<div class="tab-text-a active">
==使用==
<div class="floatnone">[[File:Songs pragmatism.jpg|256px]]</div><span class="label-text">画师</span><span lang="ja">[[画师列表#シエラ| シエラ]]</span></div>
请移除置空不用的参数。
<div class="tab-text-a">
{{hide|内容=
<div class="floatnone">[[File:Songs pragmatism byd.jpg|256px]]</div><span class="label-text">画师</span><span lang="ja">[[画师列表#シエラ| シエラ]]</span></div>
<pre>
</div></div>
{{Navbox
<div id="right-image">
| state    = autocollapse <!--autocollapse、uncollapsed、collapsed、plain、off-->
<div class="container">
| name    = {{subst:PAGENAME}}
<div id="tab-b" class="img-tab">
| title   
<div class="img-tab-part ftr" index="0">Normal</div>
| image   
<div class="img-tab-part byd" index="1">Beyond</div>
| above   
</div>
| abovestyle
<div class="tab-text-b active">
| listclass  = hlist
<div class="floatnone">[[File:Songs pragmatism.jpg|256px]]</div><span class="label-text">画师</span><span lang="ja">[[画师列表#シエラ| シエラ]]</span></div>
| group1   =
<div class="tab-text-b">
| list1   
<div class="floatnone">[[File:Songs pragmatism byd.jpg|256px]]</div><span class="label-text">画师</span><span lang="ja">[[画师列表#シエラ| シエラ]]</span></div>
| group2   =
</div></div>
| list2   
<div class="header"> 曲目信息</div>
| group3  
<div class="label"> 难度</div>
| list3   
<div class="data" style="grid-column:2 / 5">[Normal]</div>
| group4   =
<div class="byd-label">[Beyond]<br /> 仅移动版</div>
| list4   
<div class="label">曲师</div>
| group5   =
<div class="data" style="grid-column:2 / 5">[[曲师列表#onoken|onoken]]</div>
| list5   
<div class="byd-data">[[曲师列表#onoken|onoken]]</div>
| group6  
<div class="label"> 曲包</div>
| list6    =
<div class="data">[[Final Verdict]] - [[Silent Answer]]</div>
| group7  
<div class="label"> 时长</div>
| list7   
<div class="data" style="grid-column:2 / 5">2:27</div>
| group8   =
<div class="label">BPM</div>
| list8    =
<div class="data" style="grid-column:2 / 5">175</div>
| group9   =
<div class="header"> 谱面信息</div>
| list9   
<div class="label"> 难度</div>
| group10  
<div class="pst-label">[Past]</div>
| list10  
<div class="prs-label">[Present]</div>
| group11  
<div class="ftr-label">[Future]</div>
| list11  
<div class="byd-label">[Beyond]<br /> 仅移动版</div>
| group12  
<div class="label"> 等级</div>
| list12  
<div class="pst-data">4</div>
| group13  
<div class="prs-data">7</div>
| list13   =
<div class="ftr-data">9</div>
| group14  
<div class="byd-data">9</div>
| list14  
<div class="label">note数量</div>
| group15  
<div class="pst-data">680</div>
| list15   =
<div class="prs-data">771</div>
| group16  
<div class="ftr-data">831</div>
| list16   =
<div class="byd-data">888</div>
| group17  
<div class="label"> 谱面设计</div>
| list17  
<div class="data" style="grid-column:2 / 5">[[谱师列表#Toaster|吐司]]</div>
| group18   =
<div class="label"> 背景</div>
| list18  
<div id="bg-normal" class="data" style="grid-column:2 / 5">[[:分类:采用pragmatism背景的曲目|pragmatism]]</div>
| group19  
<div id="bg-beyond" class="byd-data">[[:分类: 采用pragmatism3背景的曲目|pragmatism3]]</div>
| list19   =
<div id="update-data-label" class="label"> 更新时间</div>
| group20   =
<div id="mobile-date-normal" class="data">
| list20   =
<div class="date-box">
| belowstyle =
<div><span class="label-text"> 移动版</span></div>
| below    =
<div>v4.0.255<br />(2022/07/13)</div>
}}
<div></div></div></div></div>
</pre>
}}
 
==参数描述==
[[模板:Navbox|Navbox]]使用小写的参数名称。
 
如果省略其他参数,必需的<code>name</code> <code>title</code> 会创建一个单行方框。
: 其它的所有变量都是可选的。
 
下面是用于Navbox的参数的一个完整清单。在大多数情况下,只要有参数<code>name</code> <code>title</code> 和几个<code>group</code> <code>list</code> 就可以了。
{| class="wikitable" style="text-align:center"
|-
!变量名
!说明
|-
|<code>name</code>
|该索引模板的名称(“模板:”后面的部分,注意不是模板的标题)。你可以输入<code><nowiki>{{subst:PAGENAME}}</nowiki></code> 作为这个参数的值,这也是个快捷的方法。<!-- 事实上仅当<code>title</code> 被指定,且<code>border</code>参数未被设置时,此name参数才是必需的,但是目前不支持border函数。 -->
|-
|<code>title</code>
|标题栏中的文字,作为主体内容的一个简要描述。例如<code><nowiki>[[Arcaea]]</nowiki></code>
<ref> 这应该是单独的一行,但是如果需要第二行,请使用<code><nowiki>{{brClear}}</nowiki></code> 来保证正确的居中。</ref> 本参数从技术上来说不是必需的,但是使用Navbox而不带标题是相当没有意义的。
|-
|<code>state</code>
|几个状态:<code>autocollapse、uncollapsed、collapsed、plain、off</code><br />
缺省为<code>autocollapse</code> 。如果在使用了其他可折叠表格的同一个页面上有两个或更多表格,那么navbox一开始就会折叠起来。<!--要了解技术上的实现,请参见[[MediaWiki:Common.js]]。--><br />
<code>collapsed</code>:该导航框总会在开始时以折迭起来的状态展现。<br />
<code>plain</code>:该导航框会不带右侧的“隐藏”链接,并且标题会保持居中。<br />
<code>off</code>:该导航框总会在被展开时不带右侧的“隐藏”链接,但是没有补白以保持标题居中。<ref> 这只是为了高级用法;“plain”选项应能满足大多数需要将“显示”/ “隐藏”按钮隐藏起来的情况。</ref><br />
除上述4个值之外的其他值(例如“uncollapsed”),该导航框总会在开始时以展开的状态出现,但是带有“隐藏”按钮。
<ref> 若要在单独显示框体,而在一个条目中时自动隐藏内容,可以将“uncollapsed”置于<nowiki><noinclude></nowiki> 标签之内:
<code>state = </code><nowiki><noinclude>uncollapsed</noinclude></nowiki></ref>
|-
|<code>titlestyle</code>
|应用于标题栏的一个CSS样式字符串,例如<code>background:gray</code>
|-
|<code>groupstyle</code>
|应用于分组单元格的一个CSS样式字符串,例如<code>background:#eee;</code>
|-
|<code>image</code>
|一个可选的右侧图片,以完整的文件形式编码,例如<nowiki>[[文件:Packs arcaea.jpg|75px]]</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>
|列出条目名称,通常以圆点符号模板([[模板:·]])分隔开来,例如<code><nowiki>[[Antagonism]]{{·}} [[Dantalion]]</nowiki></code>
|-
|<code>below</code>
|在group/list区段之下显示的可选文字,与<code>above</code>性质相同。
|}
其他的一些替代导航格式:[[#表格布局|表格布局]]。
 
===高级参数/复杂描述===
<!--
:; ''navbar''<sup>†</sup>
::缺省为<code>Navbar</code>。如果设置为<code>plain</code>,在标题栏左侧的<small>查 • 论 • 编</small>链接不会显示出来,而且补白会被自动应用以保持标题居中。设置为<code>off</code>可以移除<small>查 • 论 • 编</small>链接,但是不会应用补白(这只是为了高级用法;“plain”选项应能满足大多数不想要导航栏的应用。)强烈建议使用者不要隐藏导航栏,为的是使用户编辑该模板更加容易,并且可以贯穿各个页面都有一个标淮的风格。
中文模板目前不支持此参数。2008-10-23
:; ''border''<sup>†</sup>
::''关于将导航框用在另一个导航框内部,欲了解示例及更完整的描述,请参见下面的章节。''如果设置为<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''<sup>†</sup>
::显示在表格顶端一行居中位置的文字。
:; ''group<sub>n</sub>''<sup>†</sup>
::(即''group1''、''group2''等等)如果被指定,文字会显示在位于''list<sub>n</sub>''左侧的抬头单元格中。如果被省略,''list<sub>n</sub>''占用表格的全部宽度。
:; ''list<sub>n</sub>''<sup>†</sup>
::(即''list1''、''list2''等等)该模板的主体,通常为一栏链接。格式为内联;然而,如果整个列表被装入<code><nowiki><div> </div></nowiki></code>之内,文字能够被输入到不同的行中。最少需要一个''list''参数;每个附加的''list''被显示在一个单独的表格行中。每个''list<sub>n</sub>''可能在其前面有一个相对应的''group<sub>n</sub>''参数,如果提供了的话(参见下方)。
:; ''image''<sup>†</sup>
::一张图片,会显示在标题(title)之下、主体(group/list)之右侧的一个单元格中。为使图片能正确地显示,必须指定''list1''参数。''image''参数接受标淮的维基代码来显示图片,即:
::: <code><nowiki>image = [[File:Example.jpg|100px]]</nowiki></code>
:; ''imageleft''<sup>†</sup>
::一张图片,会显示在标题(title)之下、主体(list)之左侧的一个单元格中。为使图片能正确显示,必须指定''list1''参数,而且不能指定分组(group)。''imageleft''参数接受标淮的维基代码来显示图片,即:
::: <code><nowiki>imageleft = [[File:Example.jpg|100px]]</nowiki></code>
:; ''above''<sup>†</sup>
::一个全宽度单元格,显示在标题栏与第一个group/list之间,也就是位于该模板的主体(group、list和image)之上。在一个不带图片的模板中,''above''与不带''group1''参数的''list1''参数以同样的方式运作。
:; ''below''<sup>†</sup>
::一个全宽度单元格,显示在该模板主体(group、list和image)的下方。在一个不带图片的模板中,''below''与该模板最后面的不带''group<sub>n</sub>''参数的''list<sub>n</sub>''参数以同样的方式运作。作为一个使用了''below''参数的示例,请参见{{tl|非洲}}。
 
=== 样式参数 ===
一般不建议更改样式,以保持模板和网页的一致性。然而,修改样式的选项还是有的。
:; ''style''<sup>†</sup>
::指定应用到模板主体的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''<sup>†</sup>
::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''<sup>†</sup>
::应用到''title''的CSS样式,最常见的有导航栏的背景颜色:
::: <code><nowiki>titlestyle = background:</nowiki>''#nnnnnn'';</code>
::: <code><nowiki>titlestyle = background:</nowiki>''name'';</code>
 
:; ''groupstyle''<sup>†</sup>
::应用到''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''<sup>†</sup>
-->
:; ''liststyle''<sup>†</sup>
::应用到所有list的CSS样式。若指定了下面的''oddstyle''和''evenstyle''参数,则它们的优先级高于本参数。
<!-- 中文模板目前不支持以下参数。2008-10-27
:; ''list<sub>n</sub>style''<sup>†</sup>
 
:; ''listpadding''<sup>†</sup>
-->
:; ''oddstyle''
:; ''evenstyle''
::应用到奇数/偶数编号的列表。会推翻由''liststyle''定义的样式。缺省的表现是分别添加条纹状的颜色(白色和灰色)到奇数/偶数行,以提高可读性。除了在非常特别的情况下,这些设置不应更改。
<!--
::Applies to odd/even list numbers.  Overrules styles defined by ''liststyle''.  The default behavior is to add striped colors (white and gray) to odd/even rows, respectively, in order to improve readability.  These should not be changed except in extraordinary circumstances.
-->
<!-- 中文模板目前不支持以下参数。2008-10-29
:; ''evenodd'' <span style="font-weight:normal;"><code>[swap, even, odd, off]</code></span>
-->
:; ''abovestyle''<sup>†</sup>
:; ''belowstyle''<sup>†</sup>
::CSS样式,应用到顶端单元格(通过''above''参数指定)和底端单元格(通过''below''参数指定)。典型地被用来设置背景颜色或文本对齐方式:
::: <code>abovestyle = background:#''nnnnnn'';</code>
::: <code>abovestyle = text-align:[''left/center/right''];</code>
<!-- 中文模板目前不支持以下参数。2008-10-29
:; ''imagestyle''<sup>†</sup>
:; ''imageleftstyle''<sup>†</sup>
-->
===== 缺省样式 =====
这里列出的样式设置是使用导航框的编辑者最经常更改的那些设置。其他更加复杂的样式设置被排除在这个列表之外,以保持它简单。大多数样式是在[[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>设定。
 
<!-- 中文模板目前不支持以下参数。2008-10-31
=== 高级参数 ===
:; ''titlegroup''
:; ''titlegroupstyle''
:; ''innerstyle''
-->
== 表格布局 ==
由{{tl|Navbox}}'''不带'''''image''、''above''和''below''参数生成的表格(添加了灰色的列表背景色仅仅是为了演示):
<!--
Table generated by {{tl|Navbox}} '''without''' ''image'', ''above'' and ''below'' parameters (gray list background color added for illustration only):
-->
{{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''参数生成的表格(添加了灰色的列表背景色仅仅是为了演示):
<!--
Table generated by {{tl|Navbox}} '''with''' ''image'', ''above'' and ''below'' parameters (gray list background color added for illustration only):
-->
{{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''生成的表格(添加了灰色的列表背景色仅仅是为了演示):
<!--
Table generated by {{tl|Navbox}} '''with''' ''image'', ''imageleft'', ''lists'', and '''without''' ''groups'', ''above'', ''below'' (gray list background color added for illustration only):
-->
{{Navbox
|name = Navbox/doc
|state = uncollapsed
|liststyle = background:silver;
|image = {{{image}}}
|imageleft = {{{imageleft}}}
|title = {{{title}}}
|list1 = {{{list1}}}
|list2 = {{{list2}}}
|list3 = {{{list3}}}
|list4 = {{{list4}}}
}}
 
 
== 技术细节 ==
* 此模板为其大部分外观使用CSS类,因此它完全可以更换皮肤。
<!-- * 在内部此元模板使用了HTML标记代替 -->
<!--
*Internally this meta template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.
-->
* 欲了解更多技术细节请参见其[[Template_talk: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的边框会消失;你要拿出自己的解决方案。
 
*The 2px wide border between groups and lists is drawn using the border-left property of the list cell.  Thus, if you wish to change the background color of the template (for example <code>bodystyle = background:purple;</code>), then you'll need to make the border-left-color match the background color (i.e. <code>liststyle = border-left-color:purple;</code>).  If you wish to have a border around each list cell, then the 2px border between the list cells and group cells will disappear; you'll have to come up with your own solution.
-->
* 列表单元格宽度初始被设置为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>
==备注==
<references />

2022年7月24日 (日) 08:20的最新版本

PRAGMATISM
PRAGMATISM -RUSERRECTION- [Beyond]
Normal
Beyond
Songs pragmatism.jpg
画师シエラ
Songs pragmatism byd.jpg
画师シエラ
Normal
Beyond
Songs pragmatism.jpg
画师シエラ
Songs pragmatism byd.jpg
画师シエラ
曲目信息
难度
[Normal]
[Beyond]
仅移动版
曲师
曲包
时长
2:27
BPM
175
谱面信息
难度
[Past]
[Present]
[Future]
[Beyond]
仅移动版
等级
4
7
9
9
note数量
680
771
831
888
谱面设计
背景
更新时间
移动版
v4.0.255
(2022/07/13)