Jump to content

User:David Kernow/Template:Begin columns

From Wikipedia, the free encyclopedia

Header for a version of the {{col-begin}} – {{col-break}} – {{col-end}} method to create columns on a page that:

  • aren't formatted to fill the width of the page;
  • offers, through {{next column}}, a means to set the spacing between them.

Use

[edit]

{{begin columns}}
first column's contents
{{next column(|gap)}}
second column's contents
{{next column(|gap)}}
...Nth column's contents
|}

Examples

[edit]
Code
{{begin columns}}
* item 1
* item 2
* item 3
{{next column}} <!--No argument so default gap between columns created-->
* item 4
* item 5
* item 6
{{next column}}
* item 7
* item 8
|}
Result
  • item 1
  • item 2
  • item 3
  • item 4
  • item 5
  • item 6
  • item 7
  • item 8


Code
{{begin columns}}
1 An item      <br>
2 Another item <br>
3 And another  <br>
{{User:David Kernow/Template:Next column|50px}} <!--Gap between columns = 50px-->
4 The fourth item  <br>
5 And another one  <br>
6 Yet another item <br>
{{User:David Kernow/Template:Next column|50px}} <!--Ditto-->
7 Still more items <br>
8 Last item        <br>
|}
Result

1 An item
2 Another item
3 And another

4 The fourth item
5 And another one
6 Yet another item

7 Still more items
8 Last item