Template:Yes/doc: Difference between revisions
Jump to navigation
Jump to search
m (Added example with a link.) |
(Dark mode. Can't use transparent color because class=wikitable still has a white base background.) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Usage == | |||
This template is designed to be used in comparison tables. | |||
__NOTOC__ | __NOTOC__ | ||
=== Parameters === | |||
===Parameters=== | *{{Param}} – 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=== | === Examples === | ||
{| cellpadding=5 | |||
| | |||
{| class="standard-table" | {| class="standard-table" | ||
|+ class = standard-table | |||
! Table Cell Wikitext | |||
! width="100" | Result | |||
<includeonly> | |||
|- | |||
| {{T|{{PAGENAME}}}} | |||
| {{ {{PAGENAME}} }} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|Text}}}} | |||
| {{ {{PAGENAME}} |Text}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|[[Main Page]]}}}} | |||
| {{ {{PAGENAME}} |[[Main Page]]}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|align|left}}}} | |||
| {{ {{PAGENAME}} |align=left}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}} | |||
| {{ {{PAGENAME}} |style=color:#FFF}} | |||
</includeonly> | |||
|} | |||
| | |||
{| class="wikitable" | |||
|+ style=color:#aaa| class = wikitable | |||
! Table Cell Wikitext | |||
! width="100" | Result | |||
<includeonly> | |||
|- | |||
| {{T|{{PAGENAME}}}} | |||
| {{ {{PAGENAME}} }} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|Text}}}} | |||
| {{ {{PAGENAME}} |Text}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|[[Main Page]]}}}} | |||
| {{ {{PAGENAME}} |[[Main Page]]}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|align|left}}}} | |||
| {{ {{PAGENAME}} |align=left}} | |||
|- | |||
| {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}} | |||
| {{ {{PAGENAME}} |style=color:#FFF}} | |||
</includeonly> | |||
|} | |||
| | |||
{| | |||
|+ style=color:#aaa| no class | |||
! Table Cell Wikitext | ! Table Cell Wikitext | ||
! width="100"| Result | ! width="100" | Result | ||
<includeonly> | <includeonly> | ||
|- | |- | ||
| {{ | | {{T|{{PAGENAME}}}} | ||
| {{ {{PAGENAME}} }} | | {{ {{PAGENAME}} }} | ||
|- | |- | ||
| {{ | | {{T|{{PAGENAME}}|{{P|Text}}}} | ||
| {{ {{PAGENAME}} |Text}} | | {{ {{PAGENAME}} |Text}} | ||
|- | |- | ||
| {{ | | {{T|{{PAGENAME}}|{{P|[[Main Page]]}}}} | ||
| {{ {{PAGENAME}} |[[Main Page]]}} | | {{ {{PAGENAME}} |[[Main Page]]}} | ||
|- | |- | ||
| {{ | | {{T|{{PAGENAME}}|{{P|align|left}}}} | ||
| {{ {{PAGENAME}} |align=left}} | | {{ {{PAGENAME}} |align=left}} | ||
|- | |- | ||
| {{ | | {{T|{{PAGENAME}}|{{P|style|color:#FFF}}}} | ||
| {{ {{PAGENAME}} |style=color:# | | {{ {{PAGENAME}} |style=color:#FFF}} | ||
</includeonly> | </includeonly> | ||
|} | |} | ||
|} | |||
{{clr}} | |||
== See Also == | == See Also == | ||
Line 36: | Line 89: | ||
! Color Code | ! Color Code | ||
|- | |- | ||
| {{ | | {{T|Yes}} | ||
| {{Yes}} | | {{Yes}} | ||
| ''positive'' | | ''positive'' | ||
| | | #385038 | ||
|- | |- | ||
| {{ | | {{T|No}} | ||
| {{No}} | | {{No}} | ||
| ''negative'' | | ''negative'' | ||
| | | #503838 | ||
|- | |- | ||
| {{ | | {{T|N/A}} | ||
| {{N/A}} | | {{N/A}} | ||
| ''not applicable'' or<br>''not available'' | | ''not applicable'' or<br>''not available'' | ||
| | | #585838 | ||
|- | |- | ||
| {{ | | {{T|Both}} | ||
| {{Both}} | | {{Both}} | ||
| ''multiple possibilities'' | | ''multiple possibilities'' | ||
| | | #383850 | ||
|}<includeonly>[[Category:Templates]] | |}<includeonly>[[Category:Templates]] |
Latest revision as of 00:08, 9 February 2025
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
|
|
|
See Also
Table Cell Wikitext | Result | Indicates... | Color Code |
---|---|---|---|
{{Yes}} | Yes | positive | #385038 |
{{No}} | No | negative | #503838 |
{{N/A}} | N/A | not applicable or not available |
#585838 |
{{Both}} | Both | multiple possibilities | #383850 |