قالب:Success

نجاح
Template documentation[view] [edit] [history] [purge]

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.

قالب: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:

نعم لا N/A
نعم/لا
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...

القوالب

قوالب خلايا الجدول
الفئة[1] الافتراض مخصص
البنية النحوية مراجعة البنية النحوية مراجعة
table-rh {{rh}} | Row header[2] عنوان السطر {{rh|align=right}} | Row header عنوان السطر
{{rh2}} | Row header[2] عنوان السطر {{rh2|align=center}} | Row header عنوان السطر
table-yes {{yes}} نعم {{yes|[[نص بسيط|نص]] مخصص}} نص مخصص
{{yes C}} Green check.svg نعم {{yes C|[[نص بسيط|نص]] مخصص}} Green check.svg نص مخصص
{{yes O}} Symbol confirmed.svg نعم {{yes O|[[نص بسيط|نص]] مخصص}} Symbol confirmed.svg نص مخصص
{{yes N}} نعم {{yes N|[[نص بسيط|نص]] مخصص}} نص مخصص
table-maybe {{maybe}} ربما {{maybe|[[نص بسيط|نص]] مخصص}} نص مخصص
table-no {{no}} لا {{no|[[نص بسيط|نص]] مخصص}} نص مخصص
{{no O}} Pictogram voting delete.svg لا {{no O|[[نص بسيط|نص]] مخصص}} Pictogram voting delete.svg نص مخصص
{{no X}} Dark Red x.svg لا {{no X|[[نص بسيط|نص]] مخصص}} Dark Red x.svg نص مخصص
{{eliminated}} مستبعد {{eliminated|dropped out}} متوقف
{{lost}} مفقود {{lost|missing}} مفقود
{{active fire|12%}}[3] نشط(12%)
{{safe}} آمن {{safe|protected}} محمي
{{no Y}} لا {{no Y|[[نص بسيط|نص]] مخصص}} نص مخصص
table-active {{active}} نشط {{active|live}} نشط
table-siteactive {{site active}} نشط {{site active|up}} صعوداً
{{coming soon}} قريباً {{coming soon|second half of the year}} النصف الثاني من المدرسة
table-siteinactive {{site inactive}} خامد {{site inactive|down}} هبوطاً
table-success {{success}} نجاح {{success|mission complete}} مهمة مكتملة
{{operational}} عملي {{operational|returning data}} إعادة البيانات
table-failure {{failure}} فشل {{failure|wrong orbit}} wrong orbit
table-yes2 {{yes2}} {{yes2|text}} text
{{good}} جيد {{good|A}} A
{{ya}} Yes {{ya|text=ya}} Yes
{{ya|Ya}} Ya {{ya|text|link=WP:ALT}} text
{{yan}} نعم {{yan|text=ya}} ya
{{won}} فائز {{won|text=white|color=darkblue|winner}} winner
{{won|place=1}} فائز {{won|place=gold}} فائز
{{won|place=2}} فائز {{won|place=silver}} فائز
{{won|place=3}} فائز {{won|place=bronze}} فائز
{{WinDL}} W {{WinDL|win}} win
{{WinDL|res=D}} D {{WinDL|res=draw}} draw
{{WinDL|res=L}} L {{WinDL|res=loss}} loss
table-no2 {{no2}} {{no2|text}}
{{na}} No {{na|text=na}} No
{{na|Na}} Na {{na|text|link=WP:ALT}} text
{{nan}} No {{nan|text=na}} na
{{nom}} رُشح {{nom|5}} 5
{{notnom}} غير مُرشَّح {{notnom|not selected}} not selected
{{sho}} اجتاز تصفيات {{sho|proposed}} proposed
{{longlisted}} في القائمة الأولية {{longlisted|rejected}} مرفوض
{{TBA}} ستُعلن لاحقاً {{TBA|to be announced}} سيُعلن لاحقاً
table-partial {{partial}} جزئي {{partial|almost done}} قريب الانتهاء
{{Regional}} إقليمي {{Regional|Uyghur}} Uyghur
{{MaybeCheck}} Maybe {{MaybeCheck|text=possibly}} ممكن
{{MaybeCheck|possibly}} possibly {{MaybeCheck|text|link=WP:ALT}} text
{{partial success}} نجاح جزئي {{partial success|
reached orbit and returned pictures}}
صل إلى المدار وعاد بصور
{{partial failure}} فشل جزئي {{partial failure|[[Cubesat]] not deployed}} لم يُنشر كيوب‌سات
{{okay}} محايد {{okay|C}} C
{{Yes-No}} نعم/لا {{Yes-No|yes with an if; no with a but}} نعم مع إذا؛ لا مع لكن
{{some}} بعض {{some|many}} العديد
{{pending}} لم تُعلن بعد {{pending|awaiting}} انتظار
{{sometimes}} أحياناً {{sometimes|occasionally}} بين الحين والآخر
{{rarely}} نادراً {{rarely|seldom}} نادراً
{{usually}} في المعتاد {{usually|commonly}} شيوعاً
{{unofficial}} غير رسمي {{unofficial|''de facto''}} فعلياً
{{unofficial2}} غير رسمي {{unofficial2|''de facto''}} فعلياً
{{nonpartisan}} حيادي {{nonpartisan|impartial}} محايد
table-any {{any}} أي {{any|anyone}} أي فرد
table-automatic {{perhaps}} ربما {{perhaps|maybe}} ربما
table-draw {{draw}} {{draw|1:1}} 1:1
table-noAttempt {{No attempt}} لا محاولة {{No attempt|No landing attempted}} لم تتم محاولة الهبوط
table-na {{n/a}} N/A {{n/a|unavailable}} غير متوفر
{{varies}} يتغير {{varies|differs}} يختلف
{{non-album single}}[4] Non-album single {{non-album single|EP}} Non-album single
{{unreleased}} غير مطروح {{unreleased|shelved}} shelved
{{BLACK}} N/A {{BLACK|banned}} banned
{{sdash}} {{sdash|[[File:Dash.svg|13px|dash icon]]}} dash
{{vacant}} شاغر {{vacant|missing}} مفقود
table-unknown {{unknown}} غير معروف {{unknown|?}} ?
{{dunno}} ? {{dunno|not sure}} غير متأكد
table-included {{included}} ضمناً {{included|incorporated}} متحد
noresult {{no result}} لا نتيجة {{no result|NR}} NR
table-planned {{planned}} مزمعة {{planned|July 2028}} July 2028
table-scheduled {{scheduled}} مزمع {{scheduled|3 March 2027}} 3 March 2027
table-software[5] {{beta}} تجريبي {{beta|preview}} preview
{{table-experimental}} تجريبي {{table-experimental|lab}} lab
{{nightly}} يُبنى ليلاً {{nightly|dev}} dev
{{release-candidate}} مرشح للنشر {{release-candidate|RC}} RC
{{open source}} مصدر مفتوح {{open source|software libre}} برمجيات حرة
{{free}} مجاني أو حر {{free|empty}} فارغ
{{proprietary}} خاص {{proprietary|custom extension}} ملحق مخصص
{{nonfree}} {{nonfree|paid}}
{{needs}} ضروري {{needs|req.}} req.
table-depends {{depends}} مُحدد {{depends|vendor-defined}} مُحدد من قِبل المُصنِّع
table-dropped {{dropped}} متوقف {{dropped|discontinued}} غير متاح
{{terminated}} منتهي {{terminated|fired}} مُقصى
incorrect {{incorrect}} Incorrect {{incorrect|wrong}} خاطئ
table-debate {{D-P}} P {{D-P|present}} حاضر
{{D-A}} A {{D-A|absent}} غائب
{{D-I}} I {{D-I|invited}} مدعو
{{D-O}} O {{D-O|invited to other debate}} دعي إلى مناقشة أخرى
{{D-N}} N {{D-N|not invited}} غير مدعو
{{D-Nv}} NV {{D-Nv|not voting}} لم يصوت
{{D-W}} W {{D-W|withdrawn}} منسحب
{{D-Out}} خارج {{D-Out|out of race}} خارج السباق
table-cast[6] {{CMain}} رئيسي {{CMain|text}} text
{{CAlso starring}} بمشاركة {{CAlso starring|costar}} costar
{{CRecurring}} متكررة {{CRecurring|regular guest}} regular guest
{{CGuest}} ضيف شرف {{CGuest|victim}} ضحية
{{COther}} Does not appear {{COther|ensemble}} مجموعة
{{CNone}} Does not appear {{CNone|cast}} طاقم
{{CEmpty}}
{{CRemoved}} مُزال {{CRemoved|edited}} محرر
{{CFinalist}} متأهل نهائي {{CFinalist|contender}} منافس
{{CFinalist|place=3rd Place}} 3rd Place {{CFinalist|place=third place}} المرتبة الثالثة
{{exempt}} معفى {{Black Exempt}} السود مُعفَوْن
{{nocontest}} {{nocontest|rescheduled}} أُعيدت جدولته
{{Runner-up}} الوصيف {{Runner-up|2nd Place}} 2nd Place
{{Quit}} خروج المغلوب {{Quit|left}} غادر
no class {{not yet}} ليس بعد {{not yet|NY}} NY
{{optional}} اختياري {{optional|non-mandatory}} non-mandatory
{{shade|100}}% 100% {{shade|color=blue|100}}% 100%
{{shade|75}}% 75% {{shade|color=blue|75|73–78}}% 73–78%
{{shade|25}}% 25% {{shade|color=blue|25|{{val|25|2|u=%}}}} 25%±2%
{{shade|0}}% 0% {{shade|color=blue|0}}% 0%
{{Cell color|90|25|90}} 90 {{Cell color|90|25|90|a80202|0d89fc}} 90
{{Cell color|58|25|90}} 58 {{Cell color|58|25|90|a80202|0d89fc}} 58
{{Cell color|25|25|90}} 25 {{Cell color|25|25|90|a80202|0d89fc}} 25
{{CellCategory|2|بعض النص}} Some text

