Template:Template link with bold/doc
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
Usage
This template is a {{tl}}-style template-link tag that boldfaces the template name, and accepts parameters. It's the same as {{tlx}} except that it boldfaces the name of the template and uses Wikipedia's default font instead of a non-proptional, monospaced font, as used by the variant {{tlxb}} (which is more commonly used because it has that <code>-style monospaced look). Its main use is in highlighting to distinguish between multiple templates with similar names, on projectpages, in talk page discussions, and for nesting an example of a template-link call inside another template-link call that has already applied the <code>...</code> markup.
Examples
| Code | Result | Remark |
|---|---|---|
{{tlb|abc}}
|
{{abc}} | |
{{tlb|abc|parm1|parm2}}
|
{{abc|parm1|parm2}} | |
{{tlb|abc|parm1|parm2{{=}}foo}}
|
{{abc|parm1|parm2=foo}} | Equal signs need to be escaped using {{=}}.
|
{{tlb}}
|
{{[[Template:|]]}} | This actually substitutes the current page name. Useful as a self-reference; won't be linked. |
The rest of the documentation is for {{tlx}}, which works the same way.
Note: This documentation for {{tlx}} is also transcluded by its derivatives {{tlxb}}, {{tlxc}} (edit · master page).
This template is used to show example template usage without expanding the template itself.
Basic use
(Note: In the following examples, ellipses (groups of three dots) indicate where parameters have been omitted.)
{{tlx|Template|first parameter|second parameter|third parameter|...|tenth parameter}}produces:{{Template:Example|first parameter|second parameter|third parameter|...|tenth parameter}}
When you want to indicate setting a value to one or more parameters, you would normally use the equals-sign ("="). This doesn't work here; instead use
, like so:
{{tlx|Template|first{{=}}first value|second|third{{=}}third value}}produces:{{Template:Example|first=first value|second|third=third value}}
For more than ten parameters – with or without equals-signs – instead wrap the entire list of parameters and their values in <nowiki>...</nowiki> tags. When you do, you don't need to replace equals-signs. For instance:
{{tlx|Template|<nowiki>''first''|''second''|''third=value''|...|''999th''</nowiki>}}produces:{{Template:Example|first|second|third=value|...|999th}}
See Also
For more detail see wikipedia page wikipedia:Template:Tlx
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Template link with bold/doc Show example template usage without expanding the template itself. {{tnull}} is similar without linking the template.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also
- {{tlxb}}, a version of tlx
where the template name is shown in bold.
- {{tlb}}, a version of tl
where the template name is shown in bold.
- {{temt}}, a version of tlx
that handles templates whose names include "Template:" and pages outside the Template: namespace that are treated as templates.
- {{para}}, for the presentation of template parameters and values (e.g.
|paraname=val,|another=). - {{tnull}}, like
{{tlx}}without linking the template.