For faster navigation, this Iframe is preloading the Wikiwand page for Template:Translink.

Template:Translink

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

模板作用

((ilh))系跨语言链接模板经统一接口和重排列参数所得模板,用于标识跨语言链接。

  • 注:原Tsl绿色标注+点击出现中英对照提示框的效果已加入小工具,请见跨语言链接效果6。

模板用法

此模板有三种用法,差别只在参数个数。

  1. ((Tsl|其他语言版本代号|在其他语言版本的条目名|中文条目名|实际显示名)),此时显示的是“实际显示名”的参数。
  2. ((Tsl|其他语言版本代号|在其他语言版本的条目名|中文条目名)),此时显示的是“中文条目名”的参数。
  3. ((Tsl|其他语言版本代号|在其他语言版本的条目名)),此时显示的是“在其他语言版本的条目名”参数(适用于无译名条目,如OpenVMS)。

注:

  • 其他语言版本代号必须是如en、es的格式,并只能写一个。
  • ((Translink))((Tsl))调用该模板效果是相同的。

效果展示

tsl模板样式演示,黄框为导航Popup

对应代码((Tsl|en|Superuser|超级用户))

當中文維基百科中存在「超级用户」條目時,效果跟用[[超级用户]]連結相同

对应代码((Tsl|en|Superuser|超级用户|真超级用户))

當中文維基百科中存在「超级用户」條目時,效果跟用[[超级用户|真超级用户]]連結相同

对应代码((Tsl|en|Multi-boot|多重引导))

當中文維基百科中不存在「多重引导」條目時,當滑鼠游標移動到「多重引导」鏈結上面時將會顯示「條目「多重引导」尚未創建,可參考英語維基百科的對應頁面:Multi-boot。」

对应代码((Tsl|en|Multi-boot|多重引导|超多重引导))

當中文維基百科中不存在「多重引导」條目時,當滑鼠游標移動到「超多重引导」鏈結上面時將會顯示「條目「多重引导」尚未創建,可參考英語維基百科的對應頁面:Multi-boot。」

  • B3-34英语B3-34

对应代码((Tsl|en|B3-34))

當中文維基百科中不存在「B3-34」條目時,當滑鼠游標移動到「B3-34」鏈結上面時將會顯示「條目「B3-34」尚未創建,可參考英語維基百科的對應頁面:B3-34。」

对应代码((Tsl|en|ATI))

當英語維基百科連到中文維基百科是en:ATI冶天科技時,則機器人User:Cewbot會在ATI建立重定向到冶天科技

若機器人User:CewbotATI所創建重定向的目標是錯誤的話,則除了提交刪除或快速刪除ATI外(如同以入間同學入魔了!是日語漫畫為由提交刪除重定向頁Welcome to Demon School! Iruma-kun一樣),還要檢查所有連入頁面的((Tsl))的參數是否有錯:

  • ((Tsl|en|ATI))<語言代碼>參數是錯誤的。
  • ((Tsl|en|ATI))<其他語言的條目名>參數是錯誤的。
  • 其維基數據所連到的頁面是錯的。

小技巧

若原名和中文条目名一样,但显示名要有所区分,则可直接把参数三放空,如:

对应代码((Tsl|en|pr (Unix)||pr))

对应代码((Tsl|en|Shred (Unix)||shred))

模板数据

基于Template:ilh重新包装的跨语言链接模板。

模板参数[编辑模板数据]

此模板首选参数不换行的行内格式。

参数描述类型状态
语言代号1

语言代号

单行文本必需
外文条目名2

在其他语言版本的条目名

单行文本必需
中文条目名3

中文条目名

页面名称可选
显示名4

显示名,若留空则显示参数3;若参数3也未指定,则显示参数2

单行文本可选
nocatnocat

是否需要分类,有值即可

未知可选

重定向

相關模板

{{bottomLinkPreText}} {{bottomLinkText}}
Template:Translink
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?