Difference between revisions of "Template:Cmd/testcases"
From stoney cloud
m (Add testcase with special characters "=" and "!") |
m (2 revisions from gentoo-wiki:Template:Cmd/testcases: import from wiki.gentoo.org) |
(No difference)
|
Latest revision as of 08:55, 22 August 2014
Template:Template testcases notice
No parameter | ||
---|---|---|
Wiki code | {{Cmd}} | |
| ||
Main version | Template:Error | |
| ||
Sandbox version |
Parameter: 1. unnamed | ||
---|---|---|
Wiki code | {{Cmd|a command}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: unnamed with the special characters "=" and "|" | ||
---|---|---|
Wiki code | {{Cmd|a command with {{=}} and {{!}}}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: output | ||
---|---|---|
Wiki code | {{Cmd|a command|output=<pre> Some output </pre>}} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: prompt, color | ||
---|---|---|
Wiki code | {{Cmd |a command |prompt=example ? |color=blue }} | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: unnamed (10x) | ||
---|---|---|
Wiki code | {{Cmd |1. command |... |10. command }} </pre> | |
| ||
Main version | ||
| ||
Sandbox version |
Parameter: unnamed (11x) | ||
---|---|---|
Wiki code | {{Cmd |1. command |... |11. command }} | |
| ||
Main version | Template:Error | |
| ||
Sandbox version |