This is Gentoo's testing wiki. It is a non-operational environment and its textual content is outdated.
Please visit our production wiki at https://wiki.gentoo.org
Template:Tl/sandbox
From Gentoo Wiki (test)
Jump to:navigation
Jump to:search
Correct
Collapse
One anonymous parameter matching a template name
Collapse
One anonymous parameter not matching a template name (not an error, but results in a redlink)
Collapse
Using {{!}} (producing a piped link) and <nowiki> to illustrate a template call with a parameter
Wiki code
{{Tl|RootCmd{{!}}<nowiki>{{RootCmd|umount /mnt/gentoo}}</nowiki>}}
Main version
Sandbox version
↑ This is somewhat awkward, so you might want to avoid using this template to illustrate template calls containing parameters until it "natively supports" such use cases. In the meantime, the above link can be generated using
[[Template:RootCmd|<nowiki>{{RootCmd|umount /mnt/gentoo}}</nowiki>]]
.Incorrect
Collapse
No parameter (error message)
Wiki code
{{Tl}}
Main version
{{Tl template error}}
Parameter unnamed not defined. For correct usage see Tl template's documentation on the
unnamed
parameter.Sandbox version
{{Tl template error}}
Parameter unnamed not defined. For correct usage see Tl template's documentation on the
unnamed
parameter.
Collapse
Two anonymous parameters to illustrate a template call containing a parameter (not supported yet)
Collapse
Two anonymous parameters to illustrate a template call containing multiple parameters (not supported yet)
Wiki code
{{Tl|RootCmd|umount /mnt/gentoo{{!!}}output{{=}}umount: /mnt/gentoo: not mounted}}
Main version
Sandbox version
↑ Note that everything from "umount" to "not mounted" is a single anonymous parameter.
Collapse
Three or more anonymous parameters (will probably never be supported)
Wiki code
{{Tl|RootCmd|umount /mnt/gentoo|output{{=}}umount: /mnt/gentoo: not mounted}}
Main version
Sandbox version
Collapse
One anonymous parameter containing {{!}} to display a pipe character (makes a piped link instead)
Wiki code
{{Tl|RootCmd{{!}}umount /mnt/gentoo}}
Main version
Sandbox version
Collapse
One anonymous parameter containing {{!!}} or (equivalently) | to display a pipe (exposes raw wikicode)
Wiki code
{{Tl|RootCmd{{!!}}umount /mnt/gentoo|output{{=}}umount: /mnt/gentoo: not mounted}}
Main version
Sandbox version
↑ Remember that the first anonymous parameter is assumed to be a template name that can be linked to.
Note
This is the template sandbox page for Template:Tl (diff).
See also the companion subpage for test cases.
This is the template sandbox page for Template:Tl (diff).
See also the companion subpage for test cases.