Template:CodeBox/testcases

From Mod My Classic Wiki
< Template:CodeBox
Revision as of 00:15, 31 January 2017 by Gentoo>Dcljr (use correct template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Template testcases notice

No parameter
Wiki code {{CodeBox}}

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

Main version testcases}}
Some code.
Sandbox version testcases}}
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 testcases}} CodeBox example with tile
And with some code.
Sandbox version testcases}} 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 testcases}} CodeBox example with title
#!/bin/bash
echo "Hello, world!"
Sandbox version testcases}} CodeBox example with title
#!/bin/bash
echo "Hello, world!"