Template:Yes/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Used <code><nowiki> instead of <pre>. Listed parameters.)
(Made examples use the template that this doc is transcluded to.)
Line 1: Line 1:
This template is designed to be used in "comparison tables".
__NOTOC__
==Usage==
==Usage==
This template is designed to be used in comparison tables.
===Parameters===
*{{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"
! Table Cell Wikitext
! width="100"| Result
|-
| {{tlc|{{ROOTPAGENAME}}}}
| {{ {{ROOTPAGENAME}} }}
|-
| {{tlc|{{ROOTPAGENAME}}|Text}}
| {{ {{ROOTPAGENAME}} |Text}}
|-
| {{tlc|{{ROOTPAGENAME}}|align{{=}}left}}
| {{ {{ROOTPAGENAME}} |align=left}}
|-
| {{tlc|{{ROOTPAGENAME}}|style{{=}}color:#fff}}
| {{ {{ROOTPAGENAME}} |style=color:#fff}}
|}
== See Also ==
{| class="standard-table"
{| class="standard-table"
! Table Cell Wikitext
! Table Cell Wikitext
Line 6: Line 30:
! Indicates...
! Indicates...
! Color Code
! Color Code
! Template Link
|-
|-
| <code><nowiki>{{Yes}}</nowiki></code>
| {{tl2|Yes}}
| {{Yes}}
| {{Yes}}
| ''positive''
| ''positive''
|style=color:#90FF90| #90FF90
|style=color:#90FF90| #90FF90
| [[Template:Yes]]
|-
|-
| <code><nowiki>{{No}}</nowiki></code>
| {{tl2|No}}
| {{No}}
| {{No}}
| ''negative''
| ''negative''
|style=color:#FF9090| #FF9090
|style=color:#FF9090| #FF9090
| [[Template:No]]
|-
|-
| <code><nowiki>{{N/A}}</nowiki></code>
| {{tl2|N/A}}
| {{N/A}}
| {{N/A}}
| ''not applicable'' or<br>''not available''
| ''not applicable'' or<br>''not available''
|style=color:#FFFF90| #FFFF90
|style=color:#FFFF90| #FFFF90
| [[Template:N/A]]
|-
|-
| <code><nowiki>{{Both}}</nowiki></code>
| {{tl2|Both}}
| {{Both}}
| {{Both}}
| ''multiple possibilities''
| ''multiple possibilities''
|style=color:#BE90FF| #BE90FF
|style=color:#BE90FF| #BE90FF
| [[Template:Both]]
|}
===Parameters===
*{{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"
! Table Cell Wikitext
! width="100"| Result
|-
| <code><nowiki>{{Yes|:D}}</nowiki></code>
| {{Yes|:D}}
|-
| <code><nowiki>{{N/A|align=left}}</nowiki></code>
| {{N/A|align=left}}
|-
| <code><nowiki>{{No|style=color:#FFFFFF}}</nowiki></code>
| {{No|style=color:#FFFFFF}}
|}
|}

Revision as of 19:08, 26 April 2022

Usage

This template is designed to be used in comparison tables.

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}} Yes
{{Yes|Text}} Text
{{Yes|align=left}} Yes
{{Yes|style=color:#fff}} Yes

See Also

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