Difference between revisions of "Template:RootCmd/testcases"

From stoney cloud
Jump to: navigation, search
(Created page with "<noinclude>{{Template testcases notice}}</noinclude> <noinclude>{{Testcase |title=No parameter |<nowiki>{{RootCmd}}</nowiki> |{{RootCmd}} |{{RootCmd/sandbox}} }} </noinclude>{{T...")
 
m (2 revisions from gentoo-wiki:Template:RootCmd/testcases: import from wiki.gentoo.org)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
 
|{{RootCmd        |a command}}
 
|{{RootCmd        |a command}}
 
|{{RootCmd/sandbox|a command}}
 
|{{RootCmd/sandbox|a command}}
 +
}}
 +
 +
{{Testcase
 +
|title=Parameter: unnamed with the special characters "{{=}}" and "{{!}}"
 +
|<nowiki>{{RootCmd|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. -->
 +
|{{RootCmd        |a command with {{=}} and &#124;}}
 +
|{{RootCmd/sandbox|a command with {{=}} and &#124;}}
 
}}
 
}}
  

Latest revision as of 08:53, 22 August 2014

Template:Template testcases notice

No parameter
Wiki code
{{RootCmd}}

Main version Template:Error

Sandbox version


Parameter: unnamed
Wiki code
{{RootCmd|a command}}

Main version
root # a command

Sandbox version


Parameter: unnamed with the special characters "=" and "|"
Wiki code
{{RootCmd|a command with {{=}} and {{!}}}}

Main version
root # a command with = and |

Sandbox version


Parameter: output
Wiki code
{{RootCmd|a command|output=<pre>
Some output
</pre>}}

Main version
root # a command
Some output

Sandbox version


Parameter: prompt, color
Wiki code
{{RootCmd
|a command
|prompt=example ?
|color=blue
}}

Main version
example ? a command

Sandbox version


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


Parameter: unnamed (11x)
Wiki code
{{RootCmd
|1. command
|...
|11. command
}}

Main version Template:Error

Sandbox version