Template:T: Difference between revisions
Jump to navigation
Jump to search
(New unified code) Tag: Removed redirect |
No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude><code style="padding:0; white-space:pre-wrap">{{{{#if:{{{1|}}}|[[Template:{{{1|}}}|{{{1|}}}]]}}{{{2|}}}}}</code></onlyinclude></includeonly> | <includeonly><onlyinclude><code style="padding:0; white-space:pre-wrap">{{{{#if:{{{1|}}}|[[Template:{{{1|}}}|{{{alt|{{{1|}}}}}}]]}}{{{2|}}}}}</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 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. | ||
Revision as of 12:55, 28 August 2024
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|{{P|Some Text}}}}{{Test|Some Text}}
→ {{T||Test{{P|Some Text}}}}{{Test|Some Text}}
→ {{T|Test|{{P|param|10}}}}{{Test|param=10}}
Multiline support
→
{{Test
| Unnamed param
| empty =
| param = 8
}}
Without link
→
{{Test
| Unnamed param
| empty =
| param = 8
}}