Template:Cmd/testcases

From HPC Wiki
Revision as of 10:14, 16 December 2016 by Bgo (talk | contribs) (Changed protection level for "Template:Cmd/testcases" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:navigation Jump to:search


No parameter
Wiki code {{Cmd}}

Main version
{{Cmd}}
Parameter unnamed not defined. For correct usage see template's documention.
Sandbox version


Parameter: 1. unnamed
Wiki code {{Cmd|a command}}

Main version
user $a command
Sandbox version
Parameter: unnamed with the special characters "=" and "|"
Wiki code {{Cmd|a command with {{=}} and {{!}}}}

Main version
user $a command with = and |
Sandbox version
Parameter: output
Wiki code {{Cmd|a command|output=<pre> Some output </pre>}}

Main version
user $a command
Some output
Sandbox version
Parameter: prompt, color
Wiki code {{Cmd |a command |prompt=example ? |color=blue }}

Main version
example ?a command
Sandbox version
Parameter: unnamed (10x)
Wiki code {{Cmd |1. command |... |10. command }}

Main version
user $1. command
user $2. command
user $3. command
user $4. command
user $5. command
user $6. command
user $7. command
user $8. command
user $9. command
user $10. command
Sandbox version


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

Main version
{{Cmd}}
Too many unnamed parameters. Maximum is 11. For correct usage see template's documention.
Sandbox version