Difference between revisions of "Template:Cmd/doc"

From stoney cloud
Jump to: navigation, search
m (Add {{Template}} template and proper categories)
m (Extend to max. 10 lines.)
Line 31: Line 31:
  
  
Up to five commands:
+
Up to 10 commands:
 
<pre>
 
<pre>
 
{{Cmd|1. command
 
{{Cmd|1. command
 
|2. command
 
|2. command
|3. command
+
...
|4. command
+
|10. command
|5. command
+
 
}}
 
}}
 
</pre>
 
</pre>
Line 45: Line 44:
 
|4. command
 
|4. command
 
|5. command
 
|5. command
 +
|6. command
 +
|7. command
 +
|8. command
 +
|9. command
 +
|10. command
 
}}
 
}}
 +
 +
== See also ==
 +
* {{Tl|RootCmd}}
  
 
<includeonly>
 
<includeonly>

Revision as of 15:00, 16 July 2012

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements, fixes or voice your opinion.

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 10 commands:

{{Cmd|1. command
|2. command
...
|10. command
}}
user $ 1. command
user $
2. command
user $
3. command
user $
4. command
user $
5. command
user $
6. command
user $
7. command
user $
8. command
user $
9. command
user $
10. command

See also