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

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(Add section describing how template works and how it won't work in some browsers such as Internet Explorer)
Line 42: Line 42:
 
{{pp-template}}
 
{{pp-template}}
 
{{#switch:{{PAGENAME}}
 
{{#switch:{{PAGENAME}}
|Div col = [[hr:Predložak:Div col]][[it: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]][[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 end = [[hr:Predložak:Div col end]][[it:Template:Div col end]][[pt:Predefinição:Div col fim]][[vi:Tiêu bản:Div col end]][[zh:Template:Div col end]]
+
|Div col end = [[hr:Predložak:Div col end]][[it:Template:Div col end]][[ja:Template:Div col end]][[pt:Predefinição:Div col fim]][[vi:Tiêu bản:Div col end]][[zh:Template:Div col end]]
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Revision as of 14:25, 21 March 2009

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

Usage

Parameters

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

Technical details

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).

See also