Template:CodeBox/testcases

From HPC Wiki
Revision as of 11:10, 15 December 2016 by Bgo (talk | contribs) (Created page with "<noinclude>{{Template testcases notice}}</noinclude> {{Testcase|title=No parameter |<nowiki>{{CodeBox}}</nowiki> |{{XYZ}} |{{XYZ/sandbox}} }} {{Testcase |title=Parameters: 1=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to:navigation Jump to:search
No parameter
Wiki code {{CodeBox}}

Main version Template:XYZ
Sandbox version Template:XYZ/sandbox
Parameters: 1=Some code.
Wiki code {{CodeBox|1=Some code.}}

Main version
CODE
Some code.
Sandbox version
CODE
Some code.
Parameters: title=CodeBox example with title, 1=And with some code.
Wiki code {{CodeBox|title=CodeBox example with title|1=And with some code.}}

Main version
CODE CodeBox example with tile
And with some code.
Sandbox version
CODE CodeBox example with title
Some code.
Parameters: title=CodeBox example with title, lang=bash, 1=#!/bin/bash echo "Hello, world!"
Wiki code {{CodeBox|title=CodeBox example with title|lang=bash|1=#!/bin/bash echo "Hello, world!" }}

Main version
CODE CodeBox example with title
#!/bin/bash
echo "Hello, world!"
Sandbox version
CODE CodeBox example with title
#!/bin/bash
echo "Hello, world!"