Difference between revisions of "Template:Cmd/doc"
From stoney cloud
(Updated) |
m (fixed) |
||
Line 4: | Line 4: | ||
For one command add this code to the page text: | For one command add this code to the page text: | ||
<pre> | <pre> | ||
− | {{ | + | {{Cmd|a command}} |
</pre> | </pre> | ||
− | {{ | + | {{Cmd|a command}} |
One command with output: | One command with output: | ||
<pre> | <pre> | ||
− | {{ | + | {{Cmd|a command |
|output=Some output}} | |output=Some output}} | ||
</pre> | </pre> | ||
− | {{ | + | {{Cmd|a command |
|output=Some output}} | |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.}} | {{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.}} | ||
Line 21: | Line 21: | ||
One command with user defined prompt and color: | One command with user defined prompt and color: | ||
<pre> | <pre> | ||
− | {{ | + | {{Cmd|a command |
|prompt=example ? | |prompt=example ? | ||
|color=blue}} | |color=blue}} | ||
</pre> | </pre> | ||
− | {{ | + | {{Cmd|a command |
|prompt=example ? | |prompt=example ? | ||
|color=blue}} | |color=blue}} | ||
Line 32: | Line 32: | ||
Up to five commands: | Up to five commands: | ||
<pre> | <pre> | ||
− | {{ | + | {{Cmd|1. command |
|2. command | |2. command | ||
|3. command | |3. command | ||
Line 39: | Line 39: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ | + | {{Cmd|1. command |
|2. command | |2. command | ||
|3. command | |3. command |
Revision as of 12:33, 29 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}}
One command with output:
{{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 color:
{{Cmd|a command |prompt=example ? |color=blue}}
Up to five commands:
{{Cmd|1. command |2. command |3. command |4. command |5. command }}