Template:Tlx/doc: Difference between revisions
Created page with "'''{{tlx|tlx}}''' is a template used for showing off other templates. If you want to show off a template call, say <pre> {{foo|thing1|namedarg=thing2|anothernamedarg=thing3}}, </pre> you'd type <pre> {{tlx|foo|thing1|namedarg{{=}}thing2|anothernamedarg{{=}}thing3}} </pre> to get {{tlx|foo|thing1|namedarg{{=}}thing2|anothernamedarg{{=}}thing3}}. == TemplateData == <templatedata> { "params": { "1": { "label": "template name", "description": "The name of the tem..." |
No edit summary |
||
Line 60: | Line 60: | ||
} | } | ||
}, | }, | ||
"description": "Used for showing | "description": "Used for showing a template transclusion.", | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", |
Latest revision as of 22:44, 2 July 2025
{{tlx}} is a template used for showing off other templates. If you want to show off a template call, say
{{foo|thing1|namedarg=thing2|anothernamedarg=thing3}},
you'd type
{{tlx|foo|thing1|namedarg{{=}}thing2|anothernamedarg{{=}}thing3}}
to get
{{foo|thing1|namedarg=thing2|anothernamedarg=thing3}}.
TemplateData
Used for showing a template transclusion.
Parameter | Description | Type | Status | |
---|---|---|---|---|
template name | 1 | The name of the template.
| Template | required |
parameter 1 | 2 | The first parameter. You can use "{{=}}" to get "=". Escape any wikitext with "<nowiki>[...]</nowiki>".
| Content | suggested |
parameter 2 | 3 | The second parameter. You can use "{{=}}" to get "=". Escape any wikitext with "<nowiki>[...]</nowiki>".
| Content | suggested |
parameter 3 | 4 | The third parameter. You can use "{{=}}" to get "=". Escape any wikitext with "<nowiki>[...]</nowiki>". You can continue inserting unamed parameters for as many as is needed.
| Content | suggested |
subst | subst | Set to any value to demo the transclusion as a substitution.
| String | optional |
Interwiki prefix | interwiki | Set this to the interwiki prefix to use if linking to a template from another wiki.
| String | optional |