Template:Tlm/sandbox

From Gentoo Wiki
Jump to: navigation, search


Correct

One anonymous parameter matching a template name
Wiki code
{{Tlm|RootCmd}}
Main version
Sandbox version


One anonymous parameter not matching a template name (not an error, but results in a redlink)
Wiki code
{{Tlm|rootcmd}}
Main version
Sandbox version


Incorrect

No parameter (error message)
Wiki code
{{Tlm}}
Main version
{{Tlm template error}}
Parameter 1 not defined. For correct usage see Tlm template's documentation on the 1 parameter.
Sandbox version


Multiple anonymous parameters (not supported yet)
Wiki code
{{Tlm|RootCmd|umount /mnt/gentoo}}
Main version
Sandbox version


One anonymous parameter containing a pipe character (exposes raw wikicode)
Wiki code
{{Tlm|RootCmd{{!!}}umount /mnt/gentoo}}
Main version
Sandbox version


↑ Unlike {{Tnm}}, which doesn't create a link, this template cannot (currently) illustrate a template call containing parameters.


One anonymous parameter containing a pipe and equals sign (exposes raw wikicode)
Wiki code
{{Tlm|RootCmd{{!!}}umount /mnt/gentoo{{!!}}prompt{{=}}#}}
Main version
Sandbox version


↑ Unlike {{Tnm}}, which doesn't create a link, this template cannot (currently) illustrate a template call containing parameters.
Note
This is the template sandbox page for Template:Tlm (diff).
See also the companion subpage for test cases.