Lompat ke isi

Cèṭa'an:Row header/doc

Ḍâri Wikipèḍia bhâsa Madhurâ, lombhung pangataowan mardhika

TemplateStyles' src attribute must not be empty.

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:

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

Templates

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

Code specific to this template:

style="background: #ececec; color: black; font-weight: bold; vertical-align: middle; text-align: left; " class="table-rh"

Creating new templates

[beccè' sombher]

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

[beccè' sombher]

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

[beccè' sombher]

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

[beccè' sombher]
Ariya dokumenna TemplateData ka'angghuy template nèka èghuna'aghi bi' VisualEditor tor alat laènna; see a monthly parameter usage report for this template in articles.

TemplateData untuk Row header

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

Parameter templat

Templat ini lebih menyukai format parameter dalam satu baris.

ParameterKeteranganJenisStatus
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

Baku
(template dependent)
Isiopsional
horizontal alignalign

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

Nilai yang disarankan
left center right justified
Baku
center
Kataopsional
stylestyle

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

Baku
(template dependent)
Kataopsional
background colorcolor

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

Baku
(template dependent)
Barisopsional

See also

[beccè' sombher]
  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 WikiProject Wildfire.
  4. This template is related to WikiProject Songs.
  5. This group of templates is related to WikiProject Software.
  6. This group of templates is related to WikiProject Television.