Template:Other uses:修订间差异
外观
创建页面,内容为“{{Hatnote|1=<!--當目標條目不存在時,顯示提示--> {{#ifexpr: {{#if:{{#invoke:Page|isExternal|{{{1}}}}}|0|1}} and {{#if:{{{ignoreerror|}}}|0|1}} and ( ( {{#if:{{{1|}}}|1|0}} and {{#ifexist:{{{1|}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | t | trad | traditional | 繁 | s | simp | simplified | simpified | 簡 | 简 | 1 | yes | 是 | auto | 自動 | 自动 =(消歧义) |#default= }}|0|1}} ) or ( {{#if:{{{1|}}}|0|1}} and {{#ifexist:{…” |
小无编辑摘要 |
||
| (未显示同一用户的21个中间版本) | |||
| 第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;"> | ||
参数所指定的目标页面不存在,建议更正成存在页面或直接建立下列'''一个'''页面(建立前请先搜索是否有合适的存在页面可以取代): | |||
{{#ifexpr: | {{#ifexpr: | ||
{{#if:{{{1|}}}|1|0}} | {{#if:{{{1|}}}|1|0}} | ||
| 第22行: | 第22行: | ||
| t | trad | traditional | 繁 | | t | trad | traditional | 繁 | ||
| s | simp | simplified | simpified | 簡 | 简 | | s | simp | simplified | simpified | 簡 | 简 | ||
| 1 | yes | 是 | auto | 自 | | 1 | yes | 是 | auto | 自动 | 自动=0 | ||
|#default=1 | |#default=1 | ||
}} ) | | }} ) | | ||
*[[:{{{1|}}}]] | *[[:{{{1|}}}]] | ||
| | | | ||
*如果 | *如果条目名称是繁体的话: | ||
:-{[[:{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧義)]]}- | :-{[[:{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧義)]]}- | ||
*如果 | *如果条目名称是简体的话: | ||
:-{[[:{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧义)]]}- | :-{[[:{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧义)]]}- | ||
注意如果 | 注意如果条目名称是繁体字要使用繁体的“'''-{消歧義}-'''”,简体字要使用简体的“'''-{消歧义}-'''”;'''<span style="color: #ff0000;">名称简繁混用的页面将会被快速删除</span>''',但如果条目名称的简繁写法是相同的話,可任选其一。 | ||
}} | }} | ||
</div></div><includeonly>{{#switch:{{LC:{{NAMESPACE}}}} | </div></div><includeonly>{{#switch:{{LC:{{NAMESPACE}}}} | ||
|user|user_talk|user talk= | |user|user_talk|user talk= | ||
|#default=[[Category:{{#if:{{{want|}}}| | |#default=[[Category:{{#if:{{{want|}}}|请求消歧义目标页面的条目|未有消歧义目标页面的条目}}{{!}}{{FULLPAGENAME}}]] | ||
}}</includeonly> | }}</includeonly> | ||
}}<!-- | }}<!-- | ||
---------呈 | ---------呈现结束 | ||
-->[[File:Disambig_gray.svg|25px|link= | -->[[File:Disambig_gray.svg|25px|link=中医百科:消歧义]] {{#if:{{{text|}}}|{{{text|}}}。}}{{#if:{{{subject|{{{subject1|}}}}}}|此{{NSPN|zh-hans}}的主题是{{{subject|{{{subject1|}}}}}}。}}关于{{#if:{{{other|}}}|{{#switch:{{{guillemet|{{{书名号|}}}}}}|是|1|yes=《|#default=}}}}{{{other|与{{#switch:{{{guillemet|{{{书名号|}}}}}}|是|1|yes=《|#default=“}}'''{{{subject2|{{FULLPAGENAME}}}}}'''{{#switch:{{{guillemet|{{{书名号|}}}}}}|是|1|yes=》|#default=”}}标题相近或相同的{{NSPN|zh-hans}}}}}{{#if:{{{other|}}}|{{#switch:{{{guillemet|{{{书名号|}}}}}}|是|1|yes=》|#default=}}}},请见 “'''[[:{{#if:{{{1|}}}| | ||
{{{1}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | {{{1}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | ||
| 1 | yes | 是 =(消歧义) | |||
| 1 | yes | 是 | |||
|#default= | |#default= | ||
}}|{{{subject2|{{FULLPAGENAME}}}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | }}|{{{subject2|{{FULLPAGENAME}}}}} {{#switch: {{LC:{{{disambig|{{{dis|{{{dab|}}}}}}}}}}} | ||
| t | trad | traditional | 繁 =(消歧義) | | t | trad | traditional | 繁 =(消歧義) | ||
|#default =(消歧义) | |||
|#default =(消歧 | }} }}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]'''” {{#if:{{{extend|}}}|。{{{extend|}}}}}。 | ||
}} }}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]''' | |||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}}</noinclude> | {{Documentation}}</noinclude> | ||
2022年11月13日 (日) 15:35的最新版本
本模版用于有歧义的条目顶端,以引导读者至与该条目相关的消歧义页面。
用法
{{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子页面中添加分类。本模板的子页面。 |