Template:Yes/testcases

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This is the template test case page for Template:Yes and its sandbox version. You may have to purge this page to update the examples.

Correct

No parameter
Wiki code {| |- |{{Yes}} |}

Main version
Yes
Sandbox version
Yes
One unnamed parameter
Wiki code {| |- |{{Yes|some text}} |}

Main version
some text
Sandbox version
some text
Parameter: align (specifying alignment)
Wiki code {| |- |{{Yes|align=right}} |}

Main version
Yes
Sandbox version
Yes
Parameter: style (changing the style)
Wiki code {| |- |{{Yes|style=background: white;}} |}

Main version
Yes
Sandbox version
Yes

Note: Do not use quotation marks.

Incorrect

Two unnamed parameters (not supported)
Wiki code {| |- |{{Yes|some text|additional text}} |}

Main version
some text
Sandbox version
some text