داڕێژە:Pending
چاوەڕوانکردن |
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
[دەستکاری]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]]}} | 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]]}} | customized text | |
table-no
|
{{no}} | نەخێر | {{no|customized [[plain text|text]]}} | customized text | |
{{no O}} | داڕێژە:No O | {{no O}} | داڕێژە:No O | ||
{{no X}} | داڕێژە:No X | {{no X}} | داڕێژە:No X | ||
{{eliminated}} | Eliminated | {{eliminated|dropped out}} | 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}} | up | |
{{coming soon}} | Coming soon | {{coming soon|second half of the year}} | second half of the year | ||
table-siteinactive
|
{{site inactive}} | Inactive | {{site inactive|down}} | down | |
table-yes2
|
{{good}} | Good | {{good|A}} | A | |
{{yes2}} | {{yes2|text}} | ||||
{{ya}} | {{ya|text=ya}} | ||||
{{ya|Ya}} | {{ya|text|link=WP:ALT}} | ||||
{{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}} | |||
{{na}} | {{na|text=na}} | na | |||
{{na|Na}} | {{na|text|link=WP:ALT}} | ||||
{{nom}} | پاڵێوراو | {{nom|5}} | 5 | ||
{{sho}} | Shortlisted | {{sho|proposed}} | proposed | ||
{{longlisted}} | داڕێژە:Longlisted | {{longlisted|rejected}} | داڕێژە:Longlisted | ||
{{TBA}} | 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|almost done}} | 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}} | C | ||
{{Yes-No}} | بەڵێ/نەخێر | {{Yes-No|yes with an if; no with a but}} | yes with an if; no with a but | ||
{{some}} | کەمێک | {{some|many}} | many | ||
{{nonpartisan}} | داڕێژە:Nonpartisan | {{nonpartisan|impartial}} | داڕێژە:Nonpartisan | ||
{{pending}} | چاوەڕوانکردن | {{pending|awaiting}} | awaiting | ||
{{unofficial}} | Unofficial | {{unofficial|''de facto''}} | de facto | ||
{{unofficial2}} | داڕێژە:Unofficial2 | {{unofficial2|''de facto''}} | داڕێژە:Unofficial2 | ||
{{usually}} | Usually | {{usually|commonly}} | commonly | ||
{{rarely}} | Rarely | {{rarely|seldom}} | seldom | ||
{{sometimes}} | Sometimes | {{sometimes|occasionally}} | occasionally | ||
table-noAttempt
|
{{No attempt}} | داڕێژە:No attempt | {{No attempt|No landing attempted}} | داڕێژە:No attempt | |
table-any
|
{{any}} | ھیچ | {{any|anyone}} | anyone | |
table-na
|
{{n/a}} | N/A | {{n/a|unavailable}} | unavailable | |
{{varies}} | داڕێژە:Varies | {{varies|differs}} | داڕێژە:Varies | ||
{{sdash}} | داڕێژە:Sdash | {{sdash|[[File:Dash.svg|13px|link=|dash icon]]}} | داڕێژە:Sdash | ||
{{BLACK}} | N/A | {{BLACK|banned}} | banned | ||
{{non-album single}} | داڕێژە:Non-album single | {{non-album single|EP}} | داڕێژە:Non-album single | ||
{{unreleased}} | داڕێژە:Unreleased | {{unreleased|shelved}} | داڕێژە:Unreleased | ||
table-unknown
|
{{unknown}} | Unknown | {{unknown|?}} | ? | |
{{dunno}} | ؟ | {{dunno|not sure}} | not sure | ||
table-automatic
|
{{perhaps}} | داڕێژە:Perhaps | {{perhaps|maybe}} | داڕێژە:Perhaps | |
table-depends
|
{{depends}} | بەستراو | {{depends|vendor-defined}} | vendor-defined | |
table-included
|
{{included}} | لەخۆیگرتۆ | {{included|incorporated}} | incorporated | |
table-dropped
|
{{dropped}} | وێڵ بووە | {{dropped|discontinued}} | discontinued | |
{{terminated}} | تەواو بووە | {{terminated|fired}} | fired | ||
table-beta
|
{{beta}} | بێتا | {{beta|preview}} | preview | |
table-experimental
|
{{table-experimental}} | Experimental | {{table-experimental|lab}} | lab | |
table-free
|
{{free}} | خۆڕایی | {{free|empty}} | empty | |
table-proprietary
|
{{proprietary}} | Proprietary | {{proprietary|custom extension}} | custom extension | |
table-nonfree
|
{{nonfree}} | {{nonfree|paid}} | |||
table-needs
|
{{needs}} | Needs | {{needs|req.}} | req. | |
table-nightly
|
{{nightly}} | Nightly build | {{nightly|dev}} | dev | |
table-release-candidate
|
{{release-candidate}} | Release candidate | {{release-candidate|RC}} | RC | |
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|wrong}} | wrong | |
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|text}} | text | |
{{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|cast}} | cast | |||
{{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: #FFD; color: black; vertical-align: middle; text-align: center; " class="partial table-partial"|چاوەڕوانکردن
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
[دەستکاری]دراوەی داڕێژە بۆ Pending
One of several templates for styling individual table cells with standard contents and colors.
پارامەتر | وەسف | جۆر | ڕەوش | |
---|---|---|---|---|
text | 1 | 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
| ناوەڕۆک | دڵخواز |
horizontal align | align | text alignment inside the cell, either 'left', 'right', 'center' or 'justified'
| زنجیرەنووسە | دڵخواز |
style | style | a semicolon separated list of additional CSS rules to be applied to the table cell
| زنجیرەنووسە | دڵخواز |
background color | color | a valid CSS color value or name to override the standard the cell background, only available with some templates
| هێڵ | دڵخواز |
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
[دەستکاری]- ^ The HTML class of table cell templates may be referenced in a user stylesheet to change appearance.
- ^ ئ ا Does not take a parameter; the content should be placed after the template call, separated by a pipe (|) character.
بەڵگەنامەی سەرەوە لە داڕێژە:Table cell templates/docەوە ھاتووە. (دەستکاری بکە | مێژوو) دەستکاریکەران دەتوانن ئەم داڕێژەیە لە پەڕەکانی خۆڵەپەتانێ (دروست بکە | ئاوێنە) و ئەزموون (دروست بکە) تاقی بکەنەوە. ژێرپەڕەکانی ئەم داڕێژە. |