داڕێژە:BLACK

لە ئینسایکڵۆپیدیای ئازادی ویکیپیدیاوە
Jump to navigation Jump to search
N/A
بەڵگەدارکردنی داڕێژە[ببینە] [دەستکاری بکە] [مێژوو] [پاکسازی]

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.

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.

⚠ Important: If you want to use other attributes for the table cells, e.g. colspan or rowspan, they need to be put before the template call and there must be no vertical bar | in between them:

بەڵێ نەخێر N/A
بەڵێ/نەخێر
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Yes-No}}
...

Templates[دەستکاری]

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[٢] style="background: #edf; color: black; vertical-align: middle; text-align: left; font-weight: bolder; " class="rh heading table-rh" Row header {{rh2|align=right}} Row header style="background: #edf; color: black; vertical-align: middle; text-align: right; font-weight: bolder; " class="rh heading table-rh" Row header
table-yes {{yes}} بەڵێ {{yes|customized [[plain text|text]]}} style="background: #90ff90; color: black; vertical-align: middle; text-align: center; " class="table-yes"|customized text
{{yes C}} داڕێژە:Yes C {{yes C|}} داڕێژە:Yes C
{{yes O}} داڕێژە:Yes O {{yes O|}} داڕێژە:Yes O
table-maybe {{maybe}} لەوانەیە {{maybe|customized [[plain text|text]]}} style="background: #ffff90; color: black; vertical-align: middle; text-align: center; " class="table-maybe"|customized text
table-no {{no}} نەخێر {{no|customized [[plain text|text]]}} style="background:#F99;vertical-align:middle;text-align:center;" class="table-no"|customized text
{{no O}} داڕێژە:No O {{no O|}} داڕێژە:No O
{{no X}} داڕێژە:No X {{no X|}} داڕێژە:No X
{{eliminated}} Eliminated {{eliminated|dropped out}} style="background:#FA8072; color:black; vertical-align: middle; text-align: center; " class="table-no" | dropped out
{{active fire|12%}} داڕێژە:Active fire
{{lost}} داڕێژە:Lost {{lost|missing}} داڕێژە:Lost
{{safe}} داڕێژە:Safe {{safe|protected}} داڕێژە:Safe
table-active {{active}} داڕێژە:Active {{active|live}} داڕێژە:Active
table-siteactive {{site active}} Active {{site active|up}} style="background: #90FF90; color: black; vertical-align: middle; text-align: center; " class="active table-siteactive"|up
{{coming soon}} Coming soon {{coming soon|second half of the year}} style="background: #ff9090; color: black; vertical-align: middle; text-align: center; " class="active table-siteactive"|second half of the year
table-siteinactive {{site inactive}} Inactive {{site inactive|down}} style="background: #FF9090; color: black; vertical-align: middle; text-align: center; " class="inactive table-siteinactive"|down
table-yes2 {{good}} Good {{good|A}} style="background: #98FB98; color: black; vertical-align: middle; text-align: center; " class="yes2 table-yes2"| A
{{yes2}} {{yes2|text}} style="background: #ddffdd; color: black;" class="table-yes2" |
{{ya}} Yes {{ya|text=ya}} style="background: #90ff90; color: black; vertical-align: middle; text-align: center; " class="table-yes"|Yes
{{ya|Ya}} style="background: #90ff90; color: black; vertical-align: middle; text-align: center; " class="table-yes"|Ya {{ya|text|link=WP:ALT}} style="background: #90ff90; color: black; vertical-align: middle; text-align: center; " class="table-yes"|text
{{won}} براوە {{won|text=white|color=darkblue|winner}} style="background: darkblue; color: white; vertical-align: middle; text-align: center; " class="yes table-yes2"|winner
{{won|place=1}} style="background: gold; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|1 {{won|place=gold}} style="background: gold; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|gold
{{won|place=2}} style="background: silver; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|2 {{won|place=silver}} style="background: silver; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|silver
{{won|place=3}} style="background: #D9A821; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|3 {{won|place=bronze}} style="background: #D9A821; color: black; vertical-align: middle; text-align: center; " class="yes table-yes2"|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}} style="background: #ffdddd; color: black;" class="table-no2" |
{{na}} No {{na|text=na}} data-sort-value="No" style="background: #FFD2D2; color:black; vertical-align: middle; text-align: center; " class="table-no2" | na
{{na|Na}} data-sort-value="No" style="background: #FFD2D2; color:black; vertical-align: middle; text-align: center; " class="table-no2" | Na {{na|text|link=WP:ALT}} data-sort-value="No" style="background: #FFD2D2; color:black; vertical-align: middle; text-align: center; " class="table-no2" | text
{{nom}} پاڵێوراو {{nom|5}} style="background: #FDD; color: black; vertical-align: middle; text-align: center; " class="no table-no2"|5
{{sho}} Shortlisted {{sho|proposed}} style="background: #f0e68c; color: black; vertical-align: middle; text-align: center; " class="table-no2"|proposed
{{longlisted}} داڕێژە:Longlisted {{longlisted|rejected}} داڕێژە:Longlisted
{{TBA}} TBA {{TBA|to be announced}} style="background: #DDF; color: black; vertical-align: middle; text-align: center; " class="no table-no2"|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|almost done}} style="background: #ffffdd; color: black;" class="table-partial" | almost done
{{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}} Neutral {{okay|C}} style="background: #FFD; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"| C
{{Yes-No}} بەڵێ/نەخێر {{Yes-No|yes with an if; no with a but}} style="background: #ffffdd; color: black;" class="table-partial" | yes with an if; no with a but
{{some}} کەمێک {{some|many}} style="background: #ffffdd; color: black;" class="table-partial" | many
{{nonpartisan}} داڕێژە:Nonpartisan {{nonpartisan|impartial}} داڕێژە:Nonpartisan
{{pending}} Pending {{pending|awaiting}} style="background: #FFD; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|awaiting
{{unofficial}} Unofficial {{unofficial|''de facto''}} style="background: #5FC; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|de facto
{{unofficial2}} داڕێژە:Unofficial2 {{unofficial2|''de facto''}} داڕێژە:Unofficial2
{{usually}} Usually {{usually|commonly}} style="background: #8CF; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|commonly
{{rarely}} Rarely {{rarely|seldom}} style="background: #FC6; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|seldom
{{sometimes}} Sometimes {{sometimes|occasionally}} style="background: #b0c4de; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|occasionally
table-noAttempt {{No attempt}} داڕێژە:No attempt {{No attempt|No landing attempted}} داڕێژە:No attempt
table-any {{any}} ھیچ {{any|anyone}} style="background: #ffffdd; color: black;" class="table-any" | anyone
table-na {{n/a}} N/A {{n/a|unavailable}} style="background: #ececec; color: grey;" class="table-na" | unavailable
{{varies}} داڕێژە:Varies {{varies|differs}} داڕێژە:Varies
{{sdash}} داڕێژە:Sdash {{sdash|[[File:Dash.svg|13px|link=|dash icon]]}} داڕێژە:Sdash
{{BLACK}} N/A {{BLACK|banned}} style="background: #000; color: black; vertical-align: middle; text-align: center; " class="table-na"|banned
{{non-album single}} داڕێژە:Non-album single {{non-album single|EP}} داڕێژە:Non-album single
{{unreleased}} داڕێژە:Unreleased {{unreleased|shelved}} داڕێژە:Unreleased
table-unknown {{unknown}} Unknown {{unknown|?}} style="background: #E4E4E4; color: black; vertical-align: middle; text-align: center; " class="unknown table-unknown"|?
{{dunno}} ؟ {{dunno|not sure}} style="background: white; color: black;" class="table-unknown" | not sure
table-automatic {{perhaps}} داڕێژە:Perhaps {{perhaps|maybe}} داڕێژە:Perhaps
table-depends {{depends}} بەستراو {{depends|vendor-defined}} style="background: #ffeedd; color: black;" class="table-depends" | vendor-defined
table-included {{included}} لەخۆیگرتۆ {{included|incorporated}} style="background: #ddfbff; color: black;" class="table-included" | incorporated
table-dropped {{dropped}} وێڵ بووە {{dropped|discontinued}} style="background: #ffeedd; color: black;" class="table-dropped" | discontinued
{{terminated}} تەواو بووە {{terminated|fired}} style="background: #eeddff; color: black;" class="table-dropped" | fired
table-beta {{beta}} بێتا {{beta|preview}} style="background: #dfdfff; color: black;" class="table-beta" | preview
table-experimental {{table-experimental}} Experimental {{table-experimental|lab}} style="background: #DFDFFF; color: black; vertical-align: middle; text-align: center; " class="experimental table-experimental"|lab
table-free {{free}} خۆڕایی {{free|empty}} style="background: #99ffff; color: black;" class="table-free" | empty
table-proprietary {{proprietary}} Proprietary {{proprietary|custom extension}} style="background: #ffc65d; vertical-align: middle; text-align: center; " class="table-proprietary"|custom extension
table-nonfree {{nonfree}} {{nonfree|paid}} style="background:#ff99dd; color:black;" class="table-nonfree" |
table-needs {{needs}} Needs {{needs|req.}} style="background: #FF9090; color: black; vertical-align: middle; text-align: center; " class="need table-needs"|req.
table-nightly {{nightly}} Nightly build {{nightly|dev}} style="background: #fdd; color: black; vertical-align: middle; text-align: center; " class="nightly table-nightly"|dev
table-release-candidate {{release-candidate}} Release candidate {{release-candidate|RC}} style="background: #BFD; color: black; vertical-align: middle; text-align: center; " class="table-release-candidate"|RC
table-draw {{draw}} {{draw|1:1}} style="background:#c5d2ea; color:black; vertical-align:middle; text-align:center; " class="table-draw" |1:1
table-planned {{planned}} داڕێژە:Planned {{planned|July 2028}} داڕێژە:Planned
table-scheduled {{scheduled}} داڕێژە:Scheduled {{scheduled|3 March 2027}} داڕێژە:Scheduled
incorrect {{incorrect}} ناڕاست {{incorrect|wrong}} style="background: #ff9900; color: black;" | wrong
noresult {{no result}} No result {{no result|NR}} style="background: #DFDFFF; color: black; vertical-align: middle; text-align: center; " class="noresult"|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 {{CRecurring|regular guest}} داڕێژە:CRecurring
{{CGuest}} داڕێژە:CGuest {{CGuest|victim}} داڕێژە:CGuest
{{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|25}}

% || داڕێژە:Shade% || {{shade|75}} % || داڕێژە:Shade%

Code[دەستکاری]

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: #000; color: black; vertical-align: middle; text-align: center; " class="table-na"|N/A

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: {{legend|{{yes2/bgcolor}}|supported}}

TemplateData[دەستکاری]

ئەمە بەڵگەنامەی دراوەی داڕێژەیە بۆ ئەم داڕێژە کە لەلایەن دەستکاریکەری دیداری و ئامرازەکانی تر بەکارھاتووە. بڕوانە ڕاپۆرتی ھەڵەی مانگانە بۆ ئەم داڕێژە.

دراوەی داڕێژە بۆ BLACK

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

پارامەترەکانی داڕێژە

This template prefers inline formatting of parameters.

پارامەتروەسفجۆرڕەوش
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

بنچینەیی
(template dependent)
ناوەڕۆکدڵخواز
horizontal alignalign

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

بنچینەیی
center
زنجیرەنووسەدڵخواز
stylestyle

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

Notes[دەستکاری]

  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.