Template:T
来自Valve Developer Community
跳转到导航
跳转到搜索

文档页面 Template:T/doc/zh 不存在。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
模板将改为显示英文文档。如果此消息后没有任何内容,则很可能该文档甚至不存在英文版本。
This template is used to display a template name as a link (or plain text) surrounded by braces, thus showing how the template name would be used in code.
Examples
{{T}} → {{}}
{{T||Test}} → {{Test}}
{{T|Test|{{P|Some Text}}}} → {{Test|Some Text}}
{{T||Test{{P|Some Text}}}} → {{Test|Some Text}}
{{T|Test|{{P|param|10}}}} → {{Test|param=10}}
Multiline support
{{T|Test|
{{P| Unnamed param}}
{{P| empty |}}
{{P| param | 8}}
}}
→
{{Test | Unnamed param | empty = | param = 8 }}
Without link
{{T||Test
{{P| Unnamed param}}
{{P| empty |}}
{{P| param | 8}}
}}
→
{{Test | Unnamed param | empty = | param = 8
}}