Template:Col-begin: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
sims>Nikel23 No edit summary |
No edit summary |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{| class="{{{class|}}}" style="background-color:{{{bgColor|transparent}}}; color:{{{fontColor|inherit}}}; width:{{{width|100%}}} |
{| class="{{{class|}}}" style="background-color:{{{bgColor|transparent}}}; color:{{{fontColor|inherit}}}; width:{{{width|100%}}};" |
||
|- |
|||
<noinclude> |
<noinclude> |
||
|} |
|||
|}{{Documentation}}[[Category:General wiki templates|{{PAGENAME}}]]</noinclude> |
|||
{{documentation}}</noinclude> |
Latest revision as of 22:20, 22 February 2019
Description[edit source]
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[edit source]
- {{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[edit source]
This template's code and documentation was copied from K6ka's Wiki.
Visit Template:Col-begin/doc to edit this text! (How does this work?) (Refresh this text - why?)