Template:Tlg/doc
		
		
		
		
		
		Jump to navigation
		Jump to search
		
		
	
{{tlg}} (template link [with] general [options]") is a generalised version of the {{tl}} ("template link") template. It can be used to replace or implement {{tl}} and related templates.
Parameters
Named parameters
With the exception of alttext, {{tlg}}'s named parameters are toggles that are either omitted (default) or activated (by being assigned a value such as "on", "yes", "true", "include", etc). They may be included in any order:
| Parameter | Description | 
|---|---|
braceinside | 
Includes the innermost braces as part of the template link | 
boldboldlinkboldname | 
Renders the template link/name in bold | 
code | 
Displays output using the HTML <code> formatting | 
plaincode | 
Displays output using <code> without any CSS border or background styling | 
italicitalics | 
Displays any parameters accompanying the template link/name in italic/s | 
nolink | 
Prevents the template name from being rendered as a link | 
nowrap | 
Prevents the insertion of line breaks (word wrap) in the output | 
subst | 
Includes a subst: prefix before the template link/name | 
alttext | 
Replaces the template link label with a custom text string | 
Unnamed parameters
{{tlg}} may take up to ten unnamed parameters as parameters accompanying the template link (or name).
Examples
| What you write | What you see | Notes | 
|---|---|---|
{{tlg|Admon}} | 
{{Admon}} | |
{{tlg|admoN}} | 
{{admoN}} | template names are case-sensitive | 
{{tlg|admon}} | 
{{admon}} | first letter is case-insensitive though | 
{{tlg}} | 
{{Tlg/doc}} | |
{{tlg|admon|code=on}} | 
{{admon}} | 
<code> style | 
{{tlg|admon|plaincode=on}} | 
{{admon}} | plaincode style | 
{{tlg|admon|bold=on}} | 
{{admon}} | bold link/name | 
{{tlg|admon|1|italic=on}} | 
{{admon|1}} | parameter/s in italics | 
{{tlg|admon|nolink=on}} | 
{{admon}} | |
{{tlg|admon|subst=on}} | 
{{subst:admon}} | |
{{tlg|admon|braceinside=on}} | 
{{admon}} | |
{{tlg|admon|alttext=admonition templates}} | 
{{admonition templates}} | |
{{tlg|admon|bold=on|code=on|braceinside=on}} | 
{{admon}} | 
No reason you can't combine multiple parameter settings | 
{{tlg|admon|1}} | 
{{admon|1}} | |
{{tlg|admon|1|2}} | 
{{admon|1|2}} | |
{{tlg|admon|bold=on|code=on|1|2}} | 
{{admon|1|2}} | 
Can combine named and anonymous parameters … | 
{{tlg|admon|1|2|bold=on|code=on}} | 
{{admon|1|2}} | 
… in any order … | 
{{tlg|admon|1|code=on|2|bold=on|3}} | 
{{admon|1|2|3}} | 
… even intermixed … | 
{{tlg|admon|1|code=on|2|bold=on|3|italic=on}} | 
{{admon|1|2|3}} | 
… with many different configurations. | 
{{tlg|admon|1|2|3|4|5|6|7|8|9|10}} | 
{{admon|1|2|3|4|5|6|7|8|9|10}} | |
{{tlg|admon|1|2|3|4|5|6|7|8|9|10|11}} | 
{{admon|1|2|3|4|5|6|7|8|9|10|11}} | up to 11 parameters + template name, then … | 
{{tlg|admon|1|2|3|4|5|6|7|8|9|10|11}} | 
{{admon|1|2|3|4|5|6|7|8|9|10|11}} | | for more | 
{{tlg}} | 
{{Tlg/doc}} | with no arguments, the current page name is substituted | 
{{tlg|admon|x=u}} | 
{{admon|x=u}} | = won't work | 
{{tlg|admon|x=u}} | 
{{admon|x=u}} | = is okay | 
{{tlg|admon|x{{=}}u}} | 
{{admon|x=u}} | {{=}} is okay | 
{{tlg|admon|x<nowiki>=</nowiki>u}} | 
{{admon|x=u}} | sticky nowiki is okay 
 | 
{{tlg|admon||2||}} | 
{{admon||2||}} | empty parameters work too, even at the end | 
{{tlg|admon|2=1|2}} | 
{{admon|2=1|2}} | 2 clobbers 2=1 | 
{{tlg|admon|3=2|2=1}} | 
{{admon|3=2|2=1}} | right to left okay 
 | 
- Unlimited parameters as one nowiki string
 
{{tlg|convert|<nowiki>14|m|ftin|abbr=out|sp=us</nowiki>}}