今天是2024年12月23日 第52周 星期一
代人,时大变了。
我们生活在大地上,但我们的梦想超越天空。
更改
跳到导航
跳到搜索
機器人35:更新模板使用量為39520
<noinclude>{{Documentation subpage}}</noinclude>
{{high-use|39520}}
<!-- 在本行下編輯模板說明 -->
{{mbox templates}}
此為 {{tl|dmbox}} 或 '''消歧義頁腳訊息框''' 元模板。
本模板用以建立消歧義及[[Wikipedia:消歧義#設置索引條目|設置索引條目]]訊息框,像是 {{tl|disambig}} 和 {{tl|shipindex}}。
本模板運作方式類似 {{tl|ambox}} 且大部分使用了相同的參數。主要差異在於本訊息框用在消歧義風格,並只有2種 "type" 設定選項。
== 用法 ==
简单用法示例:
<pre>
{{dmbox | text = Some text.}}
</pre>
{{dmbox | text = Some text.}}
<pre>
{{dmbox | type = setindex | text = Some text.}}
</pre>
{{dmbox | type = setindex | text = Some text.}}
复杂用法示例:
<pre>
{{dmbox
| type = setindex
| image = {{nowrap| [[File:Schooner.svg|30px]] [[File:List gray.svg|30px]] }}
| textstyle = color: red; font-weight: bold; font-style: normal;
| text = The message body text.
}}
</pre>
{{dmbox
| type = setindex
| image = {{nowrap| [[File:Schooner.svg|30px]] [[File:List gray.svg|30px]] }}
| textstyle = color: red; font-weight: bold; font-style: normal;
| text = The message body text.
}}
其他一些参数组合:
{{dmbox
| text = No type and no image given ('''default''')
}}
{{dmbox
| image = none
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
{{dmbox
| type = setindex
| imageright = [[File:Schooner.svg|33px]]
| text = type = setindex <br> imageright = <nowiki>[[File:Schooner.svg|33px]]</nowiki>
}}
{{dmbox
| type = setindex
| imageright = [[File:Schooner.svg|33px]]
| text =
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.
}}
=== 参数 ===
所有的参数清单:
<pre>
{{dmbox
| type = disambig / setindex
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS values
| textstyle = CSS values
| text = The message body text.
}}
</pre>
'''type'''
:If no '''type''' parameter is given the template defaults to type '''disambig'''.
:'''disambig''' = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambig". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:全部消歧義頁面]] and [[:Category:全部主條目消歧義頁面]].
:'''setindex''' = Does ''not'' trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds [[:Category:全部設置索引條目]].
<s>'''category'''</s>
:''Don't use this parameter, it is currently broken. I will fix that. --[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 21:42, 4 March 2009 (UTC)''
'''image'''
:'''No parameter''' = If no '''image''' parameter is given, the template uses the default disambig or setindex image, depending on the '''type''' parameter.
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
::<code><nowiki>image = [[File:Schooner.svg|30px]]</nowiki></code>
:'''none''' = Means that no image is used.
'''imageright'''
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
::<code><nowiki>imageright = [[File:Nuvola apps bookcase.png|40px]]</nowiki></code>
:'''Anything''' = Any other object that you want to show on the right side.
'''style'''
:Optional [[Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:
::<code>style = margin-bottom: 0.2em;</code>
'''textstyle'''
:Optional [[Cascading Style Sheets|CSS]] values used by the text cell. For example:
::<code>textstyle = text-align: center;</code>
'''text'''
:The message body text. This message box has ''italic'' text as default, thus no need to manually set that.
=== 技术细节 ===
该模板当前使用硬编码的样式和类名称。以后,它将仅使用CSS类,使皮肤更容易使用。 (与此同时,可以使用“ <code>!important </ code>”关键字对它进行外观设置。)
如果需要在text参数中使用特殊字符,则需要像这样转义它们:
<pre>
{{dmbox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}
</pre>
{{dmbox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}
在内部,此元模板使用HTML标记而不是表代码的Wiki标记。这是我们制作元模板的常用方法,因为Wiki标记有几个缺点。例如,它使在参数中使用[[m:Help:ParserFunctions |解析器函数]]和特殊字符变得更加困难。
有关更多技术细节,请参见[[Template talk:Dmbox | 讨论页面]]。由于此模板的工作原理几乎与{{tl | ambox}},{{tl | tmbox}},{{tl | imbox}},{{tl | cmbox}}和{{tl | ombox}}的讨论页一样,相关页面也可能包含更多详细信息。
== 參見 ==
{{Mbox templates see also}}
其他页面:
* [[Wikipedia:消歧義]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].
* [[Wikipedia:WikiProject Disambiguation]]
* [[MediaWiki:Disambiguationspage]] – Should list all disambiguation message boxes, so that some automatic tools can know what pages are disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.
* {{tl|disambig}} – 通用消歧義訊息模板。
* {{tl|SIA}} – The generic set index article message box.
<includeonly>
<!-- 本行下加入模板的分類 -->
[[Category:維基百科元模板|{{PAGENAME}}]]
[[Category:消歧義模板|{{PAGENAME}}]]
<!-- 本行下加入模板的跨語言鏈接 -->
[[as:সাঁচ:Dmbox]]
[[ca:Plantilla:Metadesambig]]
[[diq:Şablon:Dmbox]]
[[en:Template:Dmbox]]
[[fa:الگو:Dmbox]]
[[ja:Template:Dmbox]]
[[km:ទំព័រគំរូ:Dmbox]]
[[ms:Templat:Dmbox]]
[[ne:ढाँचा:Dmbox]]
[[or:ଛାଞ୍ଚ:Dmbox]]
[[ps:کينډۍ:Dmbox]]
[[pt:Predefinição:Dmbox]]
[[ro:Format:Dmbox]]
[[si:සැකිල්ල:Dmbox]]
[[sr:Шаблон:Dmbox]]
[[th:แม่แบบ:Dmbox]]
[[tpi:Template:Dmbox]]
[[tr:Şablon:Dmbox]]
</includeonly>
{{high-use|39520}}
<!-- 在本行下編輯模板說明 -->
{{mbox templates}}
此為 {{tl|dmbox}} 或 '''消歧義頁腳訊息框''' 元模板。
本模板用以建立消歧義及[[Wikipedia:消歧義#設置索引條目|設置索引條目]]訊息框,像是 {{tl|disambig}} 和 {{tl|shipindex}}。
本模板運作方式類似 {{tl|ambox}} 且大部分使用了相同的參數。主要差異在於本訊息框用在消歧義風格,並只有2種 "type" 設定選項。
== 用法 ==
简单用法示例:
<pre>
{{dmbox | text = Some text.}}
</pre>
{{dmbox | text = Some text.}}
<pre>
{{dmbox | type = setindex | text = Some text.}}
</pre>
{{dmbox | type = setindex | text = Some text.}}
复杂用法示例:
<pre>
{{dmbox
| type = setindex
| image = {{nowrap| [[File:Schooner.svg|30px]] [[File:List gray.svg|30px]] }}
| textstyle = color: red; font-weight: bold; font-style: normal;
| text = The message body text.
}}
</pre>
{{dmbox
| type = setindex
| image = {{nowrap| [[File:Schooner.svg|30px]] [[File:List gray.svg|30px]] }}
| textstyle = color: red; font-weight: bold; font-style: normal;
| text = The message body text.
}}
其他一些参数组合:
{{dmbox
| text = No type and no image given ('''default''')
}}
{{dmbox
| image = none
| text = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
{{dmbox
| type = setindex
| imageright = [[File:Schooner.svg|33px]]
| text = type = setindex <br> imageright = <nowiki>[[File:Schooner.svg|33px]]</nowiki>
}}
{{dmbox
| type = setindex
| imageright = [[File:Schooner.svg|33px]]
| text =
This article includes a [[Wikipedia:WikiProject Ships/Guidelines#Index pages|list of ships]] with the same or similar names. If an [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|internal link]] for a specific ship referred you to this page, you may wish to change the link to point directly to the intended ship article, if one exists.
}}
=== 参数 ===
所有的参数清单:
<pre>
{{dmbox
| type = disambig / setindex
| image = none / [[File:Some image.svg|40px]]
| imageright = [[File:Some image.svg|40px]]
| style = CSS values
| textstyle = CSS values
| text = The message body text.
}}
</pre>
'''type'''
:If no '''type''' parameter is given the template defaults to type '''disambig'''.
:'''disambig''' = Makes it so the {{tl|disambig editintro}} is displayed when editing a page with this template on. (Means that this template internally sets the CSS id "disambig". The id is used by the javascript in [[MediaWiki:Common.js]] to determine if a page is a disambiguation page or not.) And adds [[:Category:全部消歧義頁面]] and [[:Category:全部主條目消歧義頁面]].
:'''setindex''' = Does ''not'' trigger the {{tl|disambig editintro}} when editing a page. (Because this instead sets the CSS id "setindexbox".) And adds [[:Category:全部設置索引條目]].
<s>'''category'''</s>
:''Don't use this parameter, it is currently broken. I will fix that. --[[User:Davidgothberg|David Göthberg]] ([[User talk:Davidgothberg|talk]]) 21:42, 4 March 2009 (UTC)''
'''image'''
:'''No parameter''' = If no '''image''' parameter is given, the template uses the default disambig or setindex image, depending on the '''type''' parameter.
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
::<code><nowiki>image = [[File:Schooner.svg|30px]]</nowiki></code>
:'''none''' = Means that no image is used.
'''imageright'''
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.
:'''An image''' = Should be an image with usual wiki notation. 30px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:
::<code><nowiki>imageright = [[File:Nuvola apps bookcase.png|40px]]</nowiki></code>
:'''Anything''' = Any other object that you want to show on the right side.
'''style'''
:Optional [[Cascading Style Sheets|CSS]] values used by the entire message box table. Without quotation marks <code>" "</code> but with the ending semicolons <code>;</code>. For example:
::<code>style = margin-bottom: 0.2em;</code>
'''textstyle'''
:Optional [[Cascading Style Sheets|CSS]] values used by the text cell. For example:
::<code>textstyle = text-align: center;</code>
'''text'''
:The message body text. This message box has ''italic'' text as default, thus no need to manually set that.
=== 技术细节 ===
该模板当前使用硬编码的样式和类名称。以后,它将仅使用CSS类,使皮肤更容易使用。 (与此同时,可以使用“ <code>!important </ code>”关键字对它进行外观设置。)
如果需要在text参数中使用特殊字符,则需要像这样转义它们:
<pre>
{{dmbox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}
</pre>
{{dmbox
| text = <div>
Equal sign = and a start and end brace { } work fine as they are.
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.
And now a pipe and end braces <nowiki>|}}</nowiki>.
</div>
}}
在内部,此元模板使用HTML标记而不是表代码的Wiki标记。这是我们制作元模板的常用方法,因为Wiki标记有几个缺点。例如,它使在参数中使用[[m:Help:ParserFunctions |解析器函数]]和特殊字符变得更加困难。
有关更多技术细节,请参见[[Template talk:Dmbox | 讨论页面]]。由于此模板的工作原理几乎与{{tl | ambox}},{{tl | tmbox}},{{tl | imbox}},{{tl | cmbox}}和{{tl | ombox}}的讨论页一样,相关页面也可能包含更多详细信息。
== 參見 ==
{{Mbox templates see also}}
其他页面:
* [[Wikipedia:消歧義]] – Also has a section explaining [[Wikipedia:Disambiguation#Set index articles|set index articles]].
* [[Wikipedia:WikiProject Disambiguation]]
* [[MediaWiki:Disambiguationspage]] – Should list all disambiguation message boxes, so that some automatic tools can know what pages are disambiguation pages. Now also has a separate list with all set index message boxes, so some tools can know what pages are set index articles.
* {{tl|disambig}} – 通用消歧義訊息模板。
* {{tl|SIA}} – The generic set index article message box.
<includeonly>
<!-- 本行下加入模板的分類 -->
[[Category:維基百科元模板|{{PAGENAME}}]]
[[Category:消歧義模板|{{PAGENAME}}]]
<!-- 本行下加入模板的跨語言鏈接 -->
[[as:সাঁচ:Dmbox]]
[[ca:Plantilla:Metadesambig]]
[[diq:Şablon:Dmbox]]
[[en:Template:Dmbox]]
[[fa:الگو:Dmbox]]
[[ja:Template:Dmbox]]
[[km:ទំព័រគំរូ:Dmbox]]
[[ms:Templat:Dmbox]]
[[ne:ढाँचा:Dmbox]]
[[or:ଛାଞ୍ଚ:Dmbox]]
[[ps:کينډۍ:Dmbox]]
[[pt:Predefinição:Dmbox]]
[[ro:Format:Dmbox]]
[[si:සැකිල්ල:Dmbox]]
[[sr:Шаблон:Dmbox]]
[[th:แม่แบบ:Dmbox]]
[[tpi:Template:Dmbox]]
[[tr:Şablon:Dmbox]]
</includeonly>