Jump to content

Ta‌̱mpi‌̱let:Yes/doc

Neet di̱ Wikipedia


The templates in this series are designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. They are commonly used in comparison tables. Most of these templates should not be used simply to produce a background color, use them according to their meaning.

For example, {{yes}} makes a cell with a green background. The text in the cell is taken from the first parameter; {{yes|Sure}} would output "Sure" otherwise it defaults to "Yes". Most templates allow authors to override the default text in this way, some require text put after the template call and some also need a vertical bar in between: {{''table cell template''}} ''text'' or {{''table cell template''}} | ''text''. This information, the colors and default texts are found in the table below.

red-outlined triangle containing exclamation point Important: If you want to use other attributes for the table cells, e.g. colspan, rowspan, or style, they need to be put before the template call, and there must be no vertical bar (aka pipe) | in-between them:

Yes No
Yes/No
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...

Templates

[jhyuk a̱tyin ka]
Table cell templates
Class[1] Default Customized
Syntax Preview Syntax Preview
table-rh {{rh}} | Row header[2] Ta‌̱mpi‌̱let:Rh | Row header {{rh|align=right}} | Row header Ta‌̱mpi‌̱let:Rh | Row header
{{rh2}} | Row header[2] Ta‌̱mpi‌̱let:Rh2 | Row header {{rh2|align=center}} | Row header Ta‌̱mpi‌̱let:Rh2 | Row header
table-yes {{yes}} Yes {{yes|customized [[Plain text|text]]}} customized text
{{yes C}} Ta‌̱mpi‌̱let:Yes C {{yes C|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:Yes C
{{yes O}} Ta‌̱mpi‌̱let:Yes O {{yes O|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:Yes O
{{yes N}} Ta‌̱mpi‌̱let:Yes N {{yes N|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:Yes N
table-maybe {{maybe}} Ta‌̱mpi‌̱let:Maybe {{maybe|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:Maybe
table-no {{no}} No {{no|customized [[Plain text|text]]}} customized text
{{no O}} Ta‌̱mpi‌̱let:No O {{no O|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:No O
{{no X}} Ta‌̱mpi‌̱let:No X {{no X|customized [[Plain text|text]]}} Ta‌̱mpi‌̱let:No X
{{eliminated}} Ta‌̱mpi‌̱let:Eliminated {{eliminated|dropped out}} Ta‌̱mpi‌̱let:Eliminated
{{lost}} Ta‌̱mpi‌̱let:Lost {{lost|missing}} Ta‌̱mpi‌̱let:Lost
{{active fire|12%}}[3] Ta‌̱mpi‌̱let:Active fire
{{safe}} Ta‌̱mpi‌̱let:Safe {{safe|protected}} Ta‌̱mpi‌̱let:Safe
{{no Y}} Ta‌̱mpi‌̱let:No Y {{no Y|customized [[plain text|text]]}} Ta‌̱mpi‌̱let:No Y
table-active {{active}} Ta‌̱mpi‌̱let:Active {{active|live}} Ta‌̱mpi‌̱let:Active
table-siteactive {{site active}} Ta‌̱mpi‌̱let:Site active {{site active|up}} Ta‌̱mpi‌̱let:Site active
{{coming soon}} Ta‌̱mpi‌̱let:Coming soon {{coming soon|second half of the year}} Ta‌̱mpi‌̱let:Coming soon
table-siteinactive {{site inactive}} Ta‌̱mpi‌̱let:Site inactive {{site inactive|down}} Ta‌̱mpi‌̱let:Site inactive
table-success {{success}} Ta‌̱mpi‌̱let:Success {{success|mission complete}} Ta‌̱mpi‌̱let:Success
{{operational}} Ta‌̱mpi‌̱let:Operational {{operational|returning data}} Ta‌̱mpi‌̱let:Operational
table-failure {{failure}} Ta‌̱mpi‌̱let:Failure {{failure|wrong orbit}} Ta‌̱mpi‌̱let:Failure
table-yes2 {{yes2}} Ta‌̱mpi‌̱let:Yes2 {{yes2|text}} Ta‌̱mpi‌̱let:Yes2
{{good}} Ta‌̱mpi‌̱let:Good {{good|A}} Ta‌̱mpi‌̱let:Good
{{ya}} Ta‌̱mpi‌̱let:Ya {{ya|text=ya}} Ta‌̱mpi‌̱let:Ya
{{ya|Ya}} Ta‌̱mpi‌̱let:Ya {{ya|text|link=WP:ALT}} Ta‌̱mpi‌̱let:Ya
{{yan}} Ta‌̱mpi‌̱let:Yan {{yan|text=ya}} Ta‌̱mpi‌̱let:Yan
{{won}} Ta‌̱mpi‌̱let:Won {{won|text=white|color=darkblue|winner}} Ta‌̱mpi‌̱let:Won
{{won|place=1}} Ta‌̱mpi‌̱let:Won {{won|place=gold}} Ta‌̱mpi‌̱let:Won
{{won|place=2}} Ta‌̱mpi‌̱let:Won {{won|place=silver}} Ta‌̱mpi‌̱let:Won
{{won|place=3}} Ta‌̱mpi‌̱let:Won {{won|place=bronze}} Ta‌̱mpi‌̱let:Won
{{WinDL}} Ta‌̱mpi‌̱let:WinDL {{WinDL|win}} Ta‌̱mpi‌̱let:WinDL
{{WinDL|res=D}} Ta‌̱mpi‌̱let:WinDL {{WinDL|res=draw}} Ta‌̱mpi‌̱let:WinDL
{{WinDL|res=L}} Ta‌̱mpi‌̱let:WinDL {{WinDL|res=loss}} Ta‌̱mpi‌̱let:WinDL
table-no2 {{no2}} Ta‌̱mpi‌̱let:No2 {{no2|text}} Ta‌̱mpi‌̱let:No2
{{na}} Ta‌̱mpi‌̱let:Na {{na|text=na}} Ta‌̱mpi‌̱let:Na
{{na|Na}} Ta‌̱mpi‌̱let:Na {{na|text|link=WP:ALT}} Ta‌̱mpi‌̱let:Na
{{nan}} Ta‌̱mpi‌̱let:Nan {{nan|text=na}} Ta‌̱mpi‌̱let:Nan
{{nom}} Ta‌̱mpi‌̱let:Nom {{nom|5}} Ta‌̱mpi‌̱let:Nom
{{notnom}} Ta‌̱mpi‌̱let:Notnom {{notnom|not selected}} Ta‌̱mpi‌̱let:Notnom
{{sho}} Ta‌̱mpi‌̱let:Sho {{sho|proposed}} Ta‌̱mpi‌̱let:Sho
{{longlisted}} Ta‌̱mpi‌̱let:Longlisted {{longlisted|rejected}} Ta‌̱mpi‌̱let:Longlisted
{{TBA}} Ta‌̱mpi‌̱let:TBA {{TBA|to be announced}} Ta‌̱mpi‌̱let:TBA
table-partial {{partial}} Ta‌̱mpi‌̱let:Partial {{partial|almost done}} Ta‌̱mpi‌̱let:Partial
{{Regional}} Ta‌̱mpi‌̱let:Regional {{Regional|Uyghur}} Ta‌̱mpi‌̱let:Regional
{{MaybeCheck}} Ta‌̱mpi‌̱let:MaybeCheck {{MaybeCheck|text=possibly}} Ta‌̱mpi‌̱let:MaybeCheck
{{MaybeCheck|possibly}} Ta‌̱mpi‌̱let:MaybeCheck {{MaybeCheck|text|link=WP:ALT}} Ta‌̱mpi‌̱let:MaybeCheck
{{partial success}} Ta‌̱mpi‌̱let:Partial success {{partial success|
reached orbit and returned pictures}}
Ta‌̱mpi‌̱let:Partial success
{{partial failure}} Ta‌̱mpi‌̱let:Partial failure {{partial failure|[[Cubesat]] not deployed}} Ta‌̱mpi‌̱let:Partial failure
{{okay}} Ta‌̱mpi‌̱let:Okay {{okay|C}} Ta‌̱mpi‌̱let:Okay
{{Yes-No}} Yes/No {{Yes-No|yes with an if; no with a but}} yes with an if; no with a but
{{some}} Ta‌̱mpi‌̱let:Some {{some|many}} Ta‌̱mpi‌̱let:Some
{{pending}} Ta‌̱mpi‌̱let:Pending {{pending|awaiting}} Ta‌̱mpi‌̱let:Pending
{{sometimes}} Ta‌̱mpi‌̱let:Sometimes {{sometimes|occasionally}} Ta‌̱mpi‌̱let:Sometimes
{{rarely}} Ta‌̱mpi‌̱let:Rarely {{rarely|seldom}} Ta‌̱mpi‌̱let:Rarely
{{usually}} Ta‌̱mpi‌̱let:Usually {{usually|commonly}} Ta‌̱mpi‌̱let:Usually
{{unofficial}} Ta‌̱mpi‌̱let:Unofficial {{unofficial|''de facto''}} Ta‌̱mpi‌̱let:Unofficial
{{unofficial2}} Ta‌̱mpi‌̱let:Unofficial2 {{unofficial2|''de facto''}} Ta‌̱mpi‌̱let:Unofficial2
{{nonpartisan}} Ta‌̱mpi‌̱let:Nonpartisan {{nonpartisan|impartial}} Ta‌̱mpi‌̱let:Nonpartisan
table-any {{any}} Ta‌̱mpi‌̱let:Any {{any|anyone}} Ta‌̱mpi‌̱let:Any
table-automatic {{perhaps}} Ta‌̱mpi‌̱let:Perhaps {{perhaps|maybe}} Ta‌̱mpi‌̱let:Perhaps
table-draw {{draw}} Ta‌̱mpi‌̱let:Draw {{draw|1:1}} Ta‌̱mpi‌̱let:Draw
table-noAttempt {{No attempt}} Ta‌̱mpi‌̱let:No attempt {{No attempt|No landing attempted}} Ta‌̱mpi‌̱let:No attempt
table-na {{n/a}} {{n/a|unavailable}} unavailable
{{varies}} Ta‌̱mpi‌̱let:Varies {{varies|differs}} Ta‌̱mpi‌̱let:Varies
{{non-album single}}[4] Ta‌̱mpi‌̱let:Non-album single {{non-album single|EP}} Ta‌̱mpi‌̱let:Non-album single
{{unreleased}} Ta‌̱mpi‌̱let:Unreleased {{unreleased|shelved}} Ta‌̱mpi‌̱let:Unreleased
{{BLACK}} Ta‌̱mpi‌̱let:BLACK {{BLACK|banned}} Ta‌̱mpi‌̱let:BLACK
{{sdash}} Ta‌̱mpi‌̱let:Sdash {{sdash|[[File:Dash.svg|13px|dash icon]]}} Ta‌̱mpi‌̱let:Sdash
{{vacant}} Ta‌̱mpi‌̱let:Vacant {{vacant|missing}} Ta‌̱mpi‌̱let:Vacant
table-unknown {{unknown}} Ta‌̱mpi‌̱let:Unknown {{unknown|?}} Ta‌̱mpi‌̱let:Unknown
{{dunno}} Ta‌̱mpi‌̱let:Dunno {{dunno|not sure}} Ta‌̱mpi‌̱let:Dunno
table-included {{included}} Ta‌̱mpi‌̱let:Included {{included|incorporated}} Ta‌̱mpi‌̱let:Included
noresult {{no result}} Ta‌̱mpi‌̱let:No result {{no result|NR}} Ta‌̱mpi‌̱let:No result
table-planned {{planned}} Ta‌̱mpi‌̱let:Planned {{planned|July 2028}} Ta‌̱mpi‌̱let:Planned
table-scheduled {{scheduled}} Ta‌̱mpi‌̱let:Scheduled {{scheduled|3 March 2027}} Ta‌̱mpi‌̱let:Scheduled
table-software[5] {{beta}} Ta‌̱mpi‌̱let:Beta {{beta|preview}} Ta‌̱mpi‌̱let:Beta
{{table-experimental}} Ta‌̱mpi‌̱let:Table-experimental {{table-experimental|lab}} Ta‌̱mpi‌̱let:Table-experimental
{{nightly}} Ta‌̱mpi‌̱let:Nightly {{nightly|dev}} Ta‌̱mpi‌̱let:Nightly
{{release-candidate}} Ta‌̱mpi‌̱let:Release-candidate {{release-candidate|RC}} Ta‌̱mpi‌̱let:Release-candidate
{{open source}} Ta‌̱mpi‌̱let:Open source {{open source|software libre}} Ta‌̱mpi‌̱let:Open source
{{free}} Ta‌̱mpi‌̱let:Free {{free|empty}} Ta‌̱mpi‌̱let:Free
{{proprietary}} Ta‌̱mpi‌̱let:Proprietary {{proprietary|custom extension}} Ta‌̱mpi‌̱let:Proprietary
{{nonfree}} Ta‌̱mpi‌̱let:Nonfree {{nonfree|paid}} Ta‌̱mpi‌̱let:Nonfree
{{needs}} Ta‌̱mpi‌̱let:Needs {{needs|req.}} Ta‌̱mpi‌̱let:Needs
table-depends {{depends}} Ta‌̱mpi‌̱let:Depends {{depends|vendor-defined}} Ta‌̱mpi‌̱let:Depends
table-dropped {{dropped}} Ta‌̱mpi‌̱let:Dropped {{dropped|discontinued}} Ta‌̱mpi‌̱let:Dropped
{{terminated}} Ta‌̱mpi‌̱let:Terminated {{terminated|fired}} Ta‌̱mpi‌̱let:Terminated
incorrect {{incorrect}} Ta‌̱mpi‌̱let:Incorrect {{incorrect|wrong}} Ta‌̱mpi‌̱let:Incorrect
table-debate {{D-P}} Ta‌̱mpi‌̱let:D-P {{D-P|present}} Ta‌̱mpi‌̱let:D-P
{{D-A}} Ta‌̱mpi‌̱let:D-A {{D-A|absent}} Ta‌̱mpi‌̱let:D-A
{{D-I}} Ta‌̱mpi‌̱let:D-I {{D-I|invited}} Ta‌̱mpi‌̱let:D-I
{{D-O}} Ta‌̱mpi‌̱let:D-O {{D-O|invited to other debate}} Ta‌̱mpi‌̱let:D-O
{{D-N}} Ta‌̱mpi‌̱let:D-N {{D-N|not invited}} Ta‌̱mpi‌̱let:D-N
{{D-Nv}} Ta‌̱mpi‌̱let:D-Nv {{D-Nv|not voting}} Ta‌̱mpi‌̱let:D-Nv
{{D-W}} Ta‌̱mpi‌̱let:D-W {{D-W|withdrawn}} Ta‌̱mpi‌̱let:D-W
{{D-Out}} Ta‌̱mpi‌̱let:D-Out {{D-Out|out of race}} Ta‌̱mpi‌̱let:D-Out
table-cast[6] {{CMain}} Ta‌̱mpi‌̱let:CMain {{CMain|text}} Ta‌̱mpi‌̱let:CMain
{{CAlso starring}} Ta‌̱mpi‌̱let:CAlso starring {{CAlso starring|costar}} Ta‌̱mpi‌̱let:CAlso starring
{{CRecurring}} Ta‌̱mpi‌̱let:CRecurring {{CRecurring|regular guest}} Ta‌̱mpi‌̱let:CRecurring
{{CGuest}} Ta‌̱mpi‌̱let:CGuest {{CGuest|victim}} Ta‌̱mpi‌̱let:CGuest
{{COther}} Ta‌̱mpi‌̱let:COther {{COther|ensemble}} Ta‌̱mpi‌̱let:COther
{{CNone}} Does not appear {{CNone|cast}} cast
{{CEmpty}} Ta‌̱mpi‌̱let:CEmpty
{{CRemoved}} Ta‌̱mpi‌̱let:CRemoved {{CRemoved|edited}} Ta‌̱mpi‌̱let:CRemoved
{{CFinalist}} Ta‌̱mpi‌̱let:CFinalist {{CFinalist|contender}} Ta‌̱mpi‌̱let:CFinalist
{{CFinalist|place=3rd Place}} Ta‌̱mpi‌̱let:CFinalist {{CFinalist|place=third place}} Ta‌̱mpi‌̱let:CFinalist
{{exempt}} Ta‌̱mpi‌̱let:Exempt {{Black Exempt}} Ta‌̱mpi‌̱let:Black Exempt
{{nocontest}} Ta‌̱mpi‌̱let:Nocontest {{nocontest|rescheduled}} Ta‌̱mpi‌̱let:Nocontest
{{Runner-up}} Ta‌̱mpi‌̱let:Runner-up {{Runner-up|2nd Place}} Ta‌̱mpi‌̱let:Runner-up
{{Quit}} Ta‌̱mpi‌̱let:Quit {{Quit|left}} Ta‌̱mpi‌̱let:Quit
no class {{not yet}} Ta‌̱mpi‌̱let:Not yet {{not yet|NY}} Ta‌̱mpi‌̱let:Not yet
{{optional}} Ta‌̱mpi‌̱let:Optional {{optional|non-mandatory}} Ta‌̱mpi‌̱let:Optional
{{shade|100}}% Ta‌̱mpi‌̱let:Shade% {{shade|color=blue|100}}% Ta‌̱mpi‌̱let:Shade%
{{shade|75}}% Ta‌̱mpi‌̱let:Shade% {{shade|color=blue|75|73–78}}% Ta‌̱mpi‌̱let:Shade%
{{shade|25}}% Ta‌̱mpi‌̱let:Shade% {{shade|color=blue|25|{{val|25|2|u=%}}}} Ta‌̱mpi‌̱let:Shade
{{shade|0}}% Ta‌̱mpi‌̱let:Shade% {{shade|color=blue|0}}% Ta‌̱mpi‌̱let:Shade%
{{Cell color|90|25|90}} Ta‌̱mpi‌̱let:Cell color {{Cell color|90|25|90|a80202|0d89fc}} Ta‌̱mpi‌̱let:Cell color
{{Cell color|58|25|90}} Ta‌̱mpi‌̱let:Cell color {{Cell color|58|25|90|a80202|0d89fc}} Ta‌̱mpi‌̱let:Cell color
{{Cell color|25|25|90}} Ta‌̱mpi‌̱let:Cell color {{Cell color|25|25|90|a80202|0d89fc}} Ta‌̱mpi‌̱let:Cell color
{{CellCategory|2|Some text}} Ta‌̱mpi‌̱let:CellCategory

Common code to most if not all the templates in this series:

style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|text-transform: capitalize;}}}" class="automatic table-automatic"| {{{1|text<nowikimiddle>}}}</nowiki>

Code specific to this template:

style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes

Creating new templates

[jhyuk a̱tyin ka]

To make a new table cell template you can use:

{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}

You should leave out the align parameter and often the class parameter is unnecessary, too.

Add the new template to the table in the common documentation afterwards. Please consider reusing one of the other templates and please choose the color sensibly.

If you find a table cell template that does not take a parameter and you want to be able to change the text in the cell, do not duplicate the template! Instead, edit the template and change the text to a default parameter substitution. For example, if a template's text is Dropped, change that to {{{1|Dropped}}}.

style="background: #abcdef; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="automatic table-automatic"| {{{1|text}}}

Choosing a color

[jhyuk a̱tyin ka]

When changing or creating a new template, follow the use of colour guidelines and the when choosing the background color and, sometimes, the text color. Many of these templates can be used with links to other articles or references, so the links should be clearly identifiable against the background color. You can check contrast level using the WebAIM contrast checker by setting the foreground color to the blue link color. Contrast should be at the minimum WCAG AA level and, whenever possible, at WCAG AAA level. Wikipedia:Manual of Style/Accessibility/Colors has a set of colors that comply with WCAG AAA and WCAG AA for unvisited links and normal text.

Color subpage

[jhyuk a̱tyin ka]

All templates should either have a /bgcolor subpage that contains nothing but a valid CSS color code, possibly wrapped in nowiki tags, e.g. #BFD, which can be included with background: {{/bgcolor}}; in the style attribute, or they should reference another template's subpage, e.g. background: {{Template:Yes2/bgcolor}};. Alternatively, the /bgcolor subpage may redirect to another color code subpage: #REDIRECT [[yes2/bgcolor]].

This way, pages that are using these templates may also use {{legend}} and similar templates which can reference the actual color: {{legend|{{yes2/bgcolor}}|supported}}

TemplateData

[jhyuk a̱tyin ka]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Yes

One of several templates for styling individual table cells with standard contents and colors.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

text to be displayed instead of the default; if this doesn't work put the text after the template, possibly with a vertical bar | in between

Default
(template dependent)
Contentoptional
horizontal alignalign

text alignment inside the cell, either 'left', 'right', 'center' or 'justified'

Suggested values
left center right justified
Default
center
Stringoptional
stylestyle

a semicolon-separated list of additional CSS rules to be applied to the table cell

Default
(template dependent)
Stringoptional
background colorcolor

a valid CSS color value or name to override the standard cell background, only available with some templates

Default
(template dependent)
Lineoptional
  1. The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
  2. 2.0 2.1 Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
  3. This template is related to Ta‌̱mpi‌̱let:WikiProject link.
  4. This template is related to Ta‌̱mpi‌̱let:WikiProject link.
  5. This group of templates is related to Ta‌̱mpi‌̱let:WikiProject link.
  6. This group of templates is related to Ta‌̱mpi‌̱let:WikiProject link.