Template:Tl: Difference between revisions
m (No inclusion of category) |
m (Changing category) |
||
Line 104: | Line 104: | ||
* This template is a modified copy from [[Wikipedia:Tlx]]. | * This template is a modified copy from [[Wikipedia:Tlx]]. | ||
[[Category: | [[Category:Utility templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 10:16, 21 November 2008
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 "|..."). 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|more}}
- {{Tl|template name|param=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|4}} | {{x4|1|2|3|4}} | | for more |
{{Tl|x1|x=u}} | {{x1}} | "=" won't work |
{{Tl|x1|x=u}} | {{x1|x=u}} | = is okay |
Source
- This template is a modified copy from Wikipedia:Tlx.