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

From blackwiki
Jump to navigation Jump to search
blackwiki>Borgx
m (+id)
blackwiki>Thumperward
(tidy)
Line 3: Line 3:
 
This template is used to make a list into columns, with the option of specifying a smaller font.
 
This template is used to make a list into columns, with the option of specifying a smaller font.
  
==Usage==
+
This template can create multiple columns in [[web browser]]s which support one of the following [[CSS]] properties:
=== Parameters ===
+
* ''-moz-column-count'' (for [[Mozilla application framework|Mozilla]]/[[Gecko (layout engine)|Gecko]] based browsers such as [[Firefox]])
 +
* ''-webkit-column-count'' (for [[WebKit]] based browsers such as [[Safari (web browser)|Safari]])
 +
* ''column-count'' (for [[Cascading Style Sheets#CSS 3|CSS3]] compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
 +
 
 +
Therefore, the template does not work in browsers such as [[Internet Explorer]] and [[Opera (web browser)|Opera]] (see [[Template:Reflist #Browser support]]).
 +
 
 +
=== Usage ===
 +
 
 
;cols=:Specifies the number of columns.  Defaults to 2.
 
;cols=:Specifies the number of columns.  Defaults to 2.
 
;small=yes:Specifies small font size (80%).  Defaults to "no".
 
;small=yes:Specifies small font size (80%).  Defaults to "no".
Line 24: Line 31:
 
{{Div col end}}
 
{{Div col end}}
  
==Technical details==
+
=== See also ===
This template can create multiple columns in [[web browser]]s which support one of the following [[CSS]] properties:
 
* ''-moz-column-count'' (for [[Mozilla application framework|Mozilla]]/[[Gecko (layout engine)|Gecko]] based browsers such as [[Firefox]])
 
* ''-webkit-column-count'' (for [[WebKit]] based browsers such as [[Safari (web browser)|Safari]])
 
* ''column-count'' (for [[Cascading Style Sheets#CSS 3|CSS3]] compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
 
 
 
Therefore, the template does not work in browsers such as [[Internet Explorer]] and [[Opera (web browser)|Opera]] (see [[Template:Reflist #Browser support]]).
 
 
 
==See also==
 
 
* {{tl|multicol}}
 
* {{tl|multicol}}
 
* {{tl|col-begin}}
 
* {{tl|col-begin}}
 
* {{tl|columns-list}}
 
* {{tl|columns-list}}
  
<includeonly><!--
+
<includeonly>
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
+
{{pp-template}}
 +
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
[[Category:Table and column templates|{{PAGENAME}}]]
 
[[Category:Table and column templates|{{PAGENAME}}]]
{{pp-template}}
+
 
 
{{#switch:{{PAGENAME}}
 
{{#switch:{{PAGENAME}}
 
|Div col = [[hr:Predložak:Div col]][[id:Templat:Div col]][[it:Template:Div col]][[ja:Template:Div col]][[pt:Predefinição:Div col]][[vi:Tiêu bản:Div col]][[zh:Template:Div col]]
 
|Div col = [[hr:Predložak:Div col]][[id:Templat:Div col]][[it:Template:Div col]][[ja:Template:Div col]][[pt:Predefinição:Div col]][[vi:Tiêu bản:Div col]][[zh:Template:Div col]]

Revision as of 23:31, 2 September 2009

This template is used to make a list into columns, with the option of specifying a smaller font.

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

Therefore, the template does not work in browsers such as Internet Explorer and Opera (see Template:Reflist #Browser support).

Usage

cols=
Specifies the number of columns. Defaults to 2.
small=yes
Specifies small font size (80%). Defaults to "no".

Example

{{Div col}}
* a
* b
* c
* d
{{Div col end}}
Produces
  • a
  • b
  • c
  • d

See also