"आकृति:Multicol" के अवतरणसभमे अन्तर

मैथिली विकिपिडियासँ, एक मुक्त विश्वकोश
imported>Franl
imported>CmdrObot
sp: occurrances→occurrences
पङ्क्त्ति ६७: पङ्क्त्ति ६७:
</center>
</center>


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


[[Category:Wikipedia special effects templates|{{PAGENAME}}]]
[[Category:Wikipedia special effects templates|{{PAGENAME}}]]

अन्तिम परिवर्तन ०५:३५, ३१ अगस्त २००६

Use this template to start a multi-column section of a page. For example:

 {{MultiCol}}
 This text appears in the first column.
 {{ColBreak}}
 This text appears in the second column.
 {{ColBreak}}
 This text appears in the third column.
 {{EndMultiCol}}

You can have any number of columns. Each column will be the same width, equally dividing the available horizontal space. Each column has a small (20 pixel) right margin, which prevents text in one column from touching text in the column to its right. See franl's user page for examples of how this template can be used. This template has one optional parameter: the overall width of the set of columns. This can be an absolute value (e.g., 12cm) or a percentage of the available page width (e.g., 50%). This parameter defaults to 100%. For example, to create a multi-column section of a page that is only 50% the width of the page, do this:

 {{MultiCol|50%}}
 This text appears in the first column.
 {{ColBreak}}
 This text appears in the second column.
 {{ColBreak}}
 This text appears in the third column.
 {{EndMultiCol}}

The multi-column region is always positioned on the left side of the containing block. To change this, place the above Wikitext in a DIV block that has the CSS attribute text-align set to either center or right, like this:

 <div style="text-align: center">
 {{MultiCol|50%}}
 ...
 {{EndMultiCol}}
 </div>

Related Templates

The templates {{Col-begin}} and friends do something similar to this template and its friends, but this template may be easier to use. Each of the following examples produce the same result (a 3-column table in which all columns have equal width):

आकृति:MultiCol

 {{MultiCol}}
 Column 1
 {{ColBreak}}
 Column 2
 {{ColBreak}}
 Column 3
 {{EndMultiCol}}

आकृति:ColBreak

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

आकृति:EndMultiCol

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 have to be changed to {{Col-4}}.