Template:Column: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
|valign=top| | <includeonly>|valign=top {{#if: {{{1|}}}|width={{{1|}}}|}}|</includeonly> | ||
<noinclude>[[Category:Templates]]</noinclude> | <noinclude>Used with [[Template:Start Columns]] and [[Template:End Columns]] 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=== | |||
<pre> | |||
{{Start Columns}} | |||
Alpha | |||
{{Column}} | |||
Beta | |||
{{Column}} | |||
Gamma | |||
{{End Columns}} | |||
</pre> | |||
{{StartColumns}} | |||
Alpha | |||
{{Column}} | |||
Beta | |||
{{Column}} | |||
Gamma | |||
{{EndColumns}} | |||
===Columns all set manually at 120 pixels in width=== | |||
<pre> | |||
{{Start Columns|120}} | |||
Alpha | |||
{{Column|120}} | |||
Beta | |||
{{Column|120}} | |||
Gamma | |||
{{End Columns}} | |||
</pre> | |||
{{Start Columns|120}} | |||
Alpha | |||
{{Column|120}} | |||
Beta | |||
{{Column|120}} | |||
Gamma | |||
{{End Columns}} | |||
===First column set at 120 pixels in width, second and third column set at 60 pixels=== | |||
<pre> | |||
{{Start Columns|120}} | |||
Alpha | |||
{{Column|60}} | |||
Beta | |||
{{Column|60}} | |||
Gamma | |||
{{End Columns}} | |||
</pre> | |||
{{Start Columns|120}} | |||
Alpha | |||
{{Column|60}} | |||
Beta | |||
{{Column|60}} | |||
Gamma | |||
{{End Columns}} | |||
===Columns all set at 33% of whole page in width=== | |||
<pre> | |||
{{Start Columns|33%}} | |||
Alpha | |||
{{Column|33%}} | |||
Beta | |||
{{Column|33%}} | |||
Gamma | |||
{{End Columns}} | |||
</pre> | |||
{{Start Columns|33%}} | |||
Alpha | |||
{{Column|33%}} | |||
Beta | |||
{{Column|33%}} | |||
Gamma | |||
{{End Columns}} | |||
===Two columns set at 50%=== | |||
<pre> | |||
{{Start Columns|50%}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{End Columns}} | |||
</pre> | |||
{{Start Columns|50%}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{End Columns}} | |||
Note that in this case, the first 50% specified for StartColumns is optional as the first column will automatically resize to fill up the remaining 50%: | |||
<pre> | |||
{{Start Columns}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{End Columns}} | |||
</pre> | |||
{{Start Columns}} | |||
Alpha | |||
{{Column|50%}} | |||
Beta | |||
{{End Columns}} | |||
===Questions/Comments/Issues=== | |||
[[User:Rich|'''♫ Rich''' <small>(Capt. Roshanara Rahman)</small>]] • [[User_talk:Rich|<small>'''REPLY'''</small>]] • [[118Wiki:Operations|<small>Wiki Ops Team</small>]] • [[Department of Veterans Affairs|<small>Veterans Affairs</small>]] | |||
[[Category:Templates]]</noinclude> |
Latest revision as of 20:28, 7 October 2016
Used with Template:Start Columns and Template:End Columns 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
{{Start Columns}} Alpha {{Column}} Beta {{Column}} Gamma {{End Columns}}
Alpha |
Beta |
Gamma |
Columns all set manually at 120 pixels in width
{{Start Columns|120}} Alpha {{Column|120}} Beta {{Column|120}} Gamma {{End Columns}}
Alpha |
Beta |
Gamma |
First column set at 120 pixels in width, second and third column set at 60 pixels
{{Start Columns|120}} Alpha {{Column|60}} Beta {{Column|60}} Gamma {{End Columns}}
Alpha |
Beta |
Gamma |
Columns all set at 33% of whole page in width
{{Start Columns|33%}} Alpha {{Column|33%}} Beta {{Column|33%}} Gamma {{End Columns}}
Alpha |
Beta |
Gamma |
Two columns set at 50%
{{Start Columns|50%}} Alpha {{Column|50%}} Beta {{End Columns}}
Alpha |
Beta |
Note that in this case, the first 50% specified for StartColumns is optional as the first column will automatically resize to fill up the remaining 50%:
{{Start Columns}} Alpha {{Column|50%}} Beta {{End Columns}}
Alpha |
Beta |
Questions/Comments/Issues
♫ Rich (Capt. Roshanara Rahman) • REPLY • Wiki Ops Team • Veterans Affairs