Template:Tlx/doc

From Young Composers
Jump to: navigation, search
Note: This documentation has been transcluded from the /doc subpage of this template at Template:Tlx/doc/doc. All documentation, categories, etc. should go there.

This template is used to show the syntax of a given template. Its primary use is for Template and Help documentation.

Mnemonic: Template Link Expanded

Syntax

{{tlx|template-name}}

Output:

{{template-name|parameters}}

Note that all parameters have to be contained in the second parameter. If you need to use the | (pipe) symbol within that second parameter (because the template you're displaying uses more than one parameter), use {{!}}.

If you need to use the equal sign in your parameters (for example, if the template you're displaying uses named parameters), use an explicitly-named numbered parameter (see example #2, below).

Examples
Example Output
{{tlx|template name|param1{{!}}param2{{!}}param3}} {{template name|param1|param2|param3}}
{{tlx|template name|2=name=your name{{!}}image=name of image on wiki}} {{template name|name=your name|image=name of image on wiki}}
{{tlx|template name|2=<br />&nbsp;&nbsp;name=your name<br />&nbsp;&nbsp;{{!}} image=name of image on wiki}} {{template name|
  name=your name
  | image=name of image on wiki}}

See also

  • {{tl}} - Links to a template without showing parameters.