Template:Tlx: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<includeonly><tt><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{language|}}}{{{interwiki|}}}{{ns:Template}}{{{1|}}}|{{{1|}}}]]{{#iargmap:Tlx/formatter|1|{{!}}}}<nowiki>}}</nowiki></tt></includeonly><noinclude>{{documentation}}</noinclude> | <includeonly><tt><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{language|}}}{{{interwiki|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]{{#iargmap:Tlx/formatter|1|{{!}}}}<nowiki>}}</nowiki></tt></includeonly><noinclude>{{documentation}}</noinclude> |
Revision as of 22:21, 2 July 2025
{{tlxTemplate:Tlx/formatter}} 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
{{fooTemplate:Tlx/formatter|Template:Tlx/formatter|Template:Tlx/formatter|Template:Tlx/formatter}}.
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 |
This text was transcluded from Template:Tlx/doc. Visit that page to edit this text (details).