Template:Yes/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Added Usage heading. Added template link.)
(Used <code><nowiki> instead of <pre>. Listed parameters.)
Line 1: Line 1:
===Usage===
This template is designed to be used in "comparison tables".
This template is designed to be used in "comparison tables".
 
==Usage==
{| class="standard-table"
{| class="standard-table"
! Wikitext
! Table Cell Wikitext
! width="100"| Result
! width="100"| Result
! Indicates...
! Indicates...
Line 9: Line 8:
! Template Link
! Template Link
|-
|-
| <pre>{{Yes}}</pre>
| <code><nowiki>{{Yes}}</nowiki></code>
|     {{Yes}}
| {{Yes}}
| ''positive''
| ''positive''
| <span style=color:#90FF90;>#90FF90</span>
|style=color:#90FF90| #90FF90
| [[Template:Yes]]
| [[Template:Yes]]
|-
|-
| <pre>{{No}}</pre>
| <code><nowiki>{{No}}</nowiki></code>
|     {{No}}
| {{No}}
| ''negative''
| ''negative''
| <span style=color:#FF9090;>#FF9090</span>
|style=color:#FF9090| #FF9090
| [[Template:No]]
| [[Template:No]]
|-
|-
| <pre>{{N/A}}</pre>
| <code><nowiki>{{N/A}}</nowiki></code>
|     {{N/A}}
| {{N/A}}
| ''not applicable'' or<br>''not available''
| ''not applicable'' or<br>''not available''
| <span style=color:#FFFF90;>#FFFF90</span>
|style=color:#FFFF90| #FFFF90
| [[Template:N/A]]
| [[Template:N/A]]
|-
|-
| <pre>{{Both}}</pre>
| <code><nowiki>{{Both}}</nowiki></code>
|     {{Both}}
| {{Both}}
| ''multiple possibilities''
| ''multiple possibilities''
| <span style=color:#BE90FF;>#BE90FF</span>
|style=color:#BE90FF| #BE90FF
| [[Template:Both]]
| [[Template:Both]]
|}
|}
===Parameters===
===Parameters===
The first unnamed parameter overrides the displayed text.
*{{param|1}} - The first unnamed parameter overrides the displayed text.
*{{param|align}} - Overrides the alignment of the text in the table cell.
*{{param|style}} - Override any style attributes of the table cell.
===Examples===
{|
{|
{| class="standard-table"
{| class="standard-table"
! Wikitext
! Table Cell Wikitext
! width="100"| Result
! width="100"| Result
|-
|-
| <pre>{{Yes|:D}}</pre>
| <code><nowiki>{{Yes|:D}}</nowiki></code>
|     {{Yes|:D}}
| {{Yes|:D}}
|-
|-
| <pre>{{N/A|align=left}}</pre>
| <code><nowiki>{{N/A|align=left}}</nowiki></code>
|     {{N/A|align=left}}
| {{N/A|align=left}}
|-
|-
| <pre>{{No|style=color:#FFFFFF}}</pre>
| <code><nowiki>{{No|style=color:#FFFFFF}}</nowiki></code>
|     {{No|style=color:#FFFFFF}}
| {{No|style=color:#FFFFFF}}
|}
|}

Revision as of 18:21, 21 January 2022

This template is designed to be used in "comparison tables".

Usage

Table Cell Wikitext Result Indicates... Color Code Template Link
{{Yes}} Yes positive #90FF90 Template:Yes
{{No}} No negative #FF9090 Template:No
{{N/A}} N/A not applicable or
not available
#FFFF90 Template:N/A
{{Both}} Both multiple possibilities #BE90FF Template:Both

Parameters

  • {{{1}}} - The first unnamed parameter overrides the displayed text.
  • {{{align}}} - Overrides the alignment of the text in the table cell.
  • {{{style}}} - Override any style attributes of the table cell.

Examples

Table Cell Wikitext Result
{{Yes|:D}} :D
{{N/A|align=left}} N/A
{{No|style=color:#FFFFFF}} No