"आकृति:Multicol" के अवतरणसभमे अन्तर
Content deleted Content added
imported>Down10 अ moved Template:MultiCol to Template:Multicol: conforms to WP:MOSCL |
imported>Down10 अ updated wikilinks |
||
पङ्क्त्ति १:
<includeonly><div><!-- Do not remove this DIV: it prevents the Wiki code from inserting an extra linebreak above this table. -->
{| width="{{{1|100%}}}" border="0" cellspacing="0" cellpadding="0" style="background-color:
|- valign="top"
|<div style="margin-right:
== Usage ==
{{tl|Multicol}} is used to start a multi-column section of a page. Between each block of column text insert <tt>{{tl|Multicol-break}}</tt> and close the last column with <tt>{{tl|Multicol-end}}</tt>. For example:
<pre>
{{
This text appears in the first column.
{{
This text appears in the second column.
{{
This text appears in the third column.
{{
</pre>
You can have any number of columns.
This template has one optional parameter: the overall width of the set of columns. This can be an absolute value (e.g., <tt>12cm</tt>) or a percentage of the available page width (e.g., <tt>50%</tt>). This parameter defaults to <tt>100%</tt>. For example, to create a multi-column section of a page that is only 50% the width of the page, do this:▼
== Parameters ==
▲This template has one optional parameter: the overall width of the set of columns.
<pre>
{{
This text appears in the first column.
{{
This text appears in the second column.
{{
This text appears in the third column.
{{
</pre>
The multi-column region is always positioned on the left side of the containing block.
<pre>
<div style="text-align:
{{
...
{{
}}</div>
</pre>
== Related
The templates {{tl|Col-begin}} and friends do something similar to this template and its friends, but this template may be easier to use.
▲The templates {{tl|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):
<center>
{{
<pre>
{{
Column 1
{{
Column 2
{{
Column 3
{{
</pre>
{{
<pre>
{{Col-begin}}
Line ६४ ⟶ ६६:
{{Col-end}}
</pre>
{{
</center>
It's simpler to add more columns to the {{tl|
{{Template:Col-begin/doc}}
|