Template:FileBox/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:FileBox 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:FileBox and its sandbox version. The page may need to be refreshed to update the examples (click "Refresh" from the "More" menu).
| No parameter | |
|---|---|
| Wiki code | {{FileBox}}
|
| Main version | FILE {{{filename}}}{{{1}}}
|
| Sandbox version | FILE
{{{filename}}} {{{1}}}
|
| Parameters: filename=/tmp/file, 1=Some text/code. | |
|---|---|
| Wiki code | {{FileBox|filename=/tmp/file|1=Some text/code.}}
|
| Main version | FILE /tmp/fileSome text/code.
|
| Sandbox version | FILE
/tmp/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 exampleSome 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 exampleSome 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!"
|
| Parameters: title=FileBox example, filename=/tmp/file, lang=bash, collapse-output=true, 1=#!/bin/bash echo "Hello, world!" | |
|---|---|
| Wiki code | {{FileBox|title=FileBox example|filename=/tmp/file|collapse-output=true|lang=bash|1=#!/bin/bash
echo "Hello, world!"
echo "my third line"
echo "my fourth line"
}}
|
| Main version | FILE /tmp/fileFileBox example#!/bin/bash
echo "Hello, world!"
echo "my third line"
echo "my fourth line"
|
| Sandbox version | FILE
/tmp/fileFileBox example #!/bin/bash
echo "Hello, world!"
echo "my third line"
echo "my fourth line"
|