Template:Tlx/doc: Difference between revisions
| [checked revision] | [checked revision] |
Caleb Cooper (talk | contribs) No edit summary |
Caleb Cooper (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{small |1=Note: This documentation for {{tlx|tlx}} is also [[Wikipedia:Template doc page pattern|transcluded]] by its derivatives {{tlx|tlxb}}, {{tlx|tlxc}} (<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>{{#ifeq:{{SITENAME}}|Meta |). |{{dot}}[[ |
<includeonly>{{small |1=Note: This documentation for {{tlx|tlx}} is also [[Wikipedia:Template doc page pattern|transcluded]] by its derivatives {{tlx|tlxb}}, {{tlx|tlxc}} (<span class="plainlinks">[{{fullurl:Template:Tlx/doc |action=edit}} edit]</span>{{#ifeq:{{SITENAME}}|Meta |). |{{dot}}[[metawikimedia:template:{{PAGENAMEE}}|master page]]).}}<!--(end small:)-->}}</includeonly><noinclude>{{Documentation subpage}}{{clear}}</noinclude> |
||
{{#ifeq:{{BASEPAGENAME}}|Tlx |{{High-risk}} {{Used in system}} }} |
{{#ifeq:{{BASEPAGENAME}}|Tlx |{{High-risk}} {{Used in system}} {{Commons Import}} }} |
||
{{Commons Import}} |
|||
This template is used to show example template usage without expanding the template itself. |
This template is used to show example template usage without expanding the template itself. |
||
==Basic use== |
==Basic use== |
||
''(Note: In the following examples, [[Ellipsis|ellipses (groups of three dots)]] indicate where parameters have been omitted.)'' |
''(Note: In the following examples, [[Wikipedia:Ellipsis|ellipses (groups of three dots)]] indicate where parameters have been omitted.)'' |
||
: {{tlx{{\sandbox}}|tlx|Template|''first parameter''|''second parameter''|''third parameter''|...|''tenth parameter''}} produces: {{tlx{{\sandbox}}|Template|''first parameter''|''second parameter''|''third parameter''|...|''tenth parameter''}} |
: {{tlx{{\sandbox}}|tlx|Template|''first parameter''|''second parameter''|''third parameter''|...|''tenth parameter''}} produces: {{tlx{{\sandbox}}|Template|''first parameter''|''second parameter''|''third parameter''|...|''tenth parameter''}} |
||
| Line 171: | Line 171: | ||
*{{tl|tnull}}, like {{tnull|tlx}} without linking the template. |
*{{tl|tnull}}, like {{tnull|tlx}} without linking the template. |
||
{{Template-linking templates}} |
|||
<includeonly>{{Sandbox other||{{#ifeq:{{BASEPAGENAME}}|Tlx | |
<includeonly>{{Sandbox other||{{#ifeq:{{BASEPAGENAME}}|Tlx | |
||
[[Category:Internal template-link templates]] |
[[Category:Internal template-link templates]] |
||
Latest revision as of 15:44, 21 October 2020
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 Tlx/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.