Template:Yes/doc: Difference between revisions
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: | ||
__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 | ||
|- | |- | ||
| | | {{tl2|Yes}} | ||
| {{Yes}} | | {{Yes}} | ||
| ''positive'' | | ''positive'' | ||
|style=color:#90FF90| #90FF90 | |style=color:#90FF90| #90FF90 | ||
|- | |- | ||
| | | {{tl2|No}} | ||
| {{No}} | | {{No}} | ||
| ''negative'' | | ''negative'' | ||
|style=color:#FF9090| #FF9090 | |style=color:#FF9090| #FF9090 | ||
|- | |- | ||
| | | {{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 | ||
|- | |- | ||
| | | {{tl2|Both}} | ||
| {{Both}} | | {{Both}} | ||
| ''multiple possibilities'' | | ''multiple possibilities'' | ||
|style=color:#BE90FF| #BE90FF | |style=color:#BE90FF| #BE90FF | ||
|} | |} |
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 |