Template:T/doc: Difference between revisions
Jump to navigation
Jump to search
(Created page with "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 == {{C...") |
mNo edit summary |
||
Line 10: | Line 10: | ||
{{Code|{{T|T|{{P|Test}}{{P}}{{T|P|{{P|Some Text}}}}}}}} → {{T|Test|{{P|Some Text}}}} | {{Code|{{T|T|{{P|Test}}{{P}}{{T|P|{{P|Some Text}}}}}}}} → {{T|Test|{{P|Some Text}}}} | ||
{{Code|{{T|T|{{P}}{{P|Test}}{{T|P|{{P|Some Text}}}}}}}} → {{T||Test{{P|Some Text}}}} | {{Code|{{T|T|{{P}}{{P|Test}}{{P}}{{T|P|{{P|Some Text}}}}}}}} → {{T||Test|{{P|Some Text}}}} | ||
{{Code|{{T|T|{{P|Test}}{{P}}{{T|P|{{P|param}}{{P|10}}}}}}}} → {{T|Test|{{P|param|10}}}} | {{Code|{{T|T|{{P|Test}}{{P}}{{T|P|{{P|param}}{{P|10}}}}}}}} → {{T|Test|{{P|param|10}}}} | ||
== Multiline support == | == Multiline support == | ||
Line 28: | Line 24: | ||
{{T|Test| | {{T|Test| | ||
{{P| Unnamed param}} | {{P| Unnamed param}} | ||
{{P| empty |}} | {{P| empty |}} | ||
{{P| param | 8}} | {{P| param | 8}} | ||
}} | }} |
Latest revision as of 03:58, 1 October 2025
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
→
{{Test | Unnamed param | empty = | param = 8 }}