Template:Column: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(added custom width option) |
||
Line 1: | Line 1: | ||
<includeonly>|valign=top {{#if: {{{1|}}}|width={{{1|}}}|}}|</includeonly> | <includeonly>|valign=top {{#if: {{{1|}}}|width={{{1|}}}|}}|</includeonly> | ||
<noinclude>Used with [[Template:StartColumns]] and [[Template:EndColumns]] to create multi-column listings. | <noinclude>Used with [[Template:StartColumns]] and [[Template:EndColumns]] to create multi-column listings. Add variable specify width, either in pixels or percentage of page. | ||
===Example=== | ===Example with default auto width to fit contents of each column=== | ||
<pre> | |||
{{StartColumns}} | |||
Alpha | |||
{{Column}} | |||
Beta | |||
{{Column}} | |||
Gamma | |||
{{EndColumns}} | |||
</pre> | |||
{{StartColumns}} | {{StartColumns}} | ||
Line 12: | Line 21: | ||
{{EndColumns}} | {{EndColumns}} | ||
===Columns all set manually at 120 pixels in width=== | |||
<pre> | |||
{{StartColumns|120}} | {{StartColumns|120}} | ||
Alpha | Alpha | ||
Line 18: | Line 29: | ||
{{Column|120}} | {{Column|120}} | ||
Gamma | Gamma | ||
{{EndColumns}} | |||
</pre> | |||
{{StartColumns|120}} | |||
Alpha | |||
{{Column|120}} | |||
Beta | |||
{{Column|120}} | |||
Gamma | |||
{{EndColumns}} | |||
===First column set at 120 pixels in width, second and third column set at 60 pixels=== | |||
<pre> | |||
{{StartColumns|120}} | |||
Alpha | |||
{{Column|60}} | |||
Beta | |||
{{Column|60}} | |||
Gamma | |||
{{EndColumns}} | |||
</pre> | |||
{{StartColumns|120}} | |||
Alpha | |||
{{Column|60}} | |||
Beta | |||
{{Column|60}} | |||
Gamma | |||
{{EndColumns}} | |||
===Columns all set at 33% of whole page in width=== | |||
<pre> | |||
{{StartColumns|33%}} | |||
Alpha | |||
{{Column|33%}} | |||
Beta | |||
{{Column|33%}} | |||
Gamma | |||
{{EndColumns}} | |||
</pre> | |||
{{StartColumns|33%}} | |||
Alpha | |||
{{Column|33%}} | |||
Beta | |||
{{Column|33%}} | |||
Gamma | |||
{{EndColumns}} | |||
===Two columns set at 50%=== | |||
<pre> | |||
{{StartColumns}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{EndColumns}} | |||
</pre> | |||
{{StartColumns}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{EndColumns}} | {{EndColumns}} | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 22:21, 12 June 2015
Used with Template:StartColumns and Template:EndColumns to create multi-column listings. Add variable specify width, either in pixels or percentage of page.
Example with default auto width to fit contents of each column
{{StartColumns}} Alpha {{Column}} Beta {{Column}} Gamma {{EndColumns}}
Alpha |
Beta |
Gamma |
Columns all set manually at 120 pixels in width
{{StartColumns|120}} Alpha {{Column|120}} Beta {{Column|120}} Gamma {{EndColumns}}
Alpha |
Beta |
Gamma |
First column set at 120 pixels in width, second and third column set at 60 pixels
{{StartColumns|120}} Alpha {{Column|60}} Beta {{Column|60}} Gamma {{EndColumns}}
Alpha |
Beta |
Gamma |
Columns all set at 33% of whole page in width
{{StartColumns|33%}} Alpha {{Column|33%}} Beta {{Column|33%}} Gamma {{EndColumns}}
Alpha |
Beta |
Gamma |
Two columns set at 50%
{{StartColumns}} Alpha {{Column|50%}} Beta {{EndColumns}}
Alpha |
Beta |