编辑“︁
Template:Tl2/doc
”︁
跳转到导航
跳转到搜索
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{Documentation subpage}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> __NOTOC__ 这是{{tl2|tl2}}模板。 {{tl2|tl2}}与{{tl|tl}}相似。 '''Tl'''表示'''T'''emplate '''l'''ink. {{tl2|tl2}}是一个[[w:Macro (computer science)|macro]] [[m:Help:template|template]],用于显示一个模板名称以作为一个由空白围绕的链接,因此显示出该模板名称在编码中如何被使用。其基本使用是在介绍与文件中。 {{tl2|tl2}}不同于{{tl|tl}},因其显示了更宽的文字式样,像{{tlx|tlx}},且也使用了名为'SISTER=xx' and 'LANG=ll'的参数,所以它也可被用于''list and link to templates on other English and non-English language sister projects''。 === 相关模板 === {{tlx|tlx}} displays with the same enhanced presentation, and also expands several 'placeholder' parameters to generate a sample template call. === 用法 === <pre> {{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. </pre> === 示例 === {| class="wikitable" ! Code ! Result |- | <code><nowiki>{{Tl|x0}}</nowiki></code> | {{[[Template:X0|x0]]}} |- | <code><nowiki>{{Tl2|x1}}</nowiki></code> | <tt><nowiki>{{</nowiki>[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:x1|x1]]<nowiki>}}</nowiki></tt> |- | <code><nowiki>{{Tl2|SISTER=M:|3x}}</nowiki></code> | <tt><nowiki>{{</nowiki>[[{{{LANG|}}}M:{{ns:Template}}:3x|3x]]<nowiki>}}</nowiki></tt> |- | <code><nowiki>{{Tl2|SISTER=wikibooks|LANG=de:|WP}}</nowiki></code> | <tt><nowiki>{{</nowiki>[http://de.wikibooks.org/wiki/Vorlage:WP WP]<nowiki>}}</nowiki></tt><!--- ----- This is currently a fraudulent output result... the template code needs modified to work ----- per this plan, then this /doc file fixed up to match whatever the correct syntax actually is. ----- ALMOST work: [[:de:wikibooks:{{ns:template}}:WP |WP]] [[de:wikibooks:{{ns:template}}:WP |WP]] ----> |} === 参见 === * {{tiw|tl}} — links and edit history of the Tl template. * {{tiw|tl2}} — links and edit history of the Tl2 template. * {{tiw|tlp}} — Template link, with single parameter. * {{tiw|tlx}} — Template link, up to three parameters. * {{tiw|tlsp}} — Template link, ditto subst'ed. * {{tiw|lts}} — see Lts discussion for more variants. * {{tiw|tlu}} - like {{tlx|tl}} / {{tlx|tlp}} for any namespace. * {{tiw|tn}} - Same as tl, but shows the braces as part of the link. * {{Lcs|Internal link templates}} * {{tiw|evd}} - Show live example <includeonly> <!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE --> [[Category:输入支持模板|{{PAGENAME}}]] [[Category:内部链接模板|{{PAGENAME}}]] [[Category:姊妹计划链接模板|{{PAGENAME}}]] [[as:সাঁচ:Tl2]] [[az:Şablon:Tl2]] [[bg:Шаблон:Ш2]] [[ca:Plantilla:Tl2]] [[cs:Šablona:Šablona2]] [[en:Template:Tl2]] [[fa:الگو:الگوی]] [[fr:Modèle:M2]] [[ja:Template:Tl2]] [[ka:თარგი:Tl2]] [[ko:틀:Tl2]] [[mk:Шаблон:Tl2]] [[or:Template:Tl2]] [[pt:Predefinição:Tl2]] [[sl:Predloga:Tl2]] [[th:แม่แบบ:Tl2]] [[uk:Шаблон:Tl2]] [[vi:Tiêu bản:Tl2]] [[zh:Template:Tl2]] </includeonly>
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息