Difference between revisions of "Template:Cmd/testcases"
From stoney cloud
(Created page with "<noinclude>{{Template testcases notice}}</noinclude> <noinclude>{{Testcase |title=No parameter |<nowiki>{{Cmd}}</nowiki> |{{Cmd}} |{{Cmd/sandbox}} }} </noinclude>{{Testcase |tit...") |
m (Add testcase with special characters "=" and "!") |
||
Line 12: | Line 12: | ||
|{{Cmd |a command}} | |{{Cmd |a command}} | ||
|{{Cmd/sandbox|a command}} | |{{Cmd/sandbox|a command}} | ||
+ | }} | ||
+ | |||
+ | {{Testcase | ||
+ | |title=Parameter: unnamed with the special characters "{{=}}" and "{{!}}" | ||
+ | |<nowiki>{{Cmd|a command with {{=}} and {{!}}}}</nowiki> | ||
+ | <!-- Can't use {{!}} inside {{Testcase}}, because it will be expanded in {{RootCmd}} and breaks the table in {{Testcase}}. So use HTML symbol for this testcase page only. --> | ||
+ | |{{Cmd |a command with {{=}} and |}} | ||
+ | |{{Cmd/sandbox|a command with {{=}} and |}} | ||
}} | }} | ||
Revision as of 07:54, 11 December 2012
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 |