删除的内容 添加的内容
从 zhwiki 导入并适配
 
Dmbox 改为 Module:Message box mbox 包装(type=disambig/setindex 由模块处理 __DISAMBIG__ 与分类)
 
第1行:
{{#invoke:Message box|mbox
<table id="
{{#switch:| type = {{{type|disambig}}}
| image |= {{{image|}}}▼
| setindex = setindexbox
{{#if:| imageright = {{{imageright|}}}▼
| disambig <!-- disambig = default -->
| #defaulttext = disambigbox{{{text|}}}
}}"| style =" {{{style|}}}">▼
}}" class="metadata plainlinks dmbox
| textstyle = {{{textstyle|}}}
{{#switch:{{{type|}}}
| nocat = {{{nocat|}}}
| setindex = dmbox-setindex
| page = {{{page|}}} <!--For testing-->▼
| disambig <!-- disambig = default -->
}}<noinclude>{{documentation}}</noinclude>▼
| #default = dmbox-disambig
▲}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td>
| <td class="mbox-image" style="padding: 2px 0 2px 0.4em;">
{{#if:{{{image|}}}
▲ | {{{image}}}
| {{#switch:{{{type|}}}
| setindex = [[File:List gray.svg|30px]]
| disambig <!-- disambig = default -->
| #default = [[File:Disambig gray.svg|30px]]
}}
}}</td>
}}<!--
Magic word for disambiguation pages:
-->{{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}
<td class="mbox-text" style="padding: 0.25em 0.4em; {{{textstyle|}}}"> {{{text}}} </td>
▲{{#if:{{{imageright|}}}
| <td class="mbox-imageright" style="padding: 2px 0.4em 2px 0;"> {{{imageright}}} </td>
}}
</tr>
</table><!--
Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
| <!-- No type fed, is also valid input -->
| disambig
| setindex = <!-- Do nothing, valid "type" -->
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:需要修复的訊息框|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
}}<!--
Magic word for disambiguation pages:
-->{{#ifeq:{{{type|}}}|disambig|__DISAMBIG__|}}<!--
Categorization:
-->{{#switch:{{{type|}}}
| setindex =
{{category handler
| main = [[Category:全部同类索引条目]]
| nocat = {{{nocat|}}} <!--So "nocat=true" works-->
▲ | page = {{{page|}}} <!--For testing-->
}}
| disambig <!-- disambig = default -->
| #default =
{{category handler
| main = [[Category:全部主条目消歧义页面]][[Category:全部消歧义页面]]
| template = [[Category:消歧義訊息模板]] <!-- Don't categorize on template pages. -->
| other = [[Category:全部消歧义页面]]
| nocat = {{{nocat|}}} <!--So "nocat=true" works-->
| page = {{{page|}}} <!--For testing-->
}}
}}<noinclude>
▲{{documentation}}
<!-- Add categories to the /doc subpage and interwikis to Wikidata, not here! -->
</noinclude>