Template:Yes/doc: Difference between revisions
Jump to navigation
Jump to search
m (Added Usage heading. Added template link.) |
(Used <code><nowiki> instead of <pre>. Listed parameters.) |
||
Line 1: | Line 1: | ||
This template is designed to be used in "comparison tables". | This template is designed to be used in "comparison tables". | ||
==Usage== | |||
{| class="standard-table" | {| class="standard-table" | ||
! Wikitext | ! Table Cell Wikitext | ||
! width="100"| Result | ! width="100"| Result | ||
! Indicates... | ! Indicates... | ||
Line 9: | Line 8: | ||
! Template Link | ! Template Link | ||
|- | |- | ||
| < | | <code><nowiki>{{Yes}}</nowiki></code> | ||
| | | {{Yes}} | ||
| ''positive'' | | ''positive'' | ||
| | |style=color:#90FF90| #90FF90 | ||
| [[Template:Yes]] | | [[Template:Yes]] | ||
|- | |- | ||
| < | | <code><nowiki>{{No}}</nowiki></code> | ||
| | | {{No}} | ||
| ''negative'' | | ''negative'' | ||
| | |style=color:#FF9090| #FF9090 | ||
| [[Template:No]] | | [[Template:No]] | ||
|- | |- | ||
| < | | <code><nowiki>{{N/A}}</nowiki></code> | ||
| | | {{N/A}} | ||
| ''not applicable'' or<br>''not available'' | | ''not applicable'' or<br>''not available'' | ||
| | |style=color:#FFFF90| #FFFF90 | ||
| [[Template:N/A]] | | [[Template:N/A]] | ||
|- | |- | ||
| < | | <code><nowiki>{{Both}}</nowiki></code> | ||
| | | {{Both}} | ||
| ''multiple possibilities'' | | ''multiple possibilities'' | ||
| | |style=color:#BE90FF| #BE90FF | ||
| [[Template:Both]] | | [[Template:Both]] | ||
|} | |} | ||
===Parameters=== | ===Parameters=== | ||
The first unnamed parameter overrides the displayed text. | *{{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" | {| class="standard-table" | ||
! Wikitext | ! Table Cell Wikitext | ||
! width="100"| Result | ! width="100"| Result | ||
|- | |- | ||
| < | | <code><nowiki>{{Yes|:D}}</nowiki></code> | ||
| | | {{Yes|:D}} | ||
|- | |- | ||
| < | | <code><nowiki>{{N/A|align=left}}</nowiki></code> | ||
| | | {{N/A|align=left}} | ||
|- | |- | ||
| < | | <code><nowiki>{{No|style=color:#FFFFFF}}</nowiki></code> | ||
| | | {{No|style=color:#FFFFFF}} | ||
|} | |} |
Revision as of 18:21, 21 January 2022
This template is designed to be used in "comparison tables".
Usage
Table Cell Wikitext | Result | Indicates... | Color Code | Template Link |
---|---|---|---|---|
{{Yes}}
|
Yes | positive | #90FF90 | Template:Yes |
{{No}}
|
No | negative | #FF9090 | Template:No |
{{N/A}}
|
N/A | not applicable or not available |
#FFFF90 | Template:N/A |
{{Both}}
|
Both | multiple possibilities | #BE90FF | Template:Both |
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|:D}}
|
:D |
{{N/A|align=left}}
|
N/A |
{{No|style=color:#FFFFFF}}
|
No |