v50 Steam/Premium information for editors
- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.
Difference between revisions of "Template:Columns-list"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- --><div style="column-width: {{{colwidth|20em}}};{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}"><!-- -->{{{1|}}}</div><!-- --></includeonly><noinclude> '''Colu...") |
(added class) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | --><div style="column-width: {{{colwidth|20em}}};{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}"><!-- | + | --><div class="div-col" style="column-width: {{{colwidth|20em}}};{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}"><!-- |
-->{{{1|}}}</div><!-- | -->{{{1|}}}</div><!-- | ||
--></includeonly><noinclude> | --></includeonly><noinclude> |
Latest revision as of 11:55, 2 January 2023
Columns-list is wrapper template that turns a list into a list with columns. It's a rudimentary variant of the template from wikipidea see Columns-list Div_col.
Use[edit]
The width of each column may be specified using colwidth
and a value in ems (default:20em).
{{columns-list|colwidth=width| Text (usually a list) }}
Here, width specifies the width of the columns, and determines dynamically the number of columns based on screen width; more columns will be shown on wider displays.
Example[edit]
colwidth=20em
- a
- b
- c
- d
- e
- f
- g
- h
colwidth=30em
- a
- b
- c
- d
- e
- f
- g
- h