Template:Column: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
No edit summary
Line 104: Line 104:
Beta
Beta
{{EndColumns}}
{{EndColumns}}
===Questions/Comments/Issues===
Let me know. [[User:Rich|'''♫ Rich''']] ▪ [[118Wiki:Administrators|<small>118Wiki Administrator</small>]] ▪ [[User talk:Rich|<small>Send Message</small>]]
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 22:38, 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|50%}}
Alpha
{{Column|50%}}
Beta
{{EndColumns}}

Alpha

Beta


Note that the first 50% specified for StartColumns is optional as the first column will automatically resize to fill up the remaining 50%:

{{StartColumns}}
Alpha
{{Column|50%}}
Beta
{{EndColumns}}

Alpha

Beta


Questions/Comments/Issues

Let me know. ♫ Rich118Wiki AdministratorSend Message