Template:CodeBox/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:CodeBox and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu).
This is the template test case page for Template:CodeBox and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu).
CollapseNo parameter | |
---|---|
Wiki code | {{CodeBox}}
|
Main version | CODE {{{1}}}
|
Sandbox version | CODE {{{1}}}
}} </noinclude> |
CollapseParameters: 1=Some code. | |
---|---|
Wiki code | {{CodeBox|1=Some code.}}
|
Main version | CODE Some code.
|
Sandbox version | CODE Some code.
}} </noinclude> |
CollapseParameters: 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 title And with some code.
|
Sandbox version | CODE CodeBox example with title And with some code.
}} </noinclude> |
CollapseParameters: 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!"
}} </noinclude> |