Template:Tlx: Difference between revisions

From Warwick Wiki
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly><tt><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{#if:{{{language|}}}|{{{language}}}:}}{{#if:{{{interwiki|}}}|{{{interwiki}}}:}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]{{#vardefine: counter | 2 }}{{#while:|{{{{{#var:counter}}|}}}|{{!}}{{{{{#var:counter}}|}}}{{#vardefine:counter|{{#expr:{{#var:counter}} + 1}}}}}}<nowiki>}}</nowiki></tt></includeonly><noinclude>{{documentation}}</noinclude>
<includeonly><tt><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{#if:{{{interwiki|}}}|{{{interwiki}}}:}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]{{#vardefine: counter | 2 }}{{#while:|{{{{{#var:counter}}|}}}|{{!}}{{{{{#var:counter}}|}}}{{#vardefine:counter|{{#expr:{{#var:counter}} + 1}}}}}}<nowiki>}}</nowiki></tt></includeonly><noinclude>{{documentation}}</noinclude>

Latest revision as of 22:37, 2 July 2025

Documentation for {{Tlx}}    [view] [edit] [history] [purge]

{{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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
template name1

The name of the template.

Example
infobox room
Templaterequired
parameter 12

The first parameter. You can use "{{=}}" to get "=". Escape any wikitext with "<nowiki>[...]</nowiki>".

Example
foo{{=}}bar
Contentsuggested
parameter 23

The second parameter. You can use "{{=}}" to get "=". Escape any wikitext with "<nowiki>[...]</nowiki>".

Example
foo{{=}}bar
Contentsuggested
parameter 34

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.

Example
foo{{=}}bar
Contentsuggested
substsubst

Set to any value to demo the transclusion as a substitution.

Suggested values
1
Example
1
Stringoptional
Interwiki prefixinterwiki

Set this to the interwiki prefix to use if linking to a template from another wiki.

Example
wikipedia
Stringoptional

This text was transcluded from Template:Tlx/doc. Visit that page to edit this text (details).