{{Ptl}}模板已弃用。
| grouppadding | 不显示不显示显示显示 |
| title居中 | 不显示不显示显示显示 |
| 移动端绿条 | 不显示不显示显示显示 |
| 其他问题 | 不显示不显示显示显示 |
| Template:Navbox ---Title and Navbar--- -->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!-- --><td class="navbox-group" style="{{{basestyle|}}};{{Ptl}}模板已弃用。{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!-- --><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!-- -->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!-- -->class="navbox-title"><!-- -->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!-- -->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!-- -->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:Lua错误:attempt to compare string with number。em;"> </div>}}|<!-- -->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:Lua错误:attempt to compare string with number。em;text-align:left;"> </div>}}}}|<!-- --><div style="float:left; width:Lua错误:attempt to compare string with number。em;text-align:left;">{{Ptl}}模板已弃用。<!-- -->{{Navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!-- --></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:Lua错误:attempt to compare string with number。em;"> </div>}}}}<!-- --><span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!-- -->{{{title}}}</span></th></tr>}}<!-- 需要对每个group进行修改: -->{{#if:{{{list2|}}}|<!-- -->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!-- -->{{#if:{{{group2|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{Ptl}}模板已弃用。{{{groupstyle|}}};{{{group2style|}}}"><!-- -->{{{group2}}}</td><td style="text-align:left;border-left:2px solid #fdfdfd;|<td colspan=2 style="}}<!-- -->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!-- -->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!-- --><div style="padding:{{{listpadding|0em 0.25em}}}">{{{list2}}}</div></td></tr>}}<!-- |
MediaWiki:Gadget-desktop-styles.css .navbox-group { font-weight: 700; Lua错误:attempt to compare string with number。 white-space: nowrap; } Lua错误:attempt to compare string with number。 |
| MediaWiki:Gadget-mobile-styles.css html > body.skin-minerva .navbox { border: 1px solid #aaa; clear: both; padding: 1px; text-align: center; width: 100%; {{Ptl}}模板已弃用。} {{Ptl}}模板已弃用。 html > body.skin-minerva .navbox-subgroup .navbox-group{{Ptl}}模板已弃用。 { background: #e6f6e6; } Lua错误:attempt to compare string with number。 @media screen and (max-width: 640px) { html > body.skin-minerva .navbox-group{{Ptl}}模板已弃用。 { display: block; {{Ptl}}模板已弃用。 } html > body.skin-minerva .navbox-group+* { Lua错误:attempt to compare string with number。Lua错误:attempt to compare string with number。Lua错误:attempt to compare string with number。 } Lua错误:attempt to compare string with number。{{Ptl}}模板已弃用。} |
|
| Template:Navbox subgroup |border = {{#if:{{{border|}}}|{{{border}}}|Lua错误:attempt to compare string with number。}} Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 Lua错误:attempt to compare number with string。 |style = Lua错误:attempt to compare string with number。{{{style|}}}{{Ptl}}模板已弃用。{{{bodystyle|}}} |groupstyle = Lua错误:attempt to compare string with number。{{{groupstyle|}}} |{{#if:{{{evenodd|}}}|evenodd|void1}} = {{{evenodd|}}} |{{#if:{{{listpadding|}}}|listpadding|void2}} = {{{listpadding|}}} {{Ptl}}模板已弃用。 需要对每个group进行修改: |group1 = Lua错误:attempt to compare string with number。{{{group1{{Ptl}}模板已弃用。}}}Lua错误:attempt to compare string with number。 |
listpadding不同,grouppadding目前是一个仅供{{Navbox subgroup}}使用的参数,而且是以“先用0覆盖样式表的默认值,再套一层div并规定其左右边距”这种迂回的方式修改了其默认值,而且会与groupstyle发生冲突。这里将这一参数整合进{{Navbox}}中。值得一提的是,修改后的{{Navbox subgroup}}与{{Navbox|subgroup}}已经完全一致,英文维基则已经用后者完全代替并删除了前者。collapseButton,导致规定的宽度失效。nomobile,所以将样式表中的display:none删除,并效仿空白div添加一个mobileonly的空格使移动版标题也居中。