Template:Div col: Difference between revisions

From Sarkarverse
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly><div class="<!--
<includeonly><div class="div-col columns <!--
  -->{{#if: {{{colwidth|{{{2|}}}}}}
  -->{{#if: {{{colwidth|{{{2|}}}}}}
     | column-width
     | column-width
Line 13: Line 13:
     | font-size:90%; }} <!--
     | font-size:90%; }} <!--
  -->{{#if: {{{style|}}}
  -->{{#if: {{{style|}}}
     | {{{style}}} }}"></includeonly><noinclude>
     | {{{style}}} }}"><!--
-->{{#if: {{{content|}}}
    |{{{content}}}</div>}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}



Latest revision as of 18:07, 20 December 2013

Documentation icon Template documentation[create]

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Div col

Breaks a list into columns. It automatically breaks each column to an equal space, so you do not manually have to find the half way point on two columns. The list is closed with {{div col end}}.

Template parameters

ParameterDescriptionTypeStatus
colscols 1

Specifies the number of columns.

Default
2
Stringoptional
colwidthcolwidth 2

Specifies the width of columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays. This overrides the 'cols' setting.

Stringoptional
rulesrules

Produces vertical rules between the columns if set to yes.

Stringoptional
smallsmall

Specifies small font size (90%) if set to yes.

Stringoptional
stylestyle

Specify any custom styling.

Stringoptional