Template:Template Parameter/testcases
From Gentoo Wiki
Jump to:navigation
Jump to:search
Note
This is the template test case page for Template:Template Parameter and its sandbox version. You may have to to update the examples.
This is the template test case page for Template:Template Parameter and its sandbox version. You may have to to update the examples.
Unnamed parameters with values foo and bar | ||||
---|---|---|---|---|
Wiki code | {{Template Parameter|foo|bar}}
| |||
Main version | foo |
No | (n/a) | bar |
Sandbox version | foo |
No | (n/a) | bar |
Unnamed parameters with value foo and bar and named parameter required | ||||
---|---|---|---|---|
Wiki code | {{Template Parameter|foo|bar|required=yes}}
| |||
Main version | foo |
Yes | (n/a) | bar |
Sandbox version | foo |
Yes | (n/a) | bar |
Unnamed parameters with value foo and bar and named parameters required and default | ||||
---|---|---|---|---|
Wiki code | {{Template Parameter|foo|bar|required=yes|default=baz}}
| |||
Main version | foo |
Yes | baz |
bar |
Sandbox version | foo |
Yes | baz |
bar |
Incorrect
No parameter | ||||
---|---|---|---|---|
Wiki code | {{Template Parameter}}
| |||
Main version | {{{1}}} |
No | (n/a) | (description missing) |
Sandbox version | {{{1}}} |
No | (n/a) | (description missing) |
Unnamed parameter with value foo | ||||
---|---|---|---|---|
Wiki code | {{Template Parameter|foo}}
| |||
Main version | foo |
No | (n/a) | (description missing) |
Sandbox version | foo |
No | (n/a) | (description missing) |