قالب:CRemoved
removed |
تم تصميم القوالب في هذه السلسلة لاستخدامها في جدول لإنشاء خلية بها نص في تلك الخلية، مع خلفية ملونة بشكل مناسب. وهي تستخدم عادة في جداول [[المقارنة.
على سبيل المثال، يجعل style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
</noinclude> خلية بخلفية خضراء. يتم أخذ النص في الخلية من مساعدة:قالب؛ {{yes|Sure}}
سينتج "بالتأكيد" وإلا سيتم تعيينه افتراضيًا على "نعم". تسمح معظم القوالب للمحررين بتجاوز النص الافتراضي بهذه الطريقة، وبعضها يتطلب وضع نص بعد استدعاء القالب وبعضها يحتاج أيضًا إلى شريط عمودي بينهما: {{table cell template}} text
or {{table cell template}} | text
. هذه المعلومات والألوان والنصوص الافتراضية موجودة في الجدول أدناه.
إذا كنت تريد استخدام سمات أخرى لخلايا الجدول، مثل colspan
or rowspan
, فيجب وضعها قبل استدعاء القالب ويجب عدم وجود شريط عمودي |
فيما بينهما:
Yes | No | — |
---|---|---|
Yes/No |
... !{{Yes}} ||{{No}} ||rowspan=2 {{N/a}} |- |colspan=2 {{Yes-No}} ...
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, style="background:#9EFF9E;vertical-align:middle;text-align:center;" class="table-yes"|Yes
</noinclude> 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: |
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 | — |
---|---|---|
Yes/No |
...
!{{Yes}} ||{{No}} ||rowspan=2 {{N/a}}
|-
|colspan=2 style="border:solid 3px Maroon" {{Yes-No}}
...
Aceste formate sunt menite pentru a fi folosite in tabele, pentru a crea o celulă cu text și cu fundal colorat.
مساعدة:قالب 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}}}
.
Formate
تعديلClass[1] | Default syntax | Preview (default) | Customized syntax | Preview (customized) |
---|---|---|---|---|
table-rh |
{{rh}} | Row header[2] | Row header | {{rh|align=right}} | Row header | Row header |
{{rh2}} | Row header[2] | Row header | {{rh2|align=right}} | Row header | Row header | |
table-yes |
{{yes}} | Yes | {{yes|Customized [[Plain text|text]]}} | Customized text |
{{Ya}} | {{Ya|Customized alt text|link=WP:ALT}} | |||
table-no |
{{nu}} | No | {{nu|Customized [[Plain text|text]]}} | Customized text |
{{Na}} | {{Na|Customized alt text|link=WP:ALT}} | |||
{{bad}} | قالب:Bad | {{bad|F}} | قالب:Bad | |
{{eliminated}} | Eliminated | |||
table-siteactive |
{{Site active}} | Active | ||
table-siteinactive |
{{Site inactive}} | Inactive | ||
table-yes2 |
{{good}} | كويس | {{good|A}} | A |
{{yes2}} | {{yes2|Text}} | Text | ||
{{won}} | فوز | {{فوز|text=white|color=darkblue}} | فوز | |
{{فوز|place=1}} | 1 | {{فوز|place=Gold}} | Gold | |
{{فوز|place=2}} | 2 | {{فوز|place=Silver}} | Silver | |
{{فوز|place=3}} | 3 | {{فوز|place=Bronze}} | Bronze | |
table-no2 |
{{no2}} | {{no2|Text}} | Text | |
{{nom}} | رُشِّح | {{nom|5}} | 5 | |
{{sho}} | Shortlisted | |||
{{TBA}} | TBA | {{TBA|To be announced}} | To be announced | |
table-partial |
{{partial}} | Partial | ||
{{yes-No}} | Yes/No | |||
{{okay}} | Neutral | {{okay|C}} | C | |
{{some}} | Some | |||
table-any |
{{any}} | Any | ||
table-na |
{{n/a}} | — | ||
table-unknown |
{{Unknown}} | مش معروف | ||
table-depends |
{{Depends}} | Depends | {{Depends|Customized [[Plain text|text]]}} | Customized text |
table-included |
{{Included}} | Included | ||
table-dropped |
{{dropped}} | Dropped | ||
{{terminated}} | Terminated | |||
table-beta |
{{beta}} | Beta | ||
table-free |
{{free}} | حُرّ | {{free|Customized [[Plain text|text]]}} | Customized text |
table-nonfree |
{{nonfree}} | Non-free | {{nonfree|Customized [[Plain text|text]]}} | Customized text |
table-proprietary |
{{proprietary}} | برامج احتكاريه | {{proprietary|Customized [[Plain text|text]]}} | Customized text |
table-needs |
{{needs}} | Needs | {{needs|Customized [[Plain text|text]]}} | Customized text |
no class | {{incorrect}} | مش صح
This template is designed to be used in a table to make a cell with "Incorrect" in that cell, with an orange background. It is to be distinguished from Partial in that "incorrect" means "worse than". style="background: white; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="CRemoved table-CRemoved"| {{{1|{{{text}}}}}}
</noinclude> || {{incorrect|Customized [[Plain text|text]]}} || style="background: #FE7; vertical-align: middle; text-align: center; " class="incorrect"|Customized text
This template is designed to be used in a table to make a cell with "Incorrect" in that cell, with an orange background. It is to be distinguished from Partial in that "incorrect" means "worse than". style="background: white; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="CRemoved table-CRemoved"| {{{1|{{{text}}}}}}
</noinclude> | ||
no class | {{no result}} | No result | {{no result|N.R.}} | N.R. |
no class | {{pending}} | Pending | ||
table-nightly |
{{nightly}} | Nightly build | {{nightly|Customized [[Plain text|text]]}} | Customized text |
table-release-candidate |
{{release-candidate}} | Release candidate | {{release-candidate|Customized [[Plain text|text]]}} | Customized text |
no class | {{?}}[3] | ? | ||
no class | {{draw}} | {{draw|Text}} | Text |
Note
تعديل- ↑ 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.
- ↑ Does not take a parameter; not really a table cell template at all, but here for completeness
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: #FE9; vertical-align: middle; text-align: center; text-transform: capitalize;" class="table-cast"|removed
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 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
تعديلTemplateData for CRemoved
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 cell background, only available with some templates
| سطر | اختياري |
See also
تعديل- {{Change}} – calculates, displays and color-codes changes between two values
- {{Cell color}} - Shaded cell based on value in a range with automatic text visibility
- {{BSD-lic}} – specialized redirect for {{free}}
- {{GPL-lic}} – specialized redirect for {{free}}
- {{LGPL-lic}} – specialized redirect for {{free}}
- {{Active}} / {{No result}} / {{Eliminated}} for حوالى Comparisons – ح. comparison tables
Notes
تعديلكود
تعديلرمز شائع لمعظم القوالب الموجودة في هذه السلسلة إن لم يكن كلها:
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: #FE9; vertical-align: middle; text-align: center; text-transform: capitalize;" class="table-cast"|removed
لإنشاء قالب خلية جدول جديد، يمكنك استخدام:
{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}
يجب عليك ترك معلمة align
وغالبًا ما تكون معلمة class
غير ضرورية أيضًا.
أضف القالب الجديد إلى الجدول في الوثائق المشتركة بعد ذلك. يرجى النظر في إعادة استخدام أحد القوالب الأخرى، ويرجى اختيار اللون بشكل معقول.
إذا وجدت قالب خلية جدول لا يأخذ معلمة وتريد أن تكون قادرًا على تغيير النص في الخلية، فلا تكرر القالب! بدلاً من ذلك، قم بتحرير القالب وتغيير النص إلى استبدال المعلمة الافتراضية. على سبيل المثال، إذا تم نص أحد القوالب Dropped
، وغير ذلك إلى {{{1|Dropped}}}
.
style="background: #abcdef; color: black; vertical-align: middle; text-align: center; " class="automatic table-automatic"| text
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 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 ويكيبيديا:طريقة الكتابه/سهولة الوصول 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: قالب:CRemoved/bgcolor;
in the style
attribute, or they should reference another template's subpage, e.g. background: #BFD;
. Alternatively, the /bgcolor
subpage may redirect to another color code subpage: #REDIRECT yes2/bgcolor
.
supported
بيانات القالب
تعديلTemplateData for CRemoved
<بيانات القالب> { "description": "One of several templates for styling individual table cells with standard contents and colors.", "format": "inline", "params": { "1": { "label": "text", "description": "text to be displayed instead of the default; if this doesn't work put the text after the template, possibly with a vertical bar
شوف كمان
تعديل- {{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}}
- {{Active}} / {{No result}} / {{Eliminated}} for حوالى Comparisons – ح. comparison tables
- {{Cell color}} - Shaded cell based on value in a range with automatic text visibility
كود
تعديلرمز شائع لمعظم القوالب الموجودة في هذه السلسلة إن لم يكن كلها:
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: #FE9; vertical-align: middle; text-align: center; text-transform: capitalize;" class="table-cast"|removed
لإنشاء قالب خلية جدول جديد، يمكنك استخدام:
{{subst:Table cell templates|text= default text |bg= background color |class= a class name without prefix |align= standard horizontal alignment}}
يجب عليك ترك معلمة align
وغالبًا ما تكون معلمة class
غير ضرورية أيضًا.
أضف القالب الجديد إلى الجدول في الوثائق المشتركة بعد ذلك. يرجى النظر في إعادة استخدام أحد القوالب الأخرى، ويرجى اختيار اللون بشكل معقول.
إذا وجدت قالب خلية جدول لا يأخذ معلمة وتريد أن تكون قادرًا على تغيير النص في الخلية، فلا تكرر القالب! بدلاً من ذلك، قم بتحرير القالب وتغيير النص إلى استبدال المعلمة الافتراضية. على سبيل المثال، إذا تم نص أحد القوالب Dropped
، وغير ذلك إلى {{{1|Dropped}}}
.
style="background: #abcdef; color: black; vertical-align: middle; text-align: center; " class="automatic table-automatic"| text
بيانات القالب
تعديلTemplateData for CRemoved
أحد القوالب المتعددة لتصميم خلايا جدول فردية بمحتويات وألوان قياسية.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
نص | 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
| محتوى | مقترح |
محاذاة أفقية | align | text alignment inside the cell, either 'left', 'right', 'center' or 'justified'
| نص | مقترح |
style | النمط | a semicolon separated list of additional CSS rules to be applied to the table cell
| نص | مقترح |
لون الخلفية | color | a valid CSS color value or name to override the standard the cell background, only available with some templates
| سطر | مقترح |
انظر أيضًا
تعديل- {{تغيير}} – يحسب ويعرض ويتغير لون الرموز بين قيمتين
- {{BSD-lic}} – إعادة توجيه مخصصة لـ {{مجاني}}
- {{GPL-lic}} – إعادة توجيه مخصصة لـ {{مجاني}}
- {{LGPL-lic}} – إعادة توجيه مخصصة لـ {{مجاني}}