Difference between revisions of "Template:Columns"

From The Coppermind
Jump to navigation Jump to search
m
m
Line 1: Line 1:
<div class=columns style="-moz-column-count:{{{count|3}}}; -webkit-column-count:{{{count|3}}}; column-count:{{{count|3}}}; height:{{{height|auto}}}; {{{style|}}};">{{{1}}}</div><noinclude>
+
<div class=columns style="-moz-column-count:{{{count|3}}}; -webkit-column-count:{{{count|3}}}; column-count:{{{count|3}}}; height:{{{height|auto}}}; {{{style|}}};">{{{1}}}</div><noinclude>[[Category: Templates]]
   
 
Outputs the first argument in several columns, 3 by default or the value you assign to count. Especially useful for long lists.
 
Outputs the first argument in several columns, 3 by default or the value you assign to count. Especially useful for long lists.
  +
==Usage Examples==
+
== Usage Examples ==
   
 
<pre>
 
<pre>
{{Columns|
+
{{columns|
 
content...
 
content...
 
}}
 
}}
   
{{Columns|count=x|
+
{{columns|count=x|
 
content...
 
content...
 
}}
 
}}
Line 16: Line 17:
 
For example this code:
 
For example this code:
 
<pre>
 
<pre>
{{Columns|
+
{{columns|
 
* bla
 
* bla
 
* bla
 
* bla
Line 27: Line 28:
   
 
Will generate the following result:
 
Will generate the following result:
{{Columns|
+
{{columns|
 
* bla
 
* bla
 
* bla
 
* bla
Line 35: Line 36:
 
* bla
 
* bla
 
}}
 
}}
 
 
[[Category:Templates]]</noinclude>
 

Revision as of 10:58, 3 July 2014

{{{1}}}

Outputs the first argument in several columns, 3 by default or the value you assign to count. Especially useful for long lists.

Usage Examples

{{columns|
content...
}}

{{columns|count=x|
content...
}}

For example this code:

{{columns|
* bla
* bla 
* bla
* bla 
* bla
* bla 
}}

Will generate the following result:

  • bla
  • bla
  • bla
  • bla
  • bla
  • bla