টেমপ্লেট:ছকের ঘর টেমপ্লেটসমূহ

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
Jump to navigation Jump to search
{{{1|{{{text}}}}}}
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

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.

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

টেমপ্লেট[সম্পাদনা]

ছক ঘর টেমপ্লেট
শ্রেণী[১] টেমপ্লেট প্রাকদর্শন প্রাকদর্শন, বিকল্প
table-rh {{rh}} | Row header Row header
{{rh2}}[২] | Row header Row header
table-yes {{yes}}, {{yes|Alternative [[Plain text|text]]}} হ্যাঁ Alternative text
{{Ya}} Green tickY
table-no {{no}}, {{no|Alternative [[Plain text|text]]}} না Alternative text
{{Na}} Red XN
{{coming soon}} শীঘ্রই আসছে
{{bad}}, {{bad|F}} খারাপ F
{{eliminated}} অপনীত
table-siteactive {{Site active}} সক্রিয়
table-siteinactive {{Site inactive}} সক্রিয় নয়
table-yes2 {{yes2}}[৩] Text Text
{{won}}, {{won|5}} বিজয়ী 5
{{won|place=1}}, {{won|place=Gold}} বিজয়ী বিজয়ী
{{won|place=2}}, {{won|place=Silver}} বিজয়ী বিজয়ী
{{won|place=3}}, {{won|place=Bronze}} বিজয়ী বিজয়ী
{{won|text=white|color=darkblue}} বিজয়ী
{{good}}, {{good|A}} ভালো হয়েছে A
table-no2 {{no2}}[৩] Text Text
{{nom}}, {{nom|5}} মনোনীত 5
{{sho}} বাছাইকৃত
{{TBA}}, {{TBA|To be announced}} ঘোষিত হবে To be announced
table-partial {{partial}} আংশিক
{{yes-No}} হ্যাঁ/না
{{okay}}, {{okay|C}} নিরপেক্ষ C
{{some}} কিছু
table-any {{any}} যে কোনো
table-na {{n/a}} প্রযোজ্য নয়
{{BLACK}} N/A
table-unknown {{dunno}} ?
{{Unknown}} অজানা
table-depends {{Depends}}, {{Depends|Alternative [[Plain text|text]]}} নির্ভর করে Alternative text
table-included {{Included}} অন্তর্ভুক্ত
table-dropped {{dropped}} বাদ
{{terminated}} পর্যবসিত
table-beta {{beta}} বেটা
{{table-experimental}}, {{table-experimental|Alternative [[Plain text|text]]}} পরীক্ষামূলক Alternative text
table-free {{free}}, {{free|Alternative [[Plain text|text]]}} মুক্ত Alternative text
table-nonfree {{nonfree}}, {{nonfree|Alternative [[Plain text|text]]}} অ-মুক্ত Alternative text
table-proprietary {{proprietary}}, {{proprietary|Alternative [[Plain text|text]]}} মালিকানা Alternate text
table-needs {{needs}}, {{needs|Alternative [[Plain text|text]]}} চাহিদা Alternative text
no class {{incorrect}}, {{incorrect|Alternative [[Plain text|text]]}} সঠিক নয় Alternative text
no class {{no result}}, {{no result|N.R.}} ফলাফল হয়নি N.R.
no class {{pending}} প্রক্রিয়াধীন
table-nightly {{nightly}}, {{nightly|Alternative [[Plain text|text]]}} রাত্রি নির্মাণ Alternative text
table-release-candidate {{release-candidate}}, {{release-candidate|Alternative [[Plain text|text]]}} মুক্তির প্রার্থী Alternative text
no class {{?}}[৪] ?
no class {{unofficial}} বেসরকারী
no class {{usually}} সাধারণত
no class {{rarely}} কদাচিৎ
no class {{sometimes}} কখনও কখনও
no class {{draw}}[৩] Text Text

কোড[সম্পাদনা]

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|}}}" class="automatic table-automatic"| {{{1|text}}}

Code specific to this template:

style="background: white; color: black; vertical-align: middle; text-align: {{{align|center}}}; {{{style|}}}" class="ছকের ঘর টেমপ্লেটসমূহ table-ছকের ঘর টেমপ্লেটসমূহ"| {{{1|{{{text}}}}}}

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

আরও দেখুন[সম্পাদনা]

  • {{chg}}: Calculates, displays and color-codes changes between two values
  • {{GPL-lic}}: Specialized redirect for {{Free}}
  • {{LGPL-lic}}: Specialized redirect for {{Free}}

নোট[সম্পাদনা]

  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