Difference between revisions of "Template:Div col/doc"

From blackwiki
Jump to navigation Jump to search
imported>Edokter
(sl:Predloga:Div col end)
Line 120: Line 120:
  
 
{{#switch:{{PAGENAME}}
 
{{#switch:{{PAGENAME}}
|Div col = [[ca:Plantilla:Div col]][[es:Plantilla:Div col]][[gl:Modelo:Div col]][[hr:Predložak:Div col]][[id:Templat:Div col]][[it:Template:Div col]][[ja:Template:Div col]][[pt:Predefinição:Div col]][[sv:Mall:Kolumner]][[uk:Шаблон:Div col]][[vi:Tiêu bản:Div col]][[zh:Template:Div col]]
+
|Div col = [[ca:Plantilla:Div col]][[es:Plantilla:Div col]][[gl:Modelo:Div col]][[hr:Predložak:Div col]][[id:Templat:Div col]][[it:Template:Div col]][[ja:Template:Div col]][[pt:Predefinição:Div col]][[sv:Mall:Kolumner]][[uk:Шаблон:Div col]][[vi:Tiêu bản:Div col]][[zh:Template:Div col]][[sl:Predloga:Div col]]
|Div col end = [[gl:Modelo:Fin div col]][[hr:Predložak:Div col end]][[it:Template:Div col end]][[ja:Template:Div col end]][[pt:Predefinição:Div col fim]][[sv:Mall:Kolumner-slut]][[uk:Шаблон:Div col end]][[vi:Tiêu bản:Div col end]][[zh:Template:Div col end]]
+
|Div col end = [[gl:Modelo:Fin div col]][[hr:Predložak:Div col end]][[it:Template:Div col end]][[ja:Template:Div col end]][[pt:Predefinição:Div col fim]][[sv:Mall:Kolumner-slut]][[uk:Шаблон:Div col end]][[vi:Tiêu bản:Div col end]][[zh:Template:Div col end]][[sl:Predloga:Div col end]]
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 14:12, 5 February 2012

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)
≥ 65
(2019)
≥ 10
(2016)
≥ 65
(2016)
≥ 15
(2013)

This template is used to make a list into columns, with the option of specifying a smaller font. It has the advantage over other column templates (i.e. {{col-begin}}) that it automatically breaks each column to an equal space, so you do not manually have to find the "half way" point on two columns, for instance.

This template can create multiple columns in web browsers which support one of the following CSS properties:

Usage

cols =
Specifies the number of columns. Defaults to 2 columns.
colwidth =
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.
small =
Specifies small font size (90%) if set to yes.
style =
Specify any custom styling.

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|cols=3}}
* a
* b
* c
* d
* e
* f
* g
* h
{{Div col end}}
Produces
  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h
{{Div col|colwidth=10em}}
* 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

See also