Difference between revisions of "Template:Tl/doc"
From Pangaea Wiki
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...") |
(No difference)
|
Revision as of 22:51, 9 July 2018
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|4}} Template:Z181
|
{{x4|1|2|3|4}} Template:Z181
|
| for more |
{{Tlx|x1|x=u}} Template:Z181
|
{{x1}} Template:Z181
|
= won't work |
{{Tlx|x1|x=u}} Template:Z181
|
{{x1|x=u}} Template:Z181
|
= 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| |two}} Template:Z181
|
{{x2| |two}} Template:Z181
|
  is okay |
{{Tlx|x2| |two}} Template:Z181
|
{{x2| |two}} Template:Z181
|
is okay |
{{Tlx|x2| | two}} Template:Z181
|
{{x2| | two}} Template:Z181
|
| 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 |