Difference between revisions of "Template: Columns"
From A Wiki of Ice and Fire
m (moved Tamplate:Columns to Template:Columns: typo) |
m |
||
Line 1: | Line 1: | ||
− | <includeonly><div style="-moz-column-count:{{{count|2}}}; -webkit-column-count:{{{count|2}}}; column-count:{{{count|2}}}; {{#if: {{{style|}}}|{{{style}}} }}">{{{data}}}</div></includeonly><noinclude> | + | <includeonly><div style="-moz-column-count:{{{count|2}}}; -webkit-column-count:{{{count|2}}}; column-count:{{{count|2}}}; {{#if: {{{style|}}}|{{{style}}} }}"> |
+ | {{{data}}}</div></includeonly><noinclude> | ||
Divides long list for you, no need to count and dived into table cells. | Divides long list for you, no need to count and dived into table cells. | ||
Line 22: | Line 23: | ||
with count=2 will look like: | with count=2 will look like: | ||
{{Columns|count=2|data= | {{Columns|count=2|data= | ||
+ | |||
* 1 | * 1 | ||
* 2 | * 2 |
Revision as of 10:08, 20 August 2011
Divides long list for you, no need to count and dived into table cells.
Usage
{{Columns|count=2|data = ... your text/list/etc ... }}
for example this list
- 1
- 2
- 3
- 4
- 5
- 6
with count=2 will look like:
- 1
- 2
- 3
- 4
- 5
- 6
with count=3 will look like:
- 1
- 2
- 3
- 4
- 5
- 6
Advanced/optional parameter, {{{style}}} for css styles.