Difference between revisions of "Template:Cmd/doc"

From stoney cloud
Jump to: navigation, search
m (moved Template:Shell/doc to Template:Cmd/doc: See Template talk:Shell#Name. More discussion on IRC.)
(Updated)
Line 2: Line 2:
  
 
== Usage ==
 
== Usage ==
Add this code to the page text:
+
For one command add this code to the page text:
 
<pre>
 
<pre>
{{Shell|a command}}
+
{{User:Astaecker/Shell|a command}}
 
</pre>
 
</pre>
{{Shell|a command}}
+
{{User:Astaecker/Shell|a command}}
 +
 
 +
 
 +
One command with output:
 +
<pre>
 +
{{User:Astaecker/Shell|a command
 +
|output=Some output}}
 +
</pre>
 +
{{User:Astaecker/Shell|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:
 +
<pre>
 +
{{User:Astaecker/Shell|a command
 +
|prompt=example ?
 +
|color=blue}}
 +
</pre>
 +
{{User:Astaecker/Shell|a command
 +
|prompt=example ?
 +
|color=blue}}
 +
 
 +
 
 +
Up to five commands:
 +
<pre>
 +
{{User:Astaecker/Shell|1. command
 +
|2. command
 +
|3. command
 +
|4. command
 +
|5. command
 +
}}
 +
</pre>
 +
{{User:Astaecker/Shell|1. command
 +
|2. command
 +
|3. command
 +
|4. command
 +
|5. command
 +
}}
  
 
<includeonly>[[Category:Templates]]</includeonly>
 
<includeonly>[[Category:Templates]]</includeonly>

Revision as of 12:32, 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:

{{User:Astaecker/Shell|a command}}

User:Astaecker/Shell


One command with output:

{{User:Astaecker/Shell|a command
|output=Some output}}

User:Astaecker/Shell

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:

{{User:Astaecker/Shell|a command
|prompt=example ?
|color=blue}}

User:Astaecker/Shell


Up to five commands:

{{User:Astaecker/Shell|1. command
|2. command
|3. command
|4. command
|5. command
}}

User:Astaecker/Shell