Template:Yes/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added different table classes to examples.)
mNo edit summary
Line 1: Line 1:
==Usage==
== Usage ==
This template is designed to be used in comparison tables.
This template is designed to be used in comparison tables.
__NOTOC__
__NOTOC__
===Parameters===
 
=== Parameters ===
*{{Param}} – The first unnamed parameter overrides the displayed text;
*{{Param}} – The first unnamed parameter overrides the displayed text;
*{{Param|align}} – Overrides the alignment of the text in the table cell;
*{{Param|align}} – Overrides the alignment of the text in the table cell;
*{{Param|style}} – Override any style attributes of the table cell.
*{{Param|style}} – Override any style attributes of the table cell.


===Examples===
=== Examples ===
{| cellpadding=5
{| cellpadding=5
|
|
Line 16: Line 17:
<includeonly>
<includeonly>
|-
|-
| {{tlc|{{PAGENAME}}}}
| {{T|{{PAGENAME}}}}
| {{ {{PAGENAME}} }}
| {{ {{PAGENAME}} }}
|-
|-
| {{tlc|{{PAGENAME}}|Text}}
| {{T|{{PAGENAME}}|{{P|Text}}}}
| {{ {{PAGENAME}} |Text}}
| {{ {{PAGENAME}} |Text}}
|-
|-
| {{tlc|{{PAGENAME}}|&#91;[Main Page]]}}
| {{T|{{PAGENAME}}|{{P|&#91;[Main Page]]}}}}
| {{ {{PAGENAME}} |[[Main Page]]}}
| {{ {{PAGENAME}} |[[Main Page]]}}
|-
|-
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{T|{{PAGENAME}}|{{P|align|left}}}}
| {{ {{PAGENAME}} |align=left}}
| {{ {{PAGENAME}} |align=left}}
|-
|-
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}}
| {{ {{PAGENAME}} |style=color:#fff}}
| {{ {{PAGENAME}} |style=color:#FFF}}
</includeonly>
</includeonly>
|}
|}
Line 39: Line 40:
<includeonly>
<includeonly>
|-
|-
| {{tlc|{{PAGENAME}}}}
| {{T|{{PAGENAME}}}}
| {{ {{PAGENAME}} }}
| {{ {{PAGENAME}} }}
|-
|-
| {{tlc|{{PAGENAME}}|Text}}
| {{T|{{PAGENAME}}|{{P|Text}}}}
| {{ {{PAGENAME}} |Text}}
| {{ {{PAGENAME}} |Text}}
|-
|-
| {{tlc|{{PAGENAME}}|&#91;[Main Page]]}}
| {{T|{{PAGENAME}}|{{P|&#91;[Main Page]]}}}}
| {{ {{PAGENAME}} |[[Main Page]]}}
| {{ {{PAGENAME}} |[[Main Page]]}}
|-
|-
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{T|{{PAGENAME}}|{{P|align|left}}}}
| {{ {{PAGENAME}} |align=left}}
| {{ {{PAGENAME}} |align=left}}
|-
|-
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}}
| {{ {{PAGENAME}} |style=color:#fff}}
| {{ {{PAGENAME}} |style=color:#FFF}}
</includeonly>
</includeonly>
|}
|}
Line 62: Line 63:
<includeonly>
<includeonly>
|-
|-
| {{tlc|{{PAGENAME}}}}
| {{T|{{PAGENAME}}}}
| {{ {{PAGENAME}} }}
| {{ {{PAGENAME}} }}
|-
|-
| {{tlc|{{PAGENAME}}|Text}}
| {{T|{{PAGENAME}}|{{P|Text}}}}
| {{ {{PAGENAME}} |Text}}
| {{ {{PAGENAME}} |Text}}
|-
|-
| {{tlc|{{PAGENAME}}|&#91;[Main Page]]}}
| {{T|{{PAGENAME}}|{{P|&#91;[Main Page]]}}}}
| {{ {{PAGENAME}} |[[Main Page]]}}
| {{ {{PAGENAME}} |[[Main Page]]}}
|-
|-
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{T|{{PAGENAME}}|{{P|align|left}}}}
| {{ {{PAGENAME}} |align=left}}
| {{ {{PAGENAME}} |align=left}}
|-
|-
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}}
| {{ {{PAGENAME}} |style=color:#fff}}
| {{ {{PAGENAME}} |style=color:#FFF}}
</includeonly>
</includeonly>
|}
|}
Line 88: Line 89:
! Color Code
! Color Code
|-
|-
| {{tl2|Yes}}
| {{T|Yes}}
| {{Yes}}
| {{Yes}}
| ''positive''
| ''positive''
|style=color:#90FF90| #90FF90
|style=color:#90FF90| #90FF90
|-
|-
| {{tl2|No}}
| {{T|No}}
| {{No}}
| {{No}}
| ''negative''
| ''negative''
|style=color:#FF9090| #FF9090
|style=color:#FF9090| #FF9090
|-
|-
| {{tl2|N/A}}
| {{T|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
|-
|-
| {{tl2|Both}}
| {{T|Both}}
| {{Both}}
| {{Both}}
| ''multiple possibilities''
| ''multiple possibilities''
|style=color:#BE90FF| #BE90FF
|style=color:#BE90FF| #BE90FF
|}<includeonly>[[Category:Templates]]
|}<includeonly>[[Category:Templates]]

Revision as of 02:12, 27 June 2024

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

class = standard-table
Table Cell Wikitext Result
class = wikitable
Table Cell Wikitext Result
no class
Table Cell Wikitext Result

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