Help:Columns

From Theosophy Wiki
Revision as of 15:24, 5 June 2012 by SysopJ (talk | contribs) (Created page with "Long lists can be broken up into columns with very little extra work, to make content more legible. __TOC__ == How to create multiple columns == Three special terms are used in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Long lists can be broken up into columns with very little extra work, to make content more legible.

How to create multiple columns

Three special terms are used in the template that creates multiple-column layouts in a wiki article:

{{Col-begin}} begins the multi-column structure.
{{Col-break}} indicates when to begin another column. It is followed by data items and, possibly, line breaks.
{{Col-end}} ends the multi-column structure.

A width parameter added to the Col-Begin designates how much space the multi-column structure takes on the page. A width paramater on the Col-break determines what proportion of the multi-column structure that an individual column requires. Listed items may be text, individual words, wiki categories, links, images, bullet points. or numbered points. Insert line breaks using <br> to force content onto new lines. Breaks are automatic for bullet points and numbered points on lines that begin with an asterisk or number sign.

Example of three columns for bullet points

This is an example of using three columns to display bullet-point items in the left 50% of the space available:

  • First item
  • Second item
  • Third item
  • Fourth item
  • Fifth item
  • Sixth item
  • Seventh item

This is accomplished by using this wiki code:

{{Col-begin|width=50%}}

{{Col-break|width=33%}}
* First item
* Second item
* Third item

{{Col-break|width=33%}}
* Fourth item
* Fifth item
* Sixth item

{{Col-break|width=33%}}
* Seventh item

{{Col-end}}

Example of four columns of categories

Actors
Architects

Engineers
Farmers

Pāli scholars
Philosophers

Politicians
Scientists

Here is the code creating this 4-column layout:


Actors
Architects

Engineers
Farmers

Pāli scholars
Philosophers

Politicians
Scientists


Note that line breaks <br> are necessary to force new lines. The colon before each category prevents the article from being placed in that category. This article should not be placed in the category "Actors", for example, just because it mentions the category "Actors", which would happen without the colon.

Example of English text next to French translation