Template:Col-begin/doc

From The Sims Wiki, a collaborative database for The Sims series
This is an old revision of this page, as edited by sims>A morris at 18:49, 3 April 2011 (Created page with 'The {{tl|col-begin}}, {{tl|col-break}} and {{tl|col-end}} templates control columns of text on a page: :*<nowiki>{{col-begin}}</nowiki> - starts a table (followed by <nowiki>{{co...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The {{col-begin}}, {{col-break}} and {{col-end}} templates control columns of text on a page:

  • {{col-begin}} - starts a table (followed by {{col-break}} for 1st column)
  • {{col-break}} - triggers the start of each column
  • {{col-end}} - ends the multi-column table.

The widths of columns can be specified by using various additional codes. See below for examples.

Usage

{{col-begin|width=70%}} - start table with width.
{{col-break|width=66%}} - start column-1 as 66% wide.
This is text in col-1.
{{col-break|width=33%}} - start column-2 as 33% wide.
Text column-2.
{{col-end}}

The table will have 2 columns, with column 1 twice (2x) the width of column 2.

{{col-2}} or {{col-3}} can be used instead of {{col-break}} to create two-column and three-column tables respectively.