Template:RootInvocation/sandbox

From Gentoo Wiki
Jump to:navigation Jump to:search


Parameter: 1. unnamed
Wiki code {{RootInvocation|command -h}}

Main version
root #command -h
Sandbox version
root #command -h
Parameter: unnamed with the special characters "=" and "|"
Wiki code {{RootInvocation|command with help{{=}}true and help{{!}}false}}

Main version false
Sandbox version false
Parameter: output
Wiki code {{RootInvocation|command -h|output=<pre> Some output </pre>}}

Main version
root #command -h
Some output
More output
Even more output
Sandbox version
root #command -h
Some output
More output
Even more output
Parameter: prompt, color
Wiki code {{RootInvocation |command -h |prompt=example ? |color=lightblue }}

Main version
example ?command -h
Sandbox version
example ?command -h
Parameter: unnamed (1x)
Wiki code {{RootInvocation |command 1 -h }}

Main version
root #command 1 -h
Sandbox version
root #command 1 -h
Parameter: unnamed (2x)
Wiki code {{RootInvocation |command 1 -h |command 2 -h }}

Main version
{{Cmd template error}}
Parameter 2 not defined. For correct usage see Cmd template's documentation on the 2 parameter.
Sandbox version
{{Cmd template error}}
Parameter 2 not defined. For correct usage see Cmd template's documentation on the 2 parameter.
Note
This is the template sandbox page for Template:RootInvocation (diff).
See also the companion subpage for test cases.