Difference between revisions of "Template:Columns"

From The Coppermind
Jump to navigation Jump to search
(added documentation)
m (+list users)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="-moz-column-count:{{{count|3}}}; -webkit-column-count:{{{count|3}}}; column-count:{{{count|3}}}; height:{{{height|auto}}}; {{{style|}}};">{{{1}}}</div><noinclude>
+
<div class=pillars style="column-count: {{{count|3}}}; {{{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 36: Line 37:
 
}}
 
}}
   
  +
== Articles using Template ==
 
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
[[Category:Templates]]</noinclude>
 
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0}}

Latest revision as of 08:23, 19 April 2020

{{{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[edit]

{{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

Articles using Template[edit]