Template:Tlp

From CSDMS
Revision as of 16:07, 21 November 2016 by WikiSysop (talk | contribs) (Created page with "<span class="nowrap">{{{{#if:{{{1|}}} | [[{{ns:Template}}:{{{1}}}|{{{1}}}]] | tlp|... }}<!-- -->{{#ifeq:{{{2|x}}}|{{{2|}}}| |{{{2}}} }}<!-- -->{{#ifeq:{{{3...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{tlp|...}}


This is the {{tlp}} (template link with parameters) template.

It can be used in documentation and talk page discussions to show how a template name would be used in code.

Here is how this template looks. Code to the left and actual rendering to the right:

{{tlp|name|parameters}} = {{name|parameters}}

Features of {{tlp}}:

  • It shows a template name with a link to that template.
  • It shows up to eight parameters.
  • It also shows empty parameters. (See examples below.)
  • It prevents line wraps in its output.
  • It uses normal text style. ({{tlx}}, for instance, uses <code>...</code> text style.)

This template belongs to a whole family of similar templates. See the see also section below for some of them. For instance, when writing documentation you might want to avoid a lot of unnecessary links, since it decreases readability – i.e. on the first occurrence of a template name, use {{tl}}, {{tlp}} or {{Tlx}} and thereafter use {{tlf}}, {{tlc}} or {{tld}}.

Examples

Template:Aligned table

See also

Template:Template-linking templates