Jump to content

Template:Div col

From The Sonic the Hedgehog Wiki
{{{content}}}


[edit]

Documentation

This template (short for division columns) formats a list into columns that wrap at multiple screen resolutions. It automatically breaks the available screen space into equal parts, meaning, for instance, that it is not necessary to guess how many columns to use and then count the dividing point(s) to divide the list into these columns.

Usage[edit source]

{{Div col |colwidth = 20em |content = 
*A
*B
*C
*D
*E
*F
*G
*H
*I
}}

Renders as:

  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I

Parameters[edit source]

There are three parameters for this template:

  • 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). The width can be specified in any CSS relative or absolute length unit, for instance, the em (about the width of the capital "M" of the displayed typeface), e.g., colwidth=20em. If no value is supplied, the template uses a default of 30em.
  • style: Applies CSS styling to the columns.
  • content: Content to apply to the columns.

External links[edit source]