今天是2024年10月4日 第40周 星期五

代人,时大变了。

我们生活在大地上,但我们的梦想超越天空。

“Template:Other uses”的版本间的差异

来自Akarin
跳到导航 跳到搜索
zhwp>Cdip150
zhwp>Cdip150
第5行: 第5行:
 
 呈現開始
 
 呈現開始
 
-->{{#ifexpr:
 
-->{{#ifexpr:
   ( {{#ifexist:{{{1|}}} {{#ifexpr: {{{disambig|{{{dis|0}}}}}}=1 or {{#ifeq:{{{disambig|{{{dis|no}}}}}}|yes|1|0}} | (消歧{{#ifexist:{{{1}}} (消歧義)|義|义}})}}|0|1}} )
+
   ( {{#ifexist:{{{1|}}} {{#ifexpr: {{{disambig|{{{dis|0}}}}}}=1 or {{#ifeq:{{{disambig|{{{dis|no}}}}}}|yes|1|0}} or {{#ifeq:{{{disambig|{{{dis|否}}}}}}|是|1|0}}| (消歧{{#ifexist:{{{1}}} (消歧義)|義|义}})}}|0|1}} )
 
or ( {{#if:{{{1|}}}|0|1}} and {{#ifexist:{{FULLPAGENAME}} (消歧義)|0|1}} and {{#ifexist:{{FULLPAGENAME}} (消歧义)|0|1}} )
 
or ( {{#if:{{{1|}}}|0|1}} and {{#ifexist:{{FULLPAGENAME}} (消歧義)|0|1}} and {{#ifexist:{{FULLPAGENAME}} (消歧义)|0|1}} )
 
|
 
|
 
<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="NavToggleShow">▼</span><span class="NavToggleHide">▲</span></span></div>
 
<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="NavToggleShow">▼</span><span class="NavToggleHide">▲</span></span></div>
 
<div class="NavContent" style="position: absolute; display: none; right: 0; border: 1px gray solid; background-color: lightyellow; padding: 0.3em; width: 500px;">
 
<div class="NavContent" style="position: absolute; display: none; right: 0; border: 1px gray solid; background-color: lightyellow; padding: 0.3em; width: 500px;">
 參數所指定的目標頁面不存在,建議更正成正確的存在頁面,或直接建立以下其中一個 目標 頁面:
+
 參數所指定的目標頁面不存在,建議更正成正確的存在頁面,或直接建立以下''' 其中一個''' 頁面 (建立前請先檢查是否有適合的存在頁面可以修正)
 
{{#ifexpr:
 
{{#ifexpr:
 
  {{#if:{{{1|}}}|1|0}}
 
  {{#if:{{{1|}}}|1|0}}
  and not({{{disambig|{{{dis|0}}}}}}=1 or {{#ifeq:{{{disambig|{{{dis|no}}}}}}|yes|1|0}}) |
+
  and not({{{disambig|{{{dis|0}}}}}}=1 or {{#ifeq:{{{disambig|{{{dis|no}}}}}}|yes|1|0}} or {{#ifeq:{{{disambig|{{{dis|否}}}}}}|是|1|0}}) |
 
*[[{{{1|}}}]] |
 
*[[{{{1|}}}]] |
 
*如果條目名稱是繁體的話:
 
*如果條目名稱是繁體的話:
第19行: 第19行:
 
*如果條目名稱是簡體的話:
 
*如果條目名稱是簡體的話:
 
:-{[[{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧义)]]}-
 
:-{[[{{#if:{{{1|}}}|{{{1|}}}|{{FULLPAGENAME}}}} (消歧义)]]}-
 注意如果條目名稱是繁體字要使用繁体的“-{'''消歧義'''}-”,簡体字要使用簡体的“-{'''消歧义'''}-” '''<span style="color: #ff0000;">名稱繁簡混用的頁面將會被快速刪除</span>'''。但如果條目名稱的繁簡寫法是相同的話,可任選其一。
+
 注意如果條目名稱是繁體字要使用繁体的“-{'''消歧義'''}-”,簡体字要使用簡体的“-{'''消歧义'''}-” '''<span style="color: #ff0000;">名稱繁簡混用的頁面將會被快速刪除</span>'''。但如果條目名稱的繁簡寫法是相同的話,可任選其一。
 
}}
 
}}
 
</div></div>}}<!-- 
 
</div></div>}}<!-- 
第40行: 第40行:
 
  |other=这个名字或類似名的其他意义和用法
 
  |other=这个名字或類似名的其他意义和用法
 
  |同名或類似名或消歧義的条目名
 
  |同名或類似名或消歧義的条目名
 +
|disambig=是否在目標頁面加「(消歧義)」字樣(yes/no)
 
  }}
 
  }}
 
{|class="prettytable" cellpadding=5|
 
{|class="prettytable" cellpadding=5|
第53行: 第54行:
 
|-
 
|-
 
| nowrap | extend || 可另加的最後面的自由文字內容
 
| nowrap | extend || 可另加的最後面的自由文字內容
 +
|-
 +
| nowrap | disambig || 可选参数,設為 '''1''' 或 '''yes''' 或 '''是'''時,目標頁面的名稱後面會再加「_(消歧義)」字樣。(「消歧義」三字將會自動判斷繁簡)
 +
*<small>匿名参数為空值時此項會被忽略。</small>
 
|}
 
|}
  

2007年11月12日 (一) 06:03的版本

Template:Protected

使用指導

用法:

{{Otheruses
|subject=本页面的说明
|other=这个名字或類似名的其他意义和用法
|同名或類似名或消歧義的条目名
|disambig=是否在目標頁面加「(消歧義)」字樣(yes/no)
}}
参数 说明
subject 可选参数,敘述本页主题
other 可选参数,敘述同名或類似名的其它條目敘述,即“这个词或類似名的其他意义和用法”
匿名参数 可选参数,連結其他目的地條目,一般为同名或類似名或消歧義的条目名称。
  • 如果沒有填入此參數,則會自動鏈接到該條目名稱後加上「_(消歧義)」,如「頁面名稱 (消歧義)」(「消歧義」三字將會自動判斷繁簡)
  • 如果是手動加入此參數,注意对于繁体的条目名要使用繁体的“消歧義”;簡体的条目名要使用簡体的“消歧义”。
extend 可另加的最後面的自由文字內容
disambig 可选参数,設為 1yes時,目標頁面的名稱後面會再加「_(消歧義)」字樣。(「消歧義」三字將會自動判斷繁簡)
  • 匿名参数為空值時此項會被忽略。

注:

  • 匿名参数可省略、自动附加简体“ (消歧义)”后缀的版本见Template:Otheruses-s
  • 匿名参数可省略、自动附加繁體“ (消歧義)”后缀的版本见Template:Otheruses-t

相關模板

参见

en:Template:Otheruses ja:Template:Otheruses sv:Mall:Olika betydelser vi:Tiêu bản:Otheruses zh-yue:Template:Otheruses