Template:Tl2

From Wikimedia Commons, the free media repository
Jump to: navigation, search

{{[[Template:|]]}}

Documentation icon Documentationviewedithistorypurge

This documentation is transcluded from Template:Tl2/doc.

This is the {{tl2}} template.


Same as {{tl}} except adds <code></code> around it and allows for one or two parameters.

Comparison:

Comparison 2:

  • {{tl|template|arg1|arg2}} → {{arg1}}
  • {{tl2|template|arg1|arg2}} → {{template|arg1|arg2}}

Template links[edit]

Code Result Notes lock

{{t|example}}

{{Example}} makes brackets part of the link; see docu Lock-r.svg

{{t0|example}}

Example just link, without the brackets; see docu Lock-g.svg

{{t1|example}}

{{Example}} inner brackets are part of the link; see docu Lock-g.svg
{{tl|example}} {{example}} makes brackets around the link; see docu Lock-r.svg

{{tls|example}}

{{subst:example}} no parameters, adds "subst:" Lock-r.svg

{{tlx|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5|7|8|...}} up to 8 parameters Lock-r.svg

{{tlxs|example|1|2|3|4|5||7|8|9}}

{{subst:example|1|2|3|4|5||7|8|...}} up to 8 parameters, adds "subst:"; see docu Lock-g.svg

{{tlf|example|1|2|3|...up to 8}}

{{example|1|2|3|...up to 8}} up to 8 parameters, no link; see docu Lock-r.svg

{{tlc|example|1|2|3|4|||7|up to 8|9}}

{{example|1|2|3|4|||7|up to 8}} up to 8 parameters, no link, <code> style Lock-g.svg

{{tld|example|1|2||3||}}

{{example|1||2|3||}} up to 8 parameters, <code> style; see docu Lock-g.svg

{{tlr|User:Example}}

{{User:Example}} like {{tl}} but for any namespace Lock-g.svg

{{tle|p1=1|v1|p2=2|v2|p3=3|v3}}

{{ Tle1 = v12 = v23 = v3 }} decribes parameters and their values Lock-g.svg

Alternative forms[edit]

Note: These ignore empty parameters.
Code Result Notes lock

{{tlp|example|1|2|3|4|5||7|8|9}}

{{example|1|2|3|4|5|7|8}} up to 8 parameters; ignores empty parms Lock-r.svg

{{tl2|example|p1|p2}}

{{example|p1|p2}} up to 2 parameters, <code> style; see docu Lock-g.svg

{{tlsp|example|1|2|3|4|5}}

{{subst:example|1|2|3|etc.}} up to 3 parameters, adds linked "subst:" Lock-g.svg

{{tlsx|example||2|3||6|7|8}}

{{subst:example|2|3|6|...}} up to 5 parameters, adds linked "subst:", teletype style Lock-g.svg