Template:T: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (grammer)
Line 1: Line 1:
<includeonly><onlyinclude><code style="padding:0; white-space:pre-wrap">&#123;&#123;{{#if:{{{1|}}}|[[Template:{{{1|}}}|{{{alt|{{{1|}}}}}}]]}}{{{2|}}}&#125;&#125;</code></onlyinclude></includeonly>
<includeonly><onlyinclude><code style="padding:0; white-space:pre-wrap">&#123;&#123;{{#if:{{{1|}}}|[[Template:{{{1|}}}|{{{alt|{{{1|}}}}}}]]}}{{{2|}}}&#125;&#125;</code></onlyinclude></includeonly>
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.  
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 ==
== Examples ==

Revision as of 13:23, 29 August 2024

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}}{{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|&#61;}}{{=}}

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