Template:Other uses:修订间差异
外观
小无编辑摘要 |
小无编辑摘要 |
||
| 第1行: | 第1行: | ||
{{Hatnote|1=<!-- | {{Hatnote|1=<!--当目标条目不存在时,显示提示--> | ||
{{#ifexpr: | {{#ifexpr: | ||
{{#if:{{#invoke:Page|isExternal|{{{1}}}}}|0|1}} | {{#if:{{#invoke:Page|isExternal|{{{1}}}}}|0|1}} | ||
| 第14行: | 第14行: | ||
) | ) | ||
| | | | ||
<div class="NavFrame collapsed" style="position: relative; float: right;background-color: transparent; border: none; z-index: 1;z-index:2;"><div class="NavHead" style="width: 10px; background-color: transparent; font-weight: normal;line-height: 1em; padding: 0;"><span class="NavToggle" style="color:red;width:16em;">提示:目 | <div class="NavFrame collapsed" style="position: relative; float: right;background-color: transparent; border: none; z-index: 1;z-index:2;"><div class="NavHead" style="width: 10px; background-color: transparent; font-weight: normal;line-height: 1em; padding: 0;"><span class="NavToggle" style="color:red;width:16em;">提示:目标页面不存在<span class="toggleShow" style="display: none;">▼</span><span class="toggleHide">▲</span></span></div> | ||
<div class="NavContent" style="position: absolute; display: none; right: 0; border: 1px gray solid; background-color: lightyellow; padding: 0.3em; width: 370px;"> | <div class="NavContent" style="position: absolute; display: none; right: 0; border: 1px gray solid; background-color: lightyellow; padding: 0.3em; width: 370px;"> | ||
参数所指定的目标页面不存在,建议更正成存在页面或直接建立下列'''一个'''页面(建立前请先搜索是否有合适的存在页面可以取代): | 参数所指定的目标页面不存在,建议更正成存在页面或直接建立下列'''一个'''页面(建立前请先搜索是否有合适的存在页面可以取代): | ||
| 第41行: | 第41行: | ||
---------呈現結束 | ---------呈現結束 | ||
-->[[File:Disambig_gray.svg|25px|link=Wikipedia:消歧义]]{{#if:{{{subject|{{{subject1|}}}}}}|此{{NSPN|zh-hans}}的主题是{{{subject|{{{subject1|}}}}}}。}}-{zh-hans:关于; zh-hant:關於}-{{{other|与{{#switch:{{{guillemet|{{{書名號|{{{书名号|}}}}}}}}}|是|1|yes=《|#default=「}}'''{{{subject2|{{FULLPAGENAME}}}}}'''{{#switch:{{{guillemet|{{{書名號|{{{书名号|}}}}}}}}}|是|1|yes=》|#default=」}}标题相近或相同的{{NSPN|zh-hans}}}}},请见 “'''[[:{{#if:{{{1|}}}| | -->[[File:Disambig_gray.svg|25px|link=Wikipedia:消歧义]] {{#if:{{{subject|{{{subject1|}}}}}}|此{{NSPN|zh-hans}}的主题是{{{subject|{{{subject1|}}}}}}。}}-{zh-hans:关于; zh-hant:關於}-{{{other|与{{#switch:{{{guillemet|{{{書名號|{{{书名号|}}}}}}}}}|是|1|yes=《|#default=「}}'''{{{subject2|{{FULLPAGENAME}}}}}'''{{#switch:{{{guillemet|{{{書名號|{{{书名号|}}}}}}}}}|是|1|yes=》|#default=」}}标题相近或相同的{{NSPN|zh-hans}}}}},请见 “'''[[:{{#if:{{{1|}}}| | ||
{{{1}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | {{{1}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | ||
| t | trad | traditional | 繁 =(消歧義) | | t | trad | traditional | 繁 =(消歧義) | ||
2022年11月12日 (六) 21:42的版本
本模版用于有歧义的条目顶端,以引导读者至与该条目相关的消歧义页面。
用法
{{Other uses}}就会链接至与该页面同名的消歧义页面:
{{Other uses|其他 (消歧义)}}就会链接至其他与该页面相关的消歧义页面:
详细说明
用法:
{{Other uses
|text= 可能的前置文字
|subject =Foobar
|other =Foo
|Foobar1
|Foo1
|extend= 可能的后置文字
|wangt = 1
}}
{{Other uses
|text= 可能的前置文字
|subject =Foobar
|subject2 = Foo1
|Foobar2
|Foo2
|extend= 可能的后置文字
|guillemet = 1
}}
| 参数 | 说明 |
|---|---|
text |
可选参数,前置文字。 |
subject |
可选参数,敘述本页主题。 |
other |
可选参数,敘述同名或类似名的其它条目敘述,即“这个词或类似名的其他意义和用法”。(若需使用此参数,请先考虑使用{{For}}或{{About}})
|
匿名参数1 |
可选参数,链接其他目的地条目,一般为同名或类似名或消歧义的条目名称。(如果沒有填入此参数,则目标页面的链接后会自动加入「 (消歧义)」)
|
匿名参数2 |
可选参数,条目的显示名称。 |
extend |
可另加的最后面的自由文字內容。 |
disambig(可简写成 dis或dab) |
可选参数,可设为以下值:
|
guillemet |
可选参数,启用书名号。输入是或yes或1即可生效。
|
want |
可选参数,请求其他编者建立消歧义目标条目。输入是或yes或1即可生效。
|
- 注:当指定的页面不存在时,会被自动列入Category:未有消歧义目标页面的条目中。若有指定
want参数,则会被列入分类:请求消歧义目标页面的条目。
注意
请勿将此模板用在没有歧义的条目上。比如,一个在浏览“当归”条目的人不大可能是在搜索当归散或者其他什么奇怪的东西,因此就不适合在当归条目顶端使用此模板了。
请勿将此模板链接至其他条目,或其他非消歧义页面。如果需要这样做的话,请使用其他下列的顶注模版,例如{{about|当归}}。
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 上述zh-cn:文档; zh-tw:文件;嵌入自Template:Other uses/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (zh-cn:创建; zh-tw:建立; | 镜像)和测试样例 (zh-cn:创建; zh-tw:建立;)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |