টেমপ্লেট:Collapse

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
প্রসারিত বিষয়বস্তু
বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ₹৫৬/-
টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

The {{collapse|folding text}} template is used for placing collapse boxes around short discussions and bits of discussions. To fold long discussion threads, use {{Collapse top}}... lots of text ...{{Collapse bottom}}.

This template should only be used in accordance with the Wikipedia:refactoring guideline; it should never be used to end a discussion over the objections of other editors, except in cases of unambiguous disruptive editing.

Do not hide content in articles. This violates the WP:Manual of Style#Scrolling lists and collapsible content and WP:Accessibility guidelines.

ব্যবহার[সম্পাদনা]

নোট: {{Collapse}} needs to be substed in order for the time stamp functionality to work properly.

{{Collapse|1=Discussion text to be put into box.|2=Optional custom heading}}

It is definitely safest to use the named |1= and |2= parameters, because otherwise any "=" character will break the template.

বিজি পরামিতি[সম্পাদনা]

The bg parameter is optional. It changes the background color. Use web color values (e.g. #F0F2F5).

উদাহরণ

{{Collapse|1=Discussion text to be put into box.|bg=#F0F2F5}} creates:

প্রসারিত বিষয়বস্তু
Discussion text to be put into box.

প্যাডিং পরামিতি[সম্পাদনা]

The padding parameter adjusts the amount of cell padding (defaults to 8px):

{{Collapse|1=Discussion text to be put into box.|padding=20px}} creates the following (expand the box to see the border padding effect):

প্রসারিত বিষয়বস্তু
Discussion text to be put into box.

কাছাকাছি শিরোনাম টেক্সট[সম্পাদনা]

When used with a section of text, include the section header in the collapsed portion of text. For example, given:

== Heading ==
বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ₹৫৬/-

Replace with:

{{subst:Collapse|1=বিষণ্ণ ঔদাসীন্যে ঊষাবৌদি বাংলাভাষায় প্রচলিত ঈশপের নিখুঁত গল্পটির ডালপালা অর্ধেক ছড়াতেই ঋতু ভুঁইঞা আর ঐন্দ্রিলা ধড়ফড়িয়ে দারুণ হৈ-হৈ করে উঠল-- ওঃ, ব্যাস্ এবার থামো তো, বুঝেছি বড্ডো পুরানো ঢঙের কেমন এক গল্প যার নীতিবাক্য হল,“মূঢ় আড়ম্বর ও আত্মশ্লাঘার ফল জীবনে বিঘ্ন ও বৃহৎ ক্ষতি”-- তাই না, এ্যাঁ? ০১২৩৪৫৬৭৮৯ ৳৫৬/- ₹৫৬/-|2=Heading}}

প্রসারিত পরামিতি[সম্পাদনা]

Simply add |expand=yes to have the box show up in expanded form with a "hide" link, instead of collapsed form with a "show" link. Other options: |expand= yes, y, expand, expanded, uncollapse, uncollapsed. Note: |expand=no will fold the box (default).

পরিষ্কার পরামিতি[সম্পাদনা]

In some situations you may not want the default clear: both; css to apply, with puts the collapse box below any left- or right-floated content within the same HTML block. In this case you case, you can use |clear=none, |clear=right, or |clear=left, as needed.

যখন কন্টেন্ট টেবিল রয়েছে[সম্পাদনা]

This template frequently breaks when used around content that consists of or includes wikitables. Such content can be made collapsible by using the {{collapse top}} and {{collapse bottom}} templates instead of {{collapse}}.

If you want to collapse only the table and not other content, you can do this using wikitable parameters. See the Collapsing tables guide for help.

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

নতুন দৃশ্যমান সম্পাদনা দ্বারা ব্যবহৃত টেমপ্লেটের জন্য টেমপ্লেটডাটা নথি।

Collapse শীর্ষ

Creates a collapsible box that allows its content to be hidden or revealed on user's command. It is used to reduce clutter.

টেমপ্লেট প্যারামিটার[টেমপ্লেটের উপাত্ত সম্পাদনা করুন]

প্যারামিটারবিবরণধরনঅবস্থা
Contents1

Contents of the box

বিষয়বস্তুপ্রয়োজনীয়
Title2 title heading header

Text of title bar. Defaults to "Extended contents".

পূর্বনির্ধারিত
Extended content
স্ট্রিংপরামর্শকৃত
Expanded by default?expand

Setting to "yes, y, expand, uncollapse") will cause the box to show its contents by default. Any other value (and omitting this parameter) causes the box to be collapsed by default (its contents hidden).

পূর্বনির্ধারিত
yes
স্ট্রিংঐচ্ছিক
Border widthborder

Width of the outermost border. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. "px") Example: 2px.

পূর্বনির্ধারিত
1px
স্ট্রিংঐচ্ছিক
Title bar's colorbg background

Color of the title bar. Can be set any valid CSS color value but please take care that text would remain black.

পূর্বনির্ধারিত
#CFC
স্ট্রিংঐচ্ছিক
Paddingpadding

Width of the padding, the empty space between border and the contents. Accepts a number (e.g. 2) followed immediately with a CSS-compatible unit of measurement. (e.g. "px") Example: 2px.

পূর্বনির্ধারিত
8px
অজানাঐচ্ছিক
Outer backgroundbg1

Color of the space between the inner and outer border. Can be set to any valid CSS color.

পূর্বনির্ধারিত
transparent
স্ট্রিংঐচ্ছিক
Outer border colorb-color

Color of the outer border. Can be any valid CSS color.

পূর্বনির্ধারিত
silver
স্ট্রিংঐচ্ছিক
Collapse box width.width

The width of the entire collapsed box.

পূর্বনির্ধারিত
100%
স্ট্রিংঐচ্ছিক
Left-align titleleft

If set to any value, the title will be left-aligned

স্ট্রিংঐচ্ছিক
Font colorfc

Font color for the title. Also sets the color of the [show]/[hide] link. Can be any valid CSS color

স্ট্রিংঐচ্ছিক

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