Difference between revisions of "Template:RootCmd"
From stoney cloud
m (Use "Documentation" template) |
m (moved Template:ShellRoot to Template:RootCmd: See Template talk:Shell#Name. More discussion on IRC.) |
(No difference)
|
Revision as of 12:21, 29 September 2011
[edit] Documentation
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 root command.
Parameters
- Unnamed parameters (up to 10)
- Add commands. Use {{=}} or {{!}} instead of the characters "=" or "|".
- prompt (optional)
- Change the command prompt (default: root #).
- color (optional)
- Change the prompt color (default: some red).
- output (optional)
- Add the command's output.
Usage
See the template's testcases:
Parameter: unnamed | ||
---|---|---|
Wiki code | {{RootCmd|a command}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: unnamed with the special characters "=" and "|" | ||
---|---|---|
Wiki code | {{RootCmd|a command with {{=}} and {{!}}}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: output | ||
---|---|---|
Wiki code | {{RootCmd|a command|output=<pre> Some output </pre>}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: prompt, color | ||
---|---|---|
Wiki code | {{RootCmd |a command |prompt=example ? |color=blue }} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: unnamed (10x) | ||
---|---|---|
Wiki code | {{RootCmd |1. command |... |10. command }} | |
| ||
Main version | ||
| ||
Sandbox version |
See also
Note
The above documentation is transcluded from Template:RootCmd/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.