الگو:Release-candidate

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به: ناوبری، جستجو
نامزد انتشار
نماد توضیحات توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

The templates in this series are designed to be used in a راهنما:جدول‌ها to make a cell with text in that cell, with an appropriately colored background. They are commonly used in رده:مقایسه‌ها.

For example, {{yes}} makes a cell with a green background. The text in the cell is taken from the راهنما:الگو; {{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.

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:

بله نه ن/م
بله/نه
...
!{{Yes}} ||{{No}} ||rowspan=2 {{n/a}}
|-
|colspan=2 {{Yes-No}}
...

Templates in this series[ویرایش]

Table cell templates
Class[۱] Template Preview Preview, alternative
table-rh {{rh}} | Row header Row header
{{rh2}}[۲] | Row header Row header
table-yes {{yes}}, {{yes|Alternative [[نوشته ساده]]}} بله Alternative نوشته ساده
table-no {{no}}, {{no|Alternative [[نوشته ساده]]}} نه Alternative نوشته ساده
{{coming soon}} به‌زودی
{{bad}}, {{bad|F}} بد F
table-siteactive {{Site active}} فعال
table-siteinactive {{Site inactive}} غیرفعال
table-yes2 {{yes2}}[۳] Text Text
{{won}}, {{won|5}} پیروز 5
{{won|place=1}} or =Gold پیروز
{{won|place=2}} or =Silver پیروز
{{won|place=3}} or =Bronze پیروز
{{won|text=white|color=blue}} or =#1122CC پیروز
{{good}}, {{good|A}} خوب A
table-no2 {{no2}}[۳] Text Text
{{nom}}, {{nom|5}} نامزدشده 5
{{sho}} کوتاه‌شده
table-partial {{partial}} بخشی
{{yes-No}} بله/نه
{{okay}}, {{okay|C}} بی‌طرف C
{{some}} برخی
table-any {{any}} هیچ
table-na {{n/a}} ن/م
{{BLACK}} ن/م
table-unknown {{dunno}} ؟
{{Unknown}} ناشناخته
table-depends {{Depends}}, {{Depends|Alternative [[نوشته ساده]]}} وابسته Alternative نوشته ساده
table-included {{Included}} گنجانده‌شده
table-dropped {{dropped}} رهاشده
{{terminated}} خاتمه‌یافته
table-beta {{beta}} بتا
{{table-experimental}}, {{table-experimental|Alternative [[نوشته ساده]]}} آزمایشی Alternative نوشته ساده
table-free {{free}}, {{free|Alternative [[نوشته ساده]]}} آزاد Alternative نوشته ساده
table-nonfree {{nonfree}}, {{nonfree|Alternative [[نوشته ساده]]}} غیر آزاد Alternative نوشته ساده
table-proprietary {{proprietary}}, {{proprietary|Alternative [[نوشته ساده]]}} مالکیتی Alternate نوشته ساده
table-needs {{needs}}, {{needs|Alternative [[نوشته ساده]]}} نیاز است Alternative نوشته ساده
no class {{incorrect}}, {{incorrect|Alternative [[نوشته ساده]]}} نادرست Alternative نوشته ساده
no class {{no result}}, {{no result|N.R.}} بی‌نتیجه N.R.
no class {{pending}} در جریان
table-nightly {{nightly}}, {{nightly|Alternative [[نوشته ساده]]}} ساخت شبانه Alternative نوشته ساده
table-release-candidate {{release-candidate}}, {{release-candidate|Alternative [[نوشته ساده]]}} نامزد انتشار Alternative نوشته ساده
no class {{?}}[۴] ؟
no class {{unofficial}} غیررسمی
no class {{usually}} معمولاً
no class {{rarely}} به ندرت
no class {{sometimes}} گاهی
no class {{draw}}[۳] Text Text

Code[ویرایش]

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

style="background: white; color: black; vertical-align: middle; text-align: {{{هم‌ترازی|center}}}; {{{سبک|}}}" class="Release-candidate table-Release-candidate"| {{{1|{{{متن}}}}}}

Code specific to this template:

style="background: #BFD; color: black; vertical-align: middle; text-align: center; " class="table-release-candidate"|نامزد انتشار

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

See also[ویرایش]

  • {{GPL-lic}}
  • {{chg}}: calculate and display changes between two values

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. ۳٫۰ ۳٫۱ ۳٫۲ Does not take a parameter; the content should be placed after the template call.
  4. Does not take a parameter; not really a table cell template at all, but here for completeness