Changes

Template:RootCmd/doc

270 bytes removed, 07:51, 22 August 2014
10 revisions from [[:gentoo-wiki:Template:RootCmd/doc]]
{{Template}}
Use this template to show a shell box with a root command.
 
== Parameters ==
; Unnamed parameters (up to 10): Add commands. Use {{Tl|1==}} or {{Tl|!}} instead of the characters "=" or "|".
; prompt (optional): Change the command prompt (default: '''root #''').
; color (optional): Change the prompt color (default: some red).
; output (optional): Add the command's output.
== Usage ==
For one command add this code to See the page texttemplate's [[Template:<pre>{{RootCmd|a command}}</pre>{{RootCmdtestcases|a command}}  One command with outputtestcases]]:<pre>{{RootCmd|a command|output=Some output}}</pre>{{RootCmd|a command|output=Some output}}{{Note|''output'' - as a named parameter - is optional and can additional be used in the following examples. This is also true for all following named parameters.}}  One command with user defined prompt and colorTemplate:<pre>{{RootCmd|a command|prompt=example ?|color=blue}}</pre>{{RootCmd|a command|prompt=example ?|color=bluetestcases}} 
Up to five commands:<pre>== See also ==* {{RootCmdTl|1. commandGenericCmd}}* {{Tl|2. command|3. command|4. command|5. commandCmd}}</pre>* {{RootCmdTl|1. command|2. command|3. command|4. command|5. commandEmerge}}
<includeonly>
Bureaucrat, administrator
425
edits