Template:RootCmd/testcases: Difference between revisions
From HPC Wiki
Jump to:navigation
Jump to:search
(Created page with "<noinclude>{{Template testcases notice}}</noinclude> <noinclude>{{Testcase |title=No parameter |<nowiki>{{RootCmd}}</nowiki> |{{RootCmd}} |{{RootCmd/sandbox}} }} </noinclude>...") |
m (Changed protection level for "Template:RootCmd/testcases" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
(One intermediate revision by the same user not shown) | |
(No difference)
|
Latest revision as of 10:18, 16 December 2016
No parameter | |
---|---|
Wiki code | {{RootCmd}}
|
Main version | {{RootCmd}} Parameter unnamed not defined. For correct usage see template's documention. |
Sandbox version | {{RootCmd}} Parameter unnamed not defined. For correct usage see template's documention. |
Parameter: unnamed | |
---|---|
Wiki code | {{RootCmd|a command}}
|
Main version | root # a command |
Sandbox version | # a command |
Parameter: unnamed with the special characters "=" and "|" | |
---|---|
Wiki code | {{RootCmd|a command with {{=}} and {{!}}}}
|
Main version | root # a command with = and | |
Sandbox version | # a command with = and | |
Parameter: output | |
---|---|
Wiki code | {{RootCmd|a command|output=<pre>
Some output
</pre>}}
|
Main version | root # a command Some output |
Sandbox version | # a command Some output |
Parameter: prompt, color | |
---|---|
Wiki code | {{RootCmd
|a command
|prompt=example ?
|color=blue
}}
|
Main version | example ? a command
|
Sandbox version | example ? a command
|
Parameter: unnamed (10x) | |
---|---|
Wiki code |
{{RootCmd
|1. command
|...
|10. command
}}
|
Main version | root # 1. command
root # 2. command
root # 3. command
root # 4. command
root # 5. command
root # 6. command
root # 7. command
root # 8. command
root # 9. command
root # 10. command
|
Sandbox version | # 1. command
# 2. command
# 3. command
# 4. command
# 5. command
# 6. command
# 7. command
# 8. command
# 9. command
# 10. command
|
Parameter: unnamed (11x) | |
---|---|
Wiki code | {{RootCmd
|1. command
|...
|11. command
}}
|
Main version | {{RootCmd}} Too many unnamed parameters. Maximum is 11. For correct usage see template's documention. |
Sandbox version | {{RootCmd}} Too many unnamed parameters. Maximum is 11. For correct usage see template's documention. |