模板:Tl2

維基百科,自由的百科全書


文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

這是{{tl2}}模板。

{{tl2}}與{{tl}}相似。 Tl表示Template link. {{tl2}}是一個macro template,用於顯示一個模板名稱以作為一個由空白圍繞的連結,因此顯示出該模板名稱在編碼中如何被使用。其基本使用是在介紹與文件中。

{{tl2}}不同於{{tl}},因其顯示了更寬的文字式樣,像{{tlx}},且也使用了名為'SISTER=xx' and 'LANG=ll'的參數,所以它也可被用於list and link to templates on other English and non-English language sister projects

相關模板[編輯]

{{tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call.

用法[編輯]

 {{Tl|template name to display}}
and
 {{Tl2|template name to display}} -- local link, just like Tl.
 or
 {{Tl2|SISTER=V:|template name to display}} -- displays a template on Wikiversity
 or
 {{Tl2|LANG=fr.|SISTER=wikisource|template name to display}} -- displays a template 
                       on the French Wikisource sister project.

示例[編輯]

Code Result
{{Tl|x0}} {{x0}}
{{Tl2|x1}} {{x1}}
{{Tl2|SISTER=M:|3x}} {{3x}}
{{Tl2|SISTER=wikibooks|LANG=de:|WP}} {{WP}}

參見[編輯]

zh:Template:Tl2