Template:T

From Valve Developer Community
Jump to: navigation, search

This Template 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}}{{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}}

{{T|=}}{{=}}

{{T|!}}{{!}}

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 }}