Template:Tl

From NDWiki
Revision as of 19:26, 14 November 2008 by Mike (talk | contribs) (Copy from enwp)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Usage: Template:Tlx

Result: Template:Tlx

Purpose and naming

The Template link takes another template-name and some associated pipe-tricked (numbered) parameters (or 'pass parameters'), and displays them as an 'example demonstration' of how the template-name template could be coded, literally. Its primary use is in instruction and documentation.

Specifics: Up to five pass parameters (numbered or nowiki-keywords) for the specified template are displayed as 'placeholders', and over 5 parameters can be displayed using a coded vertical-bar (as in "&#124;..."). A keyword parameter can be used, when tagged as a nowiki-keyword: "<nowiki>siz=10</nowiki>" with each keyword parameter surrounded by "<nowiki>" tags; see Examples at bottom.

Usage

{{Tl|template name}}
{{Tl|template name|param}}
{{Tl|template name|1|2|3}}
{{Tl|template name|1|2|3&#124;more}}
{{Tl|template name|param&#61;value}}

Up to three placeholders for parameters of the specified template

Code Result Remark
{{Tl|x0}} {{x0}}  
{{Tl|Abc}} {{Abc}}  
{{Tl|ABC}} {{ABC}}  
{{Tl|AbC}} {{AbC}}  
{{Tl|x1|one}} {{x1|one}}  
{{Tl|x2|one|two}} {{x2|one|two}}  
{{Tl|x3|1|2|3}} {{x3|1|2|3}}  
{{Tl|x4|1|2|3|4}} {{x4|1|2|3|4}} up to 5 parameters, then ...
{{Tl|x4|1|2|3&#124;4}} {{x4|1|2|3|4}} &#124; for more
{{Tl|x1|x=u}} {{x1}} = won't work

Source