📖 This is a live mirror of the <a href="https://www.theamazonbasin.com/wiki/">Basin Wiki</a> (theamazonbasin.com), hosted to keep the content available if the original ever goes offline. All content belongs to the original Basin Wiki authors — please visit and support the <a href="https://www.theamazonbasin.com/">original site</a>.

Template:Yes

From Basin Wiki (D2 mirror)
Jump to navigation Jump to search

{{ #if: | 1 }}{{ #switch: | yellow = Yes | gray = Yes | #default = Yes }}

Description

Generates an image to represent "Yes" in tables or checklists.

{{ Yes
| 1 = 
| sort = 
| sortkey = 
}}

Parameters

1
Optional. Icon style. Possible values:
  • {{ #if: | 1 }}{{ #switch:

| yellow = Yes | gray = Yes | #default = Yes }} (default)

  • {{ #if: | 1 }}{{ #switch: yellow

| yellow = Yes | gray = Yes | #default = Yes }} yellow

  • {{ #if: | 1 }}{{ #switch: gray

| yellow = Yes | gray = Yes | #default = Yes }} gray

sort
Optional. Set this parameter to place an invisible sortkey before the icon.
sortkey
Optional. The text of the sort key to place before the icon. (default 1)

Examples

{{yes}}

{{ #if: | 1 }}{{ #switch: | yellow = Yes | gray = Yes | #default = Yes }}

{{yes|yellow}} {{yes|gray}}

{{ #if: | 1 }}{{ #switch: yellow | yellow = Yes | gray = Yes | #default = Yes }} {{ #if: | 1 }}{{ #switch: gray | yellow = Yes | gray = Yes | #default = Yes }}

{{yes|sort=y}}

{{ #if: y | 1 }}{{ #switch: | yellow = Yes | gray = Yes | #default = Yes }}

{{yes|sortkey=A}}

{{ #if: A | A }}{{ #switch: | yellow = Yes | gray = Yes | #default = Yes }}

See also