Abrir menu principal

Mudanças

 

1 127 bytes adicionados ,  23h25min de 19 de julho de 2012
m
uma edição
<includeonly>{{#if: {{{count|}}}{{{style|}}}
| <div style="-moz-column-count:{{{count|2}}}; -webkit-column-count:{{{count|2}}}; column-count:{{{count|2}}}; {{#if: {{{style|}}}|{{{style}}} }}">
{{{data}}}</div> <!-- the new line is to wiki markup, other wise it may ignore the first line * for example-->
| <div style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};">
{{{2}}}</div>}}
</includeonly><noinclude>

Divides list or text into columns automatically(no need to count and dived into table cells and then re-count and re-dived if new info is added to the list).


Usage, <nowiki>{{Columns|# of columns| list or text}}</nowiki>
For example if you need to break the list bellow into 3 columns:
* 1
* 2
* 3
* 4
* 5
* 6

Simply type:
<pre>{{Columns|2|
* 1
* 2
* 3
* 4
* 5
* 6
}}</pre>

Result:
{{Columns|2|
* 1
* 2
* 3
* 4
* 5
* 6
}}


For additional options/parameters use this: (If needed more functionalty will be added
<pre>{{Columns|count=2
|style=css style (color/width/text fonts,size etc..
|data =
...
your text/list/etc
...
}}</pre>

[[Category:Templates]]</noinclude>