Difference between revisions of "Template:Columns"

From Cantr II Wiki
Jump to: navigation, search
 
m
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="column-count:{{{1|3}}};-moz-column-count:{{{1|3}}};-webkit-column-count:{{{1|3}}}">
+
<includeonly><div style="column-count:{{{1|3}}};-moz-column-count:{{{1|3}}};-webkit-column-count:{{{1|3}}}">
{{{Content}}}
+
{{{2}}}
</div>
+
</div></includeonly><noinclude>{{Doc}}[[Category:Templates|!{{PAGENAME}}]][[Category:Plantillas|!{{PAGENAME}}]]</noinclude>

Latest revision as of 03:16, 23 May 2010

Template documentation[ view ] [ discuss ] [edit]

{{Columns}} provides an easy way to create multi-colums lists.

Usage

Put the following code in the article being created. Replacing "X" by the number of desired columns. And replacing "Item A", "Item B"... by the actual list.

{{Columns|X|
* Item A
* Item B
* Item C
* Item D
* Item E
* Item F
* Item G
* Item H
* Item I
* Etc.
}}

Examples

Code Result
{{Columns|2|
* Item A
* Item B
* Item C
* Item D
* Item E
* Item F
* Item G
* Item H
* Item I
}}
  • Item A
  • Item B
  • Item C
  • Item D
  • Item E
  • Item F
  • Item G
  • Item H
  • Item I
{{Columns|3|
* Item A
* Item B
* Item C
* Item D
* Item E
* Item F
* Item G
* Item H
* Item I
* Item J
* Item K
* Item L
* Item M
* Item N
* Item O
}}
  • Item A
  • Item B
  • Item C
  • Item D
  • Item E
  • Item F
  • Item G
  • Item H
  • Item I
  • Item J
  • Item K
  • Item L
  • Item M
  • Item N
  • Item O
{{Columns|6|
* Item A
* Item B
* Item C
* Item D
* Item E
* Item F
* Item G
* Item H
* Item I
* Item J
* Item K
* Item L
* Item M
* Item N
* Item O
* Item P
* Item Q
* Item R
}}
  • Item A
  • Item B
  • Item C
  • Item D
  • Item E
  • Item F
  • Item G
  • Item H
  • Item I
  • Item J
  • Item K
  • Item L
  • Item M
  • Item N
  • Item O
  • Item P
  • Item Q
  • Item R