Template:Tl/doc

From Pangaea Wiki
< Template:Tl
Revision as of 22:51, 9 July 2018 by MyraMidnight (Talk | contribs) (Created page with "{{documentation subpage}} This template creates example usage syntax for a template, and links the name to the template page. The name is derived from "'''T'''emplate '''l'''i...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
This is a documentation subpage for Template:Tl.
It contains usage information, categories and other content that is not part of the original template page.

This template creates example usage syntax for a template, and links the name to the template page. The name is derived from "Template list expanded".

Up to 7 pass parameters (numbered) for the specified template are displayed as 'placeholders', and more parameters are shown as "|...". An optional SISTER parameter can specify an interwiki prefix to link to another wiki. Examples:

Code Result Remark
{{Tlx|x0}}Template:Z181 {{x0}}Template:Z181  
{{Tlx|x1|one}}Template:Z181 {{x1|one}}Template:Z181  
{{Tlx|x2|one|two}}Template:Z181 {{x2|one|two}}Template:Z181  
{{Tlx|x3|1|2|3}}Template:Z181 {{x3|1|2|3}}Template:Z181  
{{Tlx|x4|1|2|3|4}}Template:Z181 {{x4|1|2|3|4}}Template:Z181 up to 7 parameters, then ...
{{Tlx|x4|1|2|3&#124;4}}Template:Z181 {{x4|1|2|3|4}}Template:Z181 &#124; for more
{{Tlx|x1|x=u}}Template:Z181 {{x1}}Template:Z181 = won't work
{{Tlx|x1|x&#61;u}}Template:Z181 {{x1|x=u}}Template:Z181 &#61; is okay
{{Tlx|x1|<nowiki>x=u</nowiki>}}Template:Z181 {{x1|x=u}}Template:Z181 sticky nowiki is okay
{{Tlx|x2| |two}}Template:Z181 {{x2|two}}Template:Z181 empty won't work
{{Tlx|x2|&#32;|two}}Template:Z181 {{x2| |two}}Template:Z181 &#32; is okay
{{Tlx|x2|&nbsp;|two}}Template:Z181 {{x2| |two}}Template:Z181 &nbsp; is okay
{{Tlx|x2| &#124; two}}Template:Z181 {{x2| | two}}Template:Z181 &#124; is okay
{{Tlx|x2| {{!}} two}}Template:Z181 {{x2| | two}}Template:Z181 {{!}}Template:Z181 is dubious
{{Tlx|x2|2=|3=two}}Template:Z181 {{x2|two}}Template:Z181 empty really doesn't work
{{Tlx|x2|3=two|2=one}}Template:Z181 {{x2|one|two}}Template:Z181 right to left okay