Template:FileBox/testcases

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

Main version Template:XYZ
Sandbox version Template:XYZ/sandbox
Parameters: filename=/tmp/file, 1=Some text/code.
Wiki code {{FileBox|filename=/tmp/file|1=Some text/code.}}

Main version
FILE File
Some text/code.
Sandbox version
FILE File
Some text/code.
Parameters: title=FileBox example, 1=Some text/code.
Wiki code {{FileBox|title=FileBox example|1=Some text/code.}}

Main version
FILE {{{filename}}}FileBox example
Some text/code.
Sandbox version
FILE {{{filename}}}FileBox example
Some text/code.
Parameters: title=FileBox example, filename=/tmp/file, 1=Some text/code.
Wiki code {{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}

Main version
FILE /tmp/fileFileBox example
Some text/code.
Sandbox version
FILE /tmp/fileFileBox example
Some text/code.
Parameters: title=FileBox example, filename=/tmp/file, lang=bash, 1=#!/bin/bash echo "Hello, world!"
Wiki code {{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash echo "Hello, world!" }}

Main version
FILE /tmp/fileFileBox example
#!/bin/bash
echo "Hello, world!"
Sandbox version
FILE /tmp/fileFileBox example
#!/bin/bash
echo "Hello, world!"