টেমপ্লেট:Multicol

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
নথি আইকন টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]
{{Multicol|[overall width]|[gutter width]}} {{Start multicol|[overall width]|[gutter width]}}
…… ……
{{Multicol break}} {{Break multicol}}
…… ……
in in
…… ……
(etc) (etc)
{{Multicol end}} {{End multicol}}

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

{{Multicol}} or {{Start multicol}} is used to start a multi-columned section of a page. Between each column's contents, insert {{Multicol break}} or {{Break multicol}} and close the last column with {{Multicol end}} or {{End multicol}}. For example:

<div style="background:lavender;">
{{Multicol}}              [or {{Start multicol}}]
First column's contents.
{{Multicol break}}        [or {{Break multicol}}]
Second column's contents.
{{Multicol break}}
Third column's contents.
{{Multicol end}}          [or {{End multicol}}]
</div>

…produces:

First column's contents. টেমপ্লেট:Multicol break Second column's contents. টেমপ্লেট:Multicol break Third column's contents. টেমপ্লেট:Multicol end

Each column will be the same width (equally dividing the available horizontal space) and will include a small 20-pixel righthand margin (a "gutter") that prevents the contents in one column from touching those in the column to its right. (For further examples of how this template can be used, see User:franl's userpage.)

While it is technically possible to have many columns, accessibility implies that the use of any more than four or five should usually be avoided. If the number of items listed is fewer than six (e.g. fewer than two columns of three items), a column-based format is probably also best avoided.

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

This template has two optional parameters: the overall width of the set of columns and the width of the gutter. The overall width of the set of columns can be an absolute value (e.g. 40em) or a percentage of the available page width (e.g. 50%). It defaults to 100%. The second parameter is the gutter used between columns (which, as mentioned above, defaults to 20px).

{{Multicol break}} / {{Break multicol}} also takes an optional parameter for the gutter to its right, defaulting to 20px.

উদাহরণ[সম্পাদনা]

To create a three-column section, with ten-pixel righthand gutters, that extends across 50% of the available width:

{{Start multicol |50% |8px}}
First column's contents.
{{Break multicol |8px}}
Second column's contents.
{{Break multicol |8px}}
Third column's contents.
{{End multicol}}

Result: টেমপ্লেট:Start multicol First column's contents. টেমপ্লেট:Break multicol Second column's contents. টেমপ্লেট:Break multicol Third column's contents. টেমপ্লেট:End multicol

A {{Multicol}}umned region is left-aligned with regard to the area of the page (the "block") it occupies. This may be switched to a centered or righthand alignment thus: টেমপ্লেট:Start multicol

Centered
 <div style="text-align:center;">
 {{startcenter}}
 {{Start multicol (...) }}
 ......
 {{End multicol}}
 {{endcenter}}
 </div>

টেমপ্লেট:Break multicol

Righthand side
 <div style="text-align:right;">
 {{Start multicol (...) }}
 ......
 {{End multicol}}
 </div>

টেমপ্লেট:End multicol

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

Layouts rendered by {{Multicol}} and accompanying templates may also be produced by {{Col-begin}} and its accompanying templates, but, depending on context and requirements, it may be easier to use one set rather than the other. Each of the following examples produce the same three-column table in which all columns have equal width:

{{Multicol}}
Column 1
{{Multicol-break}}
Column 2
{{Multicol-break}}
Column 3
{{Multicol-end}}
{{Col-begin}}
{{Col-3}}
Column 1
{{Col-3}}
Column 2
{{Col-3}}
Column 3
{{Col-end}}

It's simpler to add more columns to the {{Multicol}} example than to the {{Col-begin}} example, because in the latter case, all occurrences of {{Col-3}} would need to be changed to {{Col-4}}.

These templates groups are not interchangeable. If you start with {{Multicol}}, but end with the plain {{col-end}} templates, then you'll have an unclosed <div> tag that can harm the formatting of the rest of the page. The problems created by mixing these templates is not easily visible for all users, so please don't assume that it's working properly just because it looks right for you. If you start with {{Multicol}}, then you must use {{Multicol-break}} and {{Multicol-end}}, not {{col-break}} and {{col-end}} (and vice versa).

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

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

multicol

Starts a multi-column section. Subsequent columns are started by {{multicol-break}} and the section is ended with {{multicol-end}}

টেমপ্লেট প্যারামিটার
প্যারামিটার বিবরণ ধরন অবস্থা
Table width 1

Width of table, a CSS width e.g. '50%'.

পূর্বনির্ধারিত
100%
Example
empty
স্বয়ংক্রিয় মান
খালি
string ঐচ্ছিক
Column width 2

Width of the first column.

পূর্বনির্ধারিত
20px
Example
empty
স্বয়ংক্রিয় মান
খালি
string ঐচ্ছিক



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

টেমপ্লেট:Column templates/others

উপরোক্ত নথিটি টেমপ্লেট:Multicol/নথি থেকে প্রতিলিপ্ত। (সম্পাদনা | ইতিহাস)
ব্যবহারকারীগণ খেলাঘর (তৈরি করুন | আয়না) এবং পরীক্ষা পাতায় (তৈরি করুন) এই টেমপ্লেট সংক্রান্ত পরীক্ষা-নিরীক্ষা করতে পারেন।
দয়া করে /নথি উপপাতায় বিষয়শ্রেণী যোগ করুন। এই টেমপ্লেটের উপপাতাসমূহ