قالب:Depends
Depends |
تم تصميم القوالب في هذه السلسلة لاستخدامها في جدول لإنشاء خلية بها نص في تلك الخلية، مع خلفية ملونة بشكل مناسب. وهي تستخدم عادة في جداول [[المقارنة.
على سبيل المثال، يجعل {{yes}}
خلية بخلفية خضراء. يتم أخذ النص في الخلية من مساعدة:قالب؛ {{yes|Sure}}
سينتج "بالتأكيد" وإلا سيتم تعيينه افتراضيًا على "نعم". تسمح معظم القوالب للمحررين بتجاوز النص الافتراضي بهذه الطريقة، وبعضها يتطلب وضع نص بعد استدعاء القالب وبعضها يحتاج أيضًا إلى شريط عمودي بينهما: {{table cell template}} text
or {{table cell template}} | text
. هذه المعلومات والألوان والنصوص الافتراضية موجودة في الجدول أدناه.
إذا كنت تريد استخدام سمات أخرى لخلايا الجدول، مثل colspan
or rowspan
, فيجب وضعها قبل استدعاء القالب ويجب عدم وجود شريط عمودي |
فيما بينهما:
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}} | — التعليق اللى مش ممضى ده كتبه [[مستخدم:{{{1}}}|{{{1}}}]] ([[نقاش المستخدم:{{{1}}}|مناقشه]] • [[خاص:مساهمات/{{{1}}}|تعديلات]]) | {{Na|Customized alt text|link=WP:ALT}} | — التعليق اللى مش ممضى ده كتبه Customized alt text (مناقشه • تعديلات) | |
{{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}} | مش صح | {{incorrect|Customized [[Plain text|text]]}} | Customized text |
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 |
كود
رمز شائع لمعظم القوالب الموجودة في هذه السلسلة إن لم يكن كلها:
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="color:#000000;background: #FED; vertical-align: middle; text-align: center; " class="depends table-depends"|Depends
لإنشاء قالب خلية جدول جديد، يمكنك استخدام:
{{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 Depends
أحد القوالب المتعددة لتصميم خلايا جدول فردية بمحتويات وألوان قياسية.
وسيط | وصف | نوع | حالة | |
---|---|---|---|---|
نص | 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}} – إعادة توجيه مخصصة لـ {{مجاني}}
مراجع
- ↑ 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