Template:FileBox/testcases: Difference between revisions
From HPC Wiki
Jump to:navigation
Jump to:search
No edit summary |
No edit summary |
||
(2 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>| | ||
{{FileBox}} | |||
|{{ | |{{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/sandbox|filename=File|1=Some text/code.}} | |{{FileBox/sandbox|filename=File|1=Some text/code.}} | ||
}} | }} | ||
Line 15: | Line 15: | ||
{{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/sandbox|title=FileBox example|1=Some text/code.}} | |{{FileBox/sandbox|title=FileBox example|1=Some text/code.}} | ||
}} | }} | ||
Line 22: | Line 22: | ||
{{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/sandbox|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 | |||
echo "Hello, world!" | echo "Hello, world!" | ||
}} | }} |
Latest revision as of 16:14, 3 October 2018
No parameter | |
---|---|
Wiki code | {{FileBox}}
|
Main version |
|
Sandbox version |
|
Parameters: filename=/tmp/file, 1=Some text/code. | |
---|---|
Wiki code | {{FileBox|filename=/tmp/file|1=Some text/code.}}
|
Main version |
|
Sandbox version |
|
Parameters: title=FileBox example, 1=Some text/code. | |
---|---|
Wiki code | {{FileBox|title=FileBox example|1=Some text/code.}}
|
Main version |
|
Sandbox version |
|
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 |
|
Sandbox version |
|
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 |
|
Sandbox version |
|