Template:FileBox/testcases: Difference between revisions

From HPC Wiki
Jump to:navigation Jump to:search
(Created page with "<noinclude>{{Template testcases notice}}</noinclude> {{Testcase|title=No parameter |<nowiki>{{FileBox}}</nowiki> |{{XYZ}} |{{XYZ/sandbox}} }} {{Testcase |title=Parameters: fi...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{Template testcases notice}}</noinclude>
<noinclude>{{Template testcases notice}}</noinclude>
{{Testcase|title=No parameter
{{Testcase|title=No parameter
|<nowiki>{{FileBox}}</nowiki>
|<nowiki>{{FileBox}}</nowiki>|
|{{XYZ}}
{{FileBox}}
|{{XYZ/sandbox}}
|{{FileBox/sandbox}}
}}
}}


{{Testcase
{{Testcase
|title=Parameters: filename=/tmp/file, 1=Some text/code.
|title=Parameters: filename=/tmp/file, 1=Some text/code.
|<nowiki>{{FileBox|filename=/tmp/file|1=Some text/code.}}</nowiki>
|<nowiki>{{FileBox|filename=/tmp/file|1=Some text/code.}}</nowiki>|
|{{FileBox|filename=File|1=Some text/code.}}
{{FileBox|filename=File|1=Some text/code.}}
|{{FileBox|filename=File|1=Some text/code.}}
|{{FileBox/sandbox|filename=File|1=Some text/code.}}
}}
}}


{{Testcase
{{Testcase
|title=Parameters: title=FileBox example, 1=Some text/code.
|title=Parameters: title=FileBox example, 1=Some text/code.
|<nowiki>{{FileBox|title=FileBox example|1=Some text/code.}}</nowiki>
|<nowiki>{{FileBox|title=FileBox example|1=Some text/code.}}</nowiki>|
|{{FileBox|title=FileBox example|1=Some text/code.}}
{{FileBox|title=FileBox example|1=Some text/code.}}
|{{FileBox|title=FileBox example|1=Some text/code.}}
|{{FileBox/sandbox|title=FileBox example|1=Some text/code.}}
}}
}}


{{Testcase
{{Testcase
|title=Parameters: title=FileBox example, filename=/tmp/file, 1=Some text/code.
|title=Parameters: title=FileBox example, filename=/tmp/file, 1=Some text/code.
|<nowiki>{{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}</nowiki>
|<nowiki>{{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}</nowiki>|
|{{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}
{{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}
|{{FileBox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}
|{{FileBox/sandbox|title=FileBox example|filename=/tmp/file|1=Some text/code.}}
}}
}}


Line 31: Line 31:
|<nowiki>{{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
|<nowiki>{{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
echo "Hello, world!"
echo "Hello, world!"
}}</nowiki>
}}</nowiki>|
|{{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
{{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
echo "Hello, world!"
echo "Hello, world!"
}}
}}
|{{FileBox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
|{{FileBox/sandbox|title=FileBox example|filename=/tmp/file|lang=bash|1=#!/bin/bash
echo "Hello, world!"
echo "Hello, world!"
}}
}}
}}
}}

Latest revision as of 16:14, 3 October 2018

No parameter
Wiki code {{FileBox}}
Main version
FILE {{{filename}}}
{{{1}}}
Sandbox version
{{{title}}}
{{{1}}}
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
{{{title}}}
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
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
FileBox 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
FileBox example
#!/bin/bash
echo "Hello, world!"