Template:Tl

From NDWiki
Jump to: navigation, search

Usage: {{tl|template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}}

Result: {{template|first parameter|second|third|fourth|fifth|sixth|seventh|eight|ninth}}

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

Example

Code Result Remark
{{Tl|x0}} {{x0}}  
{{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 12 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
{{Tl|x1|x&#61;u}} {{x1|x=u}} &#61; is okay

Source