Template: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