Template:Div col/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
Created page with "{{Documentation subpage}} <!----------------------------------------------------------------------------- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -..."
 
 
(3 intermediate revisions by the same user not shown)
Line 15:
* The template system (family) also offers parameter options to set a smaller (90%) font-size parameter ({{para|small|yes}}), place vertical lines parameter ("rules") between the columns ({{para|rules}}) and to add other custom styling ({{para|style}}).
 
{{tl|Div col}} can create multiple columns in [[Wikipedia:web browser|web browser]]s which support the following [[Wikipedia:CSS|CSS]] properties:
* ''column-width'' (for [[Wikipedia:Cascading Style Sheets#CSS 3|CSS3]]-compliant browsers; see [http://www.w3.org/TR/css3-multicol/ CSS3 module: Multi-column layout])
By default, the template creates columns that are [[Wikipedia:Em (typography)|30em]] wide.
 
==This template's parameters==
===Descriptions===
There are six parameters for this template:
; {{para|colwidth}} : Specifies the minimum width of the columns so that the number of columns is automatically based on screen width (that is, more columns will be shown on wider displays). Can be specified in any [[Wikipedia:CSS#Length units|CSS unit of measure]], for instance, the [[Wikipedia:Em (typography)|em]] (about the width of the capital "M" of the displayed typeface), e.g., <code>colwidth=20em</code>. If no value is supplied, the template uses a default of 30em.
; {{para|rules}} : Adds vertical lines ("rules") between the columns if set to <code>yes</code> or some CSS styling (e.g. <code>1px dashed blue;</code>).
; {{para|gap}} : Specifies the space between the content of adjacent columns. Specified in any CSS unit, e.g, <code>gap=2em</code>. The default spacing (set by browser) is 1em.
; {{para|style}} : [[Wikipedia:Cascading Style Sheets|CSS styling]] to apply to the columns.
; {{para|small|yes}} : sets font size to 90%.
; {{para|content}} : content to apply to the columns.
Line 347:
{{#ifeq:{{ROOTPAGENAME}}|Div col|
* {{Tlx|Col div}}
* {{Tlx|Colbegin}} (but '''not''' {{TlxBraces|Col begin}} or {{TlxBraces|Col-begin}})
* {{Tlx|Cols}}
* {{Tlx|Div col start}}