Template:Listing: Difference between revisions
mNo edit summary |
m (Changed protection settings for "Template:Listing" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
(No difference)
|
Revision as of 06:20, 15 June 2023
Supporting Templates |
This template is used to create a multiple column list. 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 figure out the dividing point(s), e.g., the halfway point to divide the list into two columns, or the one-third and two-thirds points to divide the list into three columns. The default value for the column width is 30em, to change this value use |colwidth=#
.
Notice
This template uses CSS3 multiple column layout and is not supported by all Web browsers.
Usage
Examples
An example using |colwidth=
An example of a list inside a list - Must use {{blist}} for inside list.
- Cauliflower
- Broccoli
- Green Bean
- Cabbage
- Acorn squash
{{Cast listing | colwidth = 20 | '''Fruits''' {{blist | Apple | Pear | Strawberry | Mango | Orange }} | '''Vegetables''' {{blist | Cauliflower | Broccoli | Green Bean | Cabbage | Acorn squash }} }}
TemplateData
Formats a list into columns that automatically space for the given screen size.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Column Width | colwidth | To increase the width of the columns manually, so as to avoid names from breaking into multiple lines.
| Number | optional |