Code

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

This template documentation is transcluded from Template:Table cell templates [edit]

These templates are designed to be used in a table to make a cell with text in that cell, with an appropriately coloured 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 template parameter and defaults to "Yes".

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

Templates in this series

CSS class[7] Templates Preview 1 Preview 2 Preview 3
table-rh {{rh}}[2] | Row header Row header
table-yes {{yes}}, {{yes|[[Alternate]] text}} نعم Alternate text
table-no {{no}} لا
table-yes2 {{yes2}}[8] Text Text
table-no2 {{no2}}[8] Text Text
table-partial {{partial}}, {{Yes-No}}, {{some}} جزئي نعم/لا بعض
table-but-yes {{but yes}} قالب:But yes
table-but-no {{but no}} قالب:But no
table-na {{n/a}} N/A
table-unknown {{dunno}}, {{unk}} ? Unknown
table-depends {{depends}} مُحدد
table-included {{included}} ضمناً
table-dropped {{dropped}}, {{terminated}} متوقف منتهي
table-beta {{beta}} تجريبي
table-free {{free}} مجاني أو حر
table-nonfree {{nonfree}}[8] [[US$]]3.14 US$3.14
unstyled {{incorrect}} Incorrect
unstyled {{?}}[9] ?

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.
  3. ^ This template is related to قالب:WikiProject link.
  4. ^ This template is related to قالب:WikiProject link.
  5. ^ This group of templates is related to قالب:WikiProject link.
  6. ^ This group of templates is related to قالب:WikiProject link.
  7. ^ The CSS class of table cell templates may be referenced in a user stylesheet to change appearance.
  8. ^ أ ب ت Does not take a parameter; the content should be placed after the template call.
  9. ^ Does not take a parameter; not really a table cell template at all, but here for completeness


Code specific to this template:

style="background: #bbffbb; color: black; vertical-align: middle; text-align: center; " class="table-success" | نجاح

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

Choosing a color

When changing or creating a new template, follow the use of colour guidelines and the color accessibility guidelines 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

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

This is the بيانات القالب documentation for this template used by المحرر المرئي وأدوات أخرى.

See the monthly error report for this template.

TemplateData for Success

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

وسائط القالب

هذا القالب يفضل التنسيق بنفس السطر للوسائط.

وسيطوصفنوعحالة
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'

القيم المقترحة
left center right 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 cell background, only available with some templates

غيابي
(template dependent)
سطراختياري

See also

Notes