Template:Yes/doc

From Gentoo Wiki
Jump to:navigation Jump to:search
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template in comparison tables to show an option is enabled, recommend, or similar.

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 No Yes Text
align No center Alignment of text in the cell
style No (n/a) Additional style settings. Don't use quotes

Usage

Note that this template must be used in a table cell. See the template's testcases:

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

See also