• Home
  • Random
  • Log in
  • Settings
Donate Now If this site has been useful to you, please give today.
  • About Wikiversity
  • Disclaimers
Wikiversity

Template:Tlx

  • Language
  • Watch
  • Edit
Template documentation[view] [edit] [history] [purge]

{{tlx|template|first parameter|second|third|fourth|etc}} becomes →
{{template|first parameter|second|third|fourth|etc}}

Purpose and naming: Mnemonically 'Template list expanded'... named after {{tl}} 'Template list'

Usage

edit
{{Tlx|template name}}
{{Tlx|template name|param}}
{{Tlx|template name|param=value}}
  • This template takes a template-name and up to 128 optional number of associated parameters (or 'pass parameters'), and aggregates them into an 'example demonstration' of how the template might be used. It's primary use is in instruction and documentation such as this passage.
  • Additionally, tlx can be used to demonstrate templates on other sister projects.
  • If more than 128 associated parameters are given the remainder will be truncated to "...".

Examples

edit
Markup Displays Remarks
{{tlx|tlx}} {{tlx}}  
{{tlx|tlx|SISTER=w:}} {{tlx|SISTER=w:}} = won't work
{{tlx|tlx|1|2|3|4}} {{tlx|1|2|3|4}} you can use | to get around the 128 limitation
{{tlx|tlx|1|2|3{{!}}4}} {{tlx|1|2|3|4}} {{!}} also works
{{tlx|tlx|SISTER=w:}} {{tlx|SISTER=w:}} you can use = to display named parameters
{{tlx|tlx|<nowiki>SISTER=w:</nowiki>}} {{tlx|SISTER=w:}} sticky nowiki also works
{{tlx|tlx| |two}} {{tlx| |two}} empty parameters work
{{tlx|tlx|2=one|two}} {{tlx|two}} two clobbers 2=one
{{tlx|tlx|3=two|2=one}} {{tlx|one|two}} right to left okay

See Also

edit
  • v
  • t
  • e
Template linking templates
TL
  • {{Tl}} – Template link, no parameters and normal text style.
  • {{Tlc}} – Not linked, several parameters and text in <code></code> style.
  • {{Tld}} – Not linked, several parameters and teletype text style.
  • {{Tlf}} – Not linked, several parameters and normal text style.
  • {{Tlx}} – Template link, several parameters and interwiki links, teletype text style.
  • {{Tn}} – Same as {{Tl}}, but shows the braces as part of the link.
  • {{Tla}} - Same as {{Tl}}, but it allows you to give display different text than you are linking to.
See also: {{Lts}}, {{Tlxb}}, {{Para}}
The above documentation is transcluded from Template:Tlx/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikiversity.org/w/index.php?title=Template:Tlx&oldid=2456954"
Last edited on 8 December 2022, at 11:02

Languages

      This page is not available in other languages.

      Wikiversity
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 8 December 2022, at 11:02.
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikiversity
      • Disclaimers
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop