「Template:存在多语言版本」:修訂間差異

無編輯摘要
改成switch
 
(未顯示由 1 位使用者於中間所作的 8 次修訂)
第1行: 第1行:
{{#if:{{{语言|}}}|
{{#switch:{{{语言|}}}
 
|英语=:<small>''For the English version, please see [[{{{页面名称|}}}]].''</small>
{{#ifeq:{{{语言|}}}|英语|:<small>''For the English version, please see [[{{{页面名称|}}}]].''</small>|}}
|日语=:<small>''日本語版については、[[{{{页面名称|}}}]]をご覧ください。''</small>
 
|道本语=:<small>''Lipu ni li jo sijelo pi Toki Pona. O tawa lukin e [[{{{页面名称|}}}]].''</small>
{{#ifeq:{{{语言|}}}|日语|:<small>''日本語版については、[[{{{页面名称|}}}]]をご覧ください。''</small>|}}
|#default=:<small>''For the English version, please see [[{{{页面名称|}}}]].''</small>
 
}}
|:<small>''For the English version, please see [[{{{页面名称|}}}]].''</small>}}
<noinclude>{{存在多语言版本/doc}}</noinclude>
 
<noinclude>本模板用于提示该页面除中文版之外,还存在其他语言的版本。
 
使用方式:
 
<blockquote><nowiki>{{存在多语言版本</nowiki>
 
|语言=[目标页面的语言](不填此项则默认为英语)
 
|页面名称=[锑星百科中目标页面的名称]
 
}}</blockquote>
 
目前语言仅支持'''英语'''和'''日语''',欢迎了解其他语言的超理学研究者进行补充。
 
以下为选择语言与显示文字之间的关系:
 
</noinclude>