Шаблон:Columns-list: различия между версиями
Материал из Dwarf Fortress Wiki
Перейти к навигацииПерейти к поиску
GeloMor (обсуждение | вклад) Новая страница: «<includeonly><!-- --><div style="column-width: {{{colwidth|20em}}};{{#if:{{{gap|}}}|column-gap: {{{gap}}};}}"><!-- -->{{{1|}}}</div><!-- --></includeonly><noincl…» |
GeloMor (обсуждение | вклад) Нет описания правки |
||
| Строка 38: | Строка 38: | ||
* h | * h | ||
}} | }} | ||
[[category: | [[category:Шаблоны]] | ||
</noinclude> | </noinclude> | ||
Версия от 14:09, 29 декабря 2021
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