Changes

Template:Cmd/doc

240 bytes removed, 07:55, 22 August 2014
10 revisions from [[:gentoo-wiki:Template:Cmd/doc]]: import from wiki.gentoo.org
{{Template}}
Use this template to show a shell box with a user 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: '''user $''').
; color (optional): Change the prompt color (default: some green).
; output (optional): Add the command's output.
== Usage ==
For one command add this code to See the page texttemplate's [[Template:<pre>{{Cmd|a command}}</pre>{{Cmdtestcases|a command}}  One command with outputtestcases]]:<pre>{{Cmd|a command|output=Some output}}</pre>{{Cmd|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>{{Cmd|a command|prompt=example ?|color=blue}}</pre>{{Cmd|a command|prompt=example ?|color=bluetestcases}} 
Up to five commands:<pre>== See also ==* {{CmdTl|1. commandGenericCmd}}* {{Tl|2. command|3. command|4. command|5. commandRootCmd}}</pre>* {{CmdTl|1. command|2. command|3. command|4. command|5. commandEmerge}}
<includeonly>
Bureaucrat, administrator
425
edits