Template:Yes/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Made examples use the template that this doc is transcluded to.)
m (ROOTPAGENAME -> PAGENAME due to Template:N/A.)
Line 11: Line 11:
! width="100"| Result
! width="100"| Result
|-
|-
| {{tlc|{{ROOTPAGENAME}}}}
| {{tlc|{{PAGENAME}}}}
| {{ {{ROOTPAGENAME}} }}
| {{ {{PAGENAME}} }}
|-
|-
| {{tlc|{{ROOTPAGENAME}}|Text}}
| {{tlc|{{PAGENAME}}|Text}}
| {{ {{ROOTPAGENAME}} |Text}}
| {{ {{PAGENAME}} |Text}}
|-
|-
| {{tlc|{{ROOTPAGENAME}}|align{{=}}left}}
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{ {{ROOTPAGENAME}} |align=left}}
| {{ {{PAGENAME}} |align=left}}
|-
|-
| {{tlc|{{ROOTPAGENAME}}|style{{=}}color:#fff}}
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{ {{ROOTPAGENAME}} |style=color:#fff}}
| {{ {{PAGENAME}} |style=color:#fff}}
|}
|}


Line 51: Line 51:
|style=color:#BE90FF| #BE90FF
|style=color:#BE90FF| #BE90FF
|}
|}
<onlyinclude></onlyinclude><!-- prevent loop on this doc -->

Revision as of 19:30, 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/doc}}
{{Yes/doc|Text}}
{{Yes/doc|align=left}}
{{Yes/doc|style=color:#fff}}

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