Difference between revisions of "Template:Columns"

From The Coppermind
Jump to navigation Jump to search
m (+list users)
 
(11 intermediate revisions by 2 users 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 <nowiki>{{{count|3}}}</nowiki> columns.
+
Outputs the first argument in several columns, 3 by default or the value you assign to count. Especially useful for long lists.
   
  +
== Usage Examples ==
[[Category:Templates|{{PAGENAME}}]]
 
  +
  +
<pre>
  +
{{columns|
  +
content...
  +
}}
  +
  +
{{columns|count=x|
  +
content...
  +
}}
  +
</pre>
  +
  +
For example this code:
  +
<pre>
  +
{{columns|
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
}}
  +
</pre>
  +
  +
Will generate the following result:
  +
{{columns|
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
* bla
  +
}}
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here}}
  +
{{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]