Difference between revisions of "Template:Cmd/doc"

From stoney cloud
Jump to: navigation, search
m (fixed)
m (add category)
Line 1: Line 1:
 +
<includeonly>[[Category:Templates]]</includeonly>
 
Use this template to show a shell box with a user command.
 
Use this template to show a shell box with a user command.
  
Line 46: Line 47:
 
}}
 
}}
  
<includeonly>[[Category:Templates]]</includeonly>
+
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 07:42, 30 September 2011

Use this template to show a shell box with a user command.

Usage

For one command add this code to the page text:

{{Cmd|a command}}
user $ a command


One command with output:

{{Cmd|a command
|output=Some output}}
user $ a command
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 color:

{{Cmd|a command
|prompt=example ?
|color=blue}}
example ? a command


Up to five commands:

{{Cmd|1. command
|2. command
|3. command
|4. command
|5. command
}}
user $ 1. command
user $
2. command
user $
3. command
user $
4. command
user $
5. command