Template:Column: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
 
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. Add variable specify width, either in pixels or percentage of page.
<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===
===Example with default auto width to fit contents of each column===
<pre>
<pre>
{{StartColumns}}
{{Start Columns}}
Alpha
Alpha
{{Column}}
{{Column}}
Line 10: Line 10:
{{Column}}
{{Column}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}
</pre>
</pre>


Line 23: Line 23:
===Columns all set manually at 120 pixels in width===
===Columns all set manually at 120 pixels in width===
<pre>
<pre>
{{StartColumns|120}}
{{Start Columns|120}}
Alpha
Alpha
{{Column|120}}
{{Column|120}}
Line 29: Line 29:
{{Column|120}}
{{Column|120}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}
</pre>
</pre>


{{StartColumns|120}}
{{Start Columns|120}}
Alpha
Alpha
{{Column|120}}
{{Column|120}}
Line 38: Line 38:
{{Column|120}}
{{Column|120}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}


===First column set at 120 pixels in width, second and third column set at 60 pixels===
===First column set at 120 pixels in width, second and third column set at 60 pixels===
<pre>
<pre>
{{StartColumns|120}}
{{Start Columns|120}}
Alpha
Alpha
{{Column|60}}
{{Column|60}}
Line 48: Line 48:
{{Column|60}}
{{Column|60}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}
</pre>
</pre>


{{StartColumns|120}}
{{Start Columns|120}}
Alpha
Alpha
{{Column|60}}
{{Column|60}}
Line 57: Line 57:
{{Column|60}}
{{Column|60}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}


===Columns all set at 33% of whole page in width===
===Columns all set at 33% of whole page in width===
<pre>
<pre>
{{StartColumns|33%}}
{{Start Columns|33%}}
Alpha
Alpha
{{Column|33%}}
{{Column|33%}}
Line 67: Line 67:
{{Column|33%}}
{{Column|33%}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}
</pre>
</pre>
{{StartColumns|33%}}
{{Start Columns|33%}}
Alpha
Alpha
{{Column|33%}}
{{Column|33%}}
Line 75: Line 75:
{{Column|33%}}
{{Column|33%}}
Gamma
Gamma
{{EndColumns}}
{{End Columns}}


===Two columns set at 50%===
===Two columns set at 50%===
<pre>
<pre>
{{StartColumns|50%}}
{{Start Columns|50%}}
Alpha
Alpha
{{Column|50%}}
{{Column|50%}}
Beta
Beta
{{EndColumns}}
{{End Columns}}
</pre>
</pre>
{{StartColumns|50%}}
{{Start Columns|50%}}
Alpha
Alpha
{{Column|50%}}
{{Column|50%}}
Beta
Beta
{{EndColumns}}
{{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%:
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>
<pre>
{{StartColumns}}
{{Start Columns}}
Alpha
Alpha
{{Column|50%}}
{{Column|50%}}
Beta
Beta
{{EndColumns}}
{{End Columns}}
</pre>
</pre>
{{StartColumns}}
{{Start Columns}}
Alpha
Alpha
{{Column|50%}}
{{Column|50%}}
Beta
Beta
{{EndColumns}}
{{End Columns}}


===Questions/Comments/Issues===
===Questions/Comments/Issues===
Let me know. [[User:Rich|'''♫ Rich''']] [[118Wiki:Administrators|<small>118Wiki Administrator</small>]] [[User talk:Rich|<small>Send Message</small>]]
[[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>
[[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)REPLYWiki Ops TeamVeterans Affairs