模板讨论:HideH wno
编辑请求 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>
--Dabao qian℡ 2024年7月22日 (一) 15:40 (UTC)
编辑请求 2024-09-04
正在请求他人代为编辑受保护的页面(连锁保护 编辑:仅允许管理员 移动:仅允许管理员) 注意:本模板不是用于请求开放页面给予编辑,相关请求请至请求解除保护页申请;本模板是用于请求可以编辑的用户帮忙修改内容。 请求时请列明理由及内容,对于模板、模块、MediaWiki命名空间的修改请求,请阅读相关方针。(工具:处理、申请解除保护) 如果您想直接展示给管理员修改后的页面及清楚地列出编辑差异,请将本模板改为 {{Editprotected|patch=}} ,点击“显示预览”并按照提示进一步操作。 |
参照{{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>