Difference between revisions of "Template:Column-count"

From Holocron - Star Wars Combine
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<includeonly>-moz-column-count: {{{1|2}}}; -webkit-column-count: {{{1|2}}}; column-count: {{{1|2}}};</includeonly><noinclude>
 
<includeonly>-moz-column-count: {{{1|2}}}; -webkit-column-count: {{{1|2}}}; column-count: {{{1|2}}};</includeonly><noinclude>
 
This Holocron template is a sub-element of [[Template:Columns-list]] and is a shortcut for automatically producing columns in articles. It generates the CSS for various browsers. Supported browsers are the current versions of Firefox, Safari, Internet Explorer, and Chrome.
 
This Holocron template is a sub-element of [[Template:Columns-list]] and is a shortcut for automatically producing columns in articles. It generates the CSS for various browsers. Supported browsers are the current versions of Firefox, Safari, Internet Explorer, and Chrome.
 +
 +
This template must be used in conjunction with either {{tl|Column-width}} or {{tl|Column-rule}}.
  
 
=== Usage ===
 
=== Usage ===
Line 6: Line 8:
 
Insert this template within a style tag of any block-style element:
 
Insert this template within a style tag of any block-style element:
  
<tt><nowiki>{{column-count | [number of columns]}}</nowiki></tt>
+
<tt><nowiki>{{column-count | [number of columns]}}</nowiki></tt>
  
 
The default number of columns is 2.
 
The default number of columns is 2.
 +
 +
=== Example ===
 +
 +
* <tt>&lt;div style="'''<nowiki>{{column-count|3}}</nowiki>'''">Lorem ipsum...&lt;/div></tt> will produce:
 +
 +
<div style="{{column-count|3}}">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</div>
 +
 +
=== See also ===
 +
* {{tl|column-rule}}
 +
* {{tl|column-width}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 14:59, 9 October 2013

This Holocron template is a sub-element of Template:Columns-list and is a shortcut for automatically producing columns in articles. It generates the CSS for various browsers. Supported browsers are the current versions of Firefox, Safari, Internet Explorer, and Chrome.

This template must be used in conjunction with either {{Column-width}} or {{Column-rule}}.

Usage

Insert this template within a style tag of any block-style element:

{{column-count | [number of columns]}}

The default number of columns is 2.

Example

  • <div style="{{column-count|3}}">Lorem ipsum...</div> will produce:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

See also