Šablon:Div col/doc

Izvor: Vojna Enciklopedija
< Шаблон:Div colOvo je najnovija verzija ove stranice; nema odobrenih izmena.
Pređi na navigaciju Pređi na pretragu


Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

CSS3 multiple-column layout browser support
Property Internet
Explorer
Firefox Safari Chrome Opera
column-width
column-count
≥ 10
(2012)
≥ 1.5
(2005)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
columns ≥ 10
(2012)
≥ 9
(2011)
≥ 3
(2007)
≥ 1
(2008)
≥ 11.1
(2011)
break-before
break-after
break-inside
≥ 10
(2012)
Ne Ne Ne ≥ 11.1
(2011)

{{Div col}}, together with {{div col end}}, is used to make a list into columns. It automatically breaks each column into an equal space, meaning, for instance, it isn't necessary to work out the halfway point between two columns. The template also offers options to set a smaller (90%) font-size (|small=yes), place vertical lines ("rules") between the columns (|rules=) and to add other custom styling (|style=).

{{Div col}} can create multiple columns in web browsers which support one of the following CSS properties:

Usage

|cols= or first unnamed parameter
(Now deprecated, as colwidth below is better suited to flexible formatting for a variety of display screen sizes (from mobile phones, tablets, etc to widescreen cinema-style displays))
Specifies the number of columns (default 2).
|colwidth= or second unnamed parameter
Specifies the minimum width of the columns and determines automatically the number of columns based on screen width (i.e. more columns will be shown on wider displays). Overrides cols. Specified in any CSS unit, for instance in em, about the width of a capital "M", e.g, colwidth=20em
|rules=
Adds vertical lines ("rules") between the columns if set to yes or some CSS styling (e.g. 1px dashed blue;).
|gap=
Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, gap=2em. The default spacing is 1em.
|style=
CSS styling to apply to the columns.

Examples

{{Div col}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col||10em}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|rules=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|small=yes}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

TemplateData

Ovo je TemplateData dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.

TemplateData za 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}}.

Parametri šablona

ParametarOpisVrstaStatus
colscols 1

Specifies the number of columns.

Podrazumevano
2
tekstneobavezno
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.

tekstneobavezno
rulesrules

Produces vertical rules between the columns if set to yes.

tekstneobavezno
gapgap

Specifies the space between the content of adjacent columns.

tekstneobavezno
stylestyle

Specifies any custom styling.

tekstneobavezno

Redirects

See also

Column-generating template families

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted

Family Type
Handles wiki
 table code?Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted
Start template Column divider End template
"Col" Table Da {{Col-begin}}
or {{Col-begin-small}}
{{Col-break}}
{{Col-2}} .. {{Col-5}}
{{Col-end}}
"Columns" Table Ne {{Columns}}
"Multicol" Table Da {{Multicol}} {{Multicol-break}} {{Multicol-end}}
"Col-float" CSS float Da {{Col-float}} {{Col-float-break}} {{Col-float-end}}
"Columns-start" CSS float Da {{Columns-start}} {{Column}} {{Columns-end}}
"Div col" CSS columns Da {{Div col}}
– {{Columns-list}} (wrapper)
{{No col break}} {{Div col end}}

Lua error: Cannot create process: proc_open(/dev/null): failed to open stream: Operation not permitted I.e., can the columns handle the wiki markup {| | || |- |} used to create tables? If not, templates that produce these elements (such as {{(!}}, {{!}}, {{!!}}, {{!-}}, {{!)}}) and/or HTML tags (<table>...</table>, <tr>...</tr>, etc.) will need to be used instead.