Template:Cols: Difference between revisions

From Space Station 14 Wiki
(Created page with "<includeonly><div style="column-count: {{{1}}};">{{{2}}}</div></includeonly><noinclude> {{documentation}}</noinclude>")
 
(template data)
 
Line 1: Line 1:
<includeonly><div style="column-count: {{{1}}};">{{{2}}}</div></includeonly><noinclude>
<includeonly><div style="column-count: {{{1}}};">{{{2}}}</div></includeonly><noinclude>
{{documentation}}</noinclude>
{{documentation}}
 
<templatedata>
{
"params": {
"1": {
"label": "Columns",
"description": "Number of columns.",
"type": "number",
"required": true
},
"2": {
"label": "Content",
"description": "Content to distribute.",
"type": "string",
"required": true
}
},
"description": "Automatically distributes items into specified number of columns.",
"format": "block"
}
</templatedata></noinclude>

Latest revision as of 13:34, 18 September 2024

Template documentation
view or edit this documentation about template documentation

Example

{{cols|2| <div>item 1</div> <div>item 2</div> <div>item 3</div> <div>item 4</div> <div>item 5</div> }}

item 1
item 2
item 3
item 4
item 5

Automatically distributes items into specified number of columns.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Columns1

Number of columns.

Numberrequired
Content2

Content to distribute.

Stringrequired