[[w:|]]


This template is for having shorter links to an English Wikipedia article when the link is identical to its label. It takes the following parameters:

  • |1=必填) – 將要鏈接的維基百科條目標題。
  • |2= – 待顯示的文字。缺省情況下等於|1=
  • |lang= – 所在維基百科的語言代碼。本詞典項目默認是zh,中文(漢語)。

A similar effect can be accomplished using the pipe trick: [[w:Chicken|]] is converted to [[w:Chicken|Chicken]] during the pre-save transform, which renders as Chicken. Only one interwiki prefix can be stripped in this way. [[w:fr:Académie française|]] transforms to [[w:fr:Académie française|fr:Académie française]].

See also Template:wikipedia, which inserts a box with a link to the Wikipedia article, and has no required parameters.

舉例

說明

Because of its simplicity, the template can be substituted using subst:

  • {{subst:w|William Shakespeare|Shakespeare}} gives: [[w:William Shakespeare|Shakespeare]]

However, substituting {{subst:w|The History of the Decline and Fall of the Roman Empire}} gives an unwieldy duplication of content the template is here to avoid in the first place: [[w:The History of the Decline and Fall of the Roman Empire|The History of the Decline and Fall of the Roman Empire]]

模板數據

這是用於新版可視化編輯器和其他工具的模板數據說明文件。

來自W的模板數據

This template is for having shorter links to an English Wikipedia article when the link is identical to its label. It had one mandatory parameter. There is a similar one without any mandatory parameter {{wikipedia}}

模板參數[編輯模板資料]

此模板以參數行內格式為優先。

參數描述類型狀態
article1

Page to link on Wikipedia

範例
Cursive script (East Asia)
必填
label2

Text displayed on the link

範例
cursive script
建議
language codelang

the ISO language code of the target Wikipedia.

預設
en
範例
es
字串非必填