Template:Yes/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Added different table classes to examples.)
Line 8: Line 8:


===Examples===
===Examples===
{| cellpadding=5
|
{| class="standard-table"
{| class="standard-table"
|+ class = standard-table
! Table Cell Wikitext
! Table Cell Wikitext
! width="100" | Result
! width="100" | Result
Line 29: Line 32:
</includeonly>
</includeonly>
|}
|}
|
{| class="wikitable"
|+ style=color:#aaa| class = wikitable
! Table Cell Wikitext
! width="100" | Result
<includeonly>
|-
| {{tlc|{{PAGENAME}}}}
| {{ {{PAGENAME}} }}
|-
| {{tlc|{{PAGENAME}}|Text}}
| {{ {{PAGENAME}} |Text}}
|-
| {{tlc|{{PAGENAME}}|&#91;[Main Page]]}}
| {{ {{PAGENAME}} |[[Main Page]]}}
|-
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{ {{PAGENAME}} |align=left}}
|-
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{ {{PAGENAME}} |style=color:#fff}}
</includeonly>
|}
|
{|
|+ style=color:#aaa| no class
! Table Cell Wikitext
! width="100" | Result
<includeonly>
|-
| {{tlc|{{PAGENAME}}}}
| {{ {{PAGENAME}} }}
|-
| {{tlc|{{PAGENAME}}|Text}}
| {{ {{PAGENAME}} |Text}}
|-
| {{tlc|{{PAGENAME}}|&#91;[Main Page]]}}
| {{ {{PAGENAME}} |[[Main Page]]}}
|-
| {{tlc|{{PAGENAME}}|align{{=}}left}}
| {{ {{PAGENAME}} |align=left}}
|-
| {{tlc|{{PAGENAME}}|style{{=}}color:#fff}}
| {{ {{PAGENAME}} |style=color:#fff}}
</includeonly>
|}
|}
{{clr}}


== See Also ==
== See Also ==

Revision as of 11:25, 6 August 2023

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