شابلون:Table cell templates/doc

ویکی‌پدیادان، آچیق بیلیک‌لیک‌دن

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 بؤلمه:مؤقایسه‌لر.

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.

شابلون:Warnsign 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}} ||rowspan=2 {{N/A}}
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}


Table cell templates
Class[۱] Default syntax Preview (default) Customized syntax Preview (customized)
table-rh {{rh}} | Row header[۲] Row header {{rh|align=right}} | Row header Row header
{{rh2}} | Row header[۲] Row header {{rh2|align=right}} | Row header Row header
table-yes {{yes}} هن {{yes|customized [[plain text|text]]}} customized text
{{yes C}} بله {{yes C|customized [[plain text|text]]}} customized text
{{yes O}} بله {{yes O|customized [[plain text|text]]}} customized text
table-maybe {{maybe}} اولا بیلر {{maybe|customized [[plain text|text]]}} customized text
table-no {{no}} یوخ {{no|customized [[plain text|text]]}} customized text
{{no O}} یوخ {{no O|customized [[plain text|text]]}} customized text
{{no X}} شابلون:No X {{no X|customized [[plain text|text]]}} شابلون:No X
{{eliminated}} شابلون:Eliminated {{eliminated|dropped out}} شابلون:Eliminated
{{active fire|12%}} شابلون:Active fire
{{lost}} Lost {{lost|missing}} missing
{{safe}} شابلون:Safe {{safe|protected}} شابلون:Safe
table-active {{active}} آرشیو {{active|live}} live
table-siteactive {{site active}} شابلون:Site active {{site active|up}} شابلون:Site active
{{coming soon}} شابلون:Coming soon {{coming soon|second half of the year}} شابلون:Coming soon
table-siteinactive {{site inactive}} شابلون:Site inactive {{site inactive|down}} شابلون:Site inactive
table-yes2 {{good}} شابلون:Good {{good|A}} شابلون:Good
{{yes2}} {{yes2|text}} text
{{ya}} Green tickY {{ya|text=ya}} Green tickY
{{ya|Ya}} Green tickY {{ya|text|link=WP:ALT}} Green tickY
{{won}} قازاندی {{won|text=white|color=darkblue|winner}} winner
{{won|place=1}} 1 {{won|place=gold}} gold
{{won|place=2}} 2 {{won|place=silver}} silver
{{won|place=3}} 3 {{won|place=bronze}} bronze
{{WinDL}} شابلون:WinDL {{WinDL|win}} شابلون:WinDL
{{WinDL|res=D}} شابلون:WinDL {{WinDL|res=draw}} شابلون:WinDL
{{WinDL|res=L}} شابلون:WinDL {{WinDL|res=loss}} شابلون:WinDL
table-no2 {{no2}} {{no2|text}} text
{{na}} Red XN {{na|text=na}} Red XN
{{na|Na}} Red XN {{na|text|link=WP:ALT}} Red XN
{{nom}} کاندید اولموش {{nom|5}} 5
{{sho}} شابلون:Sho {{sho|proposed}} شابلون:Sho
{{longlisted}} شابلون:Longlisted {{longlisted|rejected}} شابلون:Longlisted
{{TBA}} اعلان اوْلوناجاق {{TBA|to be announced}} to be announced
table-success {{success}} شابلون:Success {{success|mission complete}} شابلون:Success
{{operational}} شابلون:Operational {{operational|returning data}} شابلون:Operational
table-failure {{failure}} شابلون:Failure {{failure|wrong orbit}} شابلون:Failure
table-partial {{partial}} شابلون:Partial {{partial|almost done}} شابلون:Partial
{{Regional}} شابلون:Regional {{Regional|Uyghur}} شابلون:Regional
{{MaybeCheck}} شابلون:MaybeCheck {{MaybeCheck|text=possibly}} شابلون:MaybeCheck
{{MaybeCheck|possibly}} شابلون:MaybeCheck {{MaybeCheck|text|link=WP:ALT}} شابلون:MaybeCheck
{{partial success}} شابلون:Partial success {{partial success|reached orbit and returned pictures}} شابلون:Partial success
{{partial failure}} شابلون:Partial failure {{partial failure|[[Cubesat]] not deployed}} شابلون:Partial failure
{{okay}} شابلون:Okay {{okay|C}} شابلون:Okay
{{Yes-No}} Yes/No {{Yes-No|yes with an if; no with a but}} yes with an if; no with a but
{{some}} شابلون:Some {{some|many}} شابلون:Some
{{nonpartisan}} شابلون:Nonpartisan {{nonpartisan|impartial}} شابلون:Nonpartisan
{{pending}} بللی اولونماییب {{pending|awaiting}} awaiting
{{unofficial}} شابلون:Unofficial {{unofficial|''de facto''}} شابلون:Unofficial
{{unofficial2}} شابلون:Unofficial2 {{unofficial2|''de facto''}} شابلون:Unofficial2
{{usually}} شابلون:Usually {{usually|commonly}} شابلون:Usually
{{rarely}} شابلون:Rarely {{rarely|seldom}} شابلون:Rarely
{{sometimes}} شابلون:Sometimes {{sometimes|occasionally}} شابلون:Sometimes
table-noAttempt {{No attempt}} شابلون:No attempt {{No attempt|No landing attempted}} شابلون:No attempt
table-any {{any}} شابلون:Any {{any|anyone}} شابلون:Any
table-na {{n/a}} ائل‌چاتماز {{n/a|unavailable}} unavailable
{{varies}} شابلون:Varies {{varies|differs}} شابلون:Varies
{{sdash}} {{sdash|[[File:Dash.svg|13px|link=|dash icon]]}} dash
{{BLACK}} شابلون:BLACK {{BLACK|banned}} شابلون:BLACK
{{non-album single}} شابلون:Non-album single {{non-album single|EP}} شابلون:Non-album single
{{unreleased}} شابلون:Unreleased {{unreleased|shelved}} شابلون:Unreleased
table-unknown {{unknown}} بیلینمز {{unknown|?}} ?
{{dunno}} شابلون:Dunno {{dunno|not sure}} شابلون:Dunno
table-automatic {{perhaps}} شابلون:Perhaps {{perhaps|maybe}} شابلون:Perhaps
table-depends {{depends}} شابلون:Depends {{depends|vendor-defined}} شابلون:Depends
table-included {{included}} شابلون:Included {{included|incorporated}} شابلون:Included
table-dropped {{dropped}} شابلون:Dropped {{dropped|discontinued}} شابلون:Dropped
{{terminated}} شابلون:Terminated {{terminated|fired}} شابلون:Terminated
table-software {{beta}} شابلون:Beta {{beta|preview}} شابلون:Beta
{{table-experimental}} شابلون:Table-experimental {{table-experimental|lab}} شابلون:Table-experimental
{{open source}} شابلون:Open source {{open source|software libre}} شابلون:Open source
{{free}} شابلون:Free {{free|empty}} شابلون:Free
{{proprietary}} شابلون:Proprietary {{proprietary|custom extension}} شابلون:Proprietary
{{nonfree}} شابلون:Nonfree {{nonfree|paid}} شابلون:Nonfree
{{needs}} شابلون:Needs {{needs|req.}} شابلون:Needs
{{nightly}} شابلون:Nightly {{nightly|dev}} شابلون:Nightly
{{release-candidate}} شابلون:Release-candidate {{release-candidate|RC}} شابلون:Release-candidate
table-draw {{draw}} {{draw|1:1}} 1:1
table-planned {{planned}} شابلون:Planned {{planned|July 2028}} شابلون:Planned
table-scheduled {{scheduled}} شابلون:Scheduled {{scheduled|3 March 2027}} شابلون:Scheduled
incorrect {{incorrect}} شابلون:Incorrect {{incorrect|wrong}} شابلون:Incorrect
noresult {{no result}} No result {{no result|NR}} NR
table-debate {{D-P}} شابلون:D-P {{D-P|present}} شابلون:D-P
{{D-A}} شابلون:D-A {{D-A|absent}} شابلون:D-A
{{D-I}} شابلون:D-I {{D-I|invited}} شابلون:D-I
{{D-O}} شابلون:D-O {{D-O|invited to other debate}} شابلون:D-O
{{D-N}} شابلون:D-N {{D-N|not invited}} شابلون:D-N
{{D-Nv}} شابلون:D-Nv {{D-Nv|not voting}} شابلون:D-Nv
{{D-W}} شابلون:D-W {{D-W|withdrawn}} شابلون:D-W
{{D-Out}} شابلون:D-Out {{D-Out|out of race}} شابلون:D-Out
table-cast {{CMain}} شابلون:CMain {{CMain|text}} شابلون:CMain
{{CAlso starring}} شابلون:CAlso starring {{CAlso starring|costar}} شابلون:CAlso starring
{{CRecurring}} یئنیله‌نن {{CRecurring|regular guest}} regular guest
{{CGuest}} قوناق {{CGuest|victim}} victim
{{COther}} شابلون:COther {{COther|ensemble}} شابلون:COther
{{CNone}} شابلون:CNone {{CNone|cast}} شابلون:CNone
{{CEmpty}} شابلون:CEmpty
{{CRemoved}} شابلون:CRemoved {{CRemoved|edited}} شابلون:CRemoved
{{CFinalist}} شابلون:CFinalist {{CFinalist|text=white|color=darkblue|contender}} شابلون:CFinalist
{{CFinalist|place=3rd Place}} شابلون:CFinalist {{CFinalist|place=third place}} شابلون:CFinalist
{{exempt}} شابلون:Exempt {{Black Exempt}} شابلون:Black Exempt
{{nocontest}} شابلون:Nocontest {{nocontest|rescheduled}} شابلون:Nocontest
{{Runner-up}} شابلون:Runner-up {{Runner-up|2nd Place}} شابلون:Runner-up
{{Quit}} شابلون:Quit {{Quit|left}} شابلون:Quit
no class {{not yet}} شابلون:Not yet {{not yet|NY}} شابلون:Not yet
{{optional}} شابلون:Optional {{optional|non-mandatory}} شابلون:Optional
{{shade|100}}% شابلون:Shade% {{shade|r=0|g=100|b=255|100}}% شابلون:Shade%
{{shade|75}}% شابلون:Shade% {{shade|r=0|g=100|b=255|75}}% شابلون:Shade%
{{shade|25}}% شابلون:Shade% {{shade|r=0|g=100|b=255|25}}% شابلون:Shade%
{{shade|0}}% شابلون:Shade% {{shade|r=0|g=100|b=255|0}}% شابلون:Shade%


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

شابلون:Table cell templates

Creating new templates[دَییشدیر]

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}}}

Color subpage[دَییشدیر]

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: {{لجند|{{yes2/bgcolor}}|supported}}


This is the TemplateData documentation for this template used by VisualEditor and other tools; click here to see a monthly parameter usage report for this template.

TemplateData for Table cell templates

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

پارامترهای الگو

استفاده از قالب‌بندی درون‌خطی برای پارامترهای این الگو ارجح است.


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

(template dependent)
horizontal alignalign

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


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

(template dependent)
background colorcolor

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

(template dependent)

See also[دَییشدیر]

  • {{Change}} – calculates, displays and color-codes changes between two values
  • {{BSD-lic}} – specialized redirect for {{free}}
  • {{GPL-lic}} – specialized redirect for {{free}}
  • {{LGPL-lic}} – specialized redirect for {{free}}


  1. ^ The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
  2. ^ ۲٫۰ ۲٫۱ Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.