模板讨论:HideH wno
Shizhao在话题“编辑请求 2024-09-04”中的最新留言:1个月前
编辑请求 2024-07-22
编辑请求已处理
migrate NavFrame to mw-collapsible, see H:COLL#弃用说明.
<includeonly>{{#switch: {{{2|}}}<!--旧式定义
-->| old =
<div class="mw-collapsible {{#switch: {{{3}}} | open | no = | yes | #default = mw-collapsed }}" style="padding: 4px; border: 1px solid #a2a9b1; text-align: center; font-size: 95%; color: inherit; {{{framestyle|}}}">
<div style="line-height: 1.6em; font-weight: bold; background-color: #ccf; color: var(--color-emphasized,#000); {{{headstyle|}}}"><div style="margin: 0 4em;">{{{1}}}</div></div>
<div class="mw-collapsible-content" style="font-size: 100%; text-align: left; {{{contentstyle|}}}"><!--新式定义
-->| new | #default =
<div class="toccolours mw-collapsible {{#switch: {{{3}}} | open | no = | yes | #default = mw-collapsed }}" style="{{{framestyle|}}}">
<div style="text-align: center; font-weight: bold; {{{headstyle|}}}">{{{1}}}</div>
<div class="mw-collapsible-content" style="{{{contentstyle|}}}">
}}</includeonly>
编辑请求 2024-09-04
编辑请求已处理
参照{{HideH}}绑定CollapsibleToggle小工具,同时修正部分样式。
<includeonly><templatestyles src="HideH/styles.css" />{{#switch: {{{2|}}}<!--旧式定义
-->| old =
<div class="hidden-div mw-collapsible {{#switch: {{{3}}} | open | no = | yes | #default = mw-collapsed }}" style="padding: 4px; border: 1px solid var(--border-color-base,#a2a9b1); text-align: center; font-size: 95%; color: inherit; {{{framestyle|}}}">
<div class="skin-nightmode-reset-color collapsible-title" style="line-height: 1.6em; font-weight: bold; background-color: #ccf; color: var(--color-emphasized,#000); width: 100%; position: relative; {{{headstyle|}}}">{{{1}}}<span style="position: absolute; top: 0; right: 3px;"><span class="mw-collapsible-toggle-placeholder"><!-- 会被替换 --></span></span></div>
<div style="clear:both;"></div>
<div class="mw-collapsible-content" style="font-size: 100%; text-align: left; {{{contentstyle|}}}"><!--新式定义
-->| new | #default =
<div class="hidden-div toccolours mw-collapsible {{#switch: {{{3}}} | open | no = | yes | #default = mw-collapsed }}" style="{{{framestyle|}}}">
<div class="collapsible-title" style="text-align: center; font-weight: bold; {{{headstyle|}}}">{{{1}}}</div>
<div class="mw-collapsible-content" style="{{{contentstyle|}}}">
}}</includeonly>