Template:Col-begin/doc: Difference between revisions

From The Sims Wiki, a collaborative database for The Sims series
Jump to navigation Jump to search
Content added Content deleted
k6ka>K6ka
(Created page with " ==Description== The {{t|col-begin}}, {{t|col-break}} and {{t|col-end}} templates control columns of text on a page: :*<nowiki>{{col-begin}}</nowiki> - starts a table (follow...")
k6ka>K6ka
No edit summary
Line 19: Line 19:


{{t|col-2}} can be used instead of {{t|col-break}} to create two-column tables.
{{t|col-2}} can be used instead of {{t|col-break}} to create two-column tables.

==Credits==
This template's code and documentation was copied from [[wikia:w:c:k6ka:Template:Col-begin|K6ka's Wiki]] on Wikia.


<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 00:42, 12 May 2017

Description

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}} can be used instead of {{col-break}} to create two-column tables.

Credits

This template's code and documentation was copied from K6ka's Wiki on Wikia.