模板:Tl/doc
< 模板:Tl
| 文件:Edit-copy green.svg | 模板:Strong for 模板:Terminate sentence It may contain usage information, categories and other content that is not part of the original 模板 page. |
本模板可以用来创建一个到模板的带有大括号的链接,以便于使用者复制或查看相关模板介绍。
用法
{{tl|模板名}} 或 {{tl|模板名|參數}}
舉例
- 目標模板無參數時
- 代碼:{{tl|hide}}
- 效果:{{hide}}
- 目標模板只有一個參數時
- 代碼:{{tl|hide|标题}}
- 效果:{{hide|标题}}
- 目標模板有多個參數或命名參數時
- 代碼:{{tl|hideH|<nowiki>内容=标题|内容=内容</nowiki>}}
- 效果:{{hide|标题=标题|内容=内容}}
参见
- {{tlx}},与本模板相似,但可以用管道符“|”方式引入最多11个参数。