Шаблон:Columns-list

Материал из Dwarf Fortress Wiki
Версия от 14:08, 29 декабря 2021; GeloMor (обсуждение | вклад) (Новая страница: «<includeonly><!-- --><div style="column-width: {{{colwidth|20em}}};{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}"><!-- -->{{{1|}}}</div><!-- --></includeonly><noincl…»)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)
Перейти к навигацииПерейти к поиску


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

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

colwidth=20em

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h

colwidth=30em

  • a
  • b
  • c
  • d
  • e
  • f
  • g
  • h