Difference between revisions of "Template:Columns-list"
(new columns template that autosorts into templates to keep consistent length etc, makes use of -moz and -webkit attributes, will see if it works out.) |
(summary fail, *"autosorts into columns") |
||
Line 1: | Line 1: | ||
<includeonly><div {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>{{{2|{{{1|}}} }}}</div></includeonly><noinclude> | <includeonly><div {{#if: {{{colwidth|}}}| style="-moz-column-width:{{{colwidth}}}; -webkit-column-width:{{{colwidth}}}; column-width:{{{colwidth}}};" | {{#if: {{{1|}}}| style="-moz-column-count:{{{1}}}; -webkit-column-count:{{{1}}}; column-count:{{{1}}};" }} }}>{{{2|{{{1|}}} }}}</div></includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | * Please see the documentation page [[wikipedia:Template:Columns-list/doc|Template:Columns-list/doc]] on [[wikipedia:Main Page|Wikipedia]] for more information on how to use this template. | + | * Please see the documentation page '''[[wikipedia:Template:Columns-list/doc|Template:Columns-list/doc]]''' on [[wikipedia:Main Page|Wikipedia]] for more information on how to use this template. |
+ | |||
+ | === Example === | ||
+ | <pre><nowiki> | ||
+ | {{Columns-list|2| | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | }}</nowiki></pre> | ||
+ | ... produces: | ||
+ | |||
+ | {{Columns-list|2| | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | * Lorem ipsum dolor sit amet. | ||
+ | }} | ||
+ | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |
Revision as of 07:24, 4 August 2010
Usage
- Please see the documentation page Template:Columns-list/doc on Wikipedia for more information on how to use this template.
Example
{{Columns-list|2| * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. * Lorem ipsum dolor sit amet. }}
... produces:
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.
- Lorem ipsum dolor sit amet.