m (Protected "Template:Columns" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only CyberAcme staff] (indefinite))) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><div class="columns" style="{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{ | <includeonly><div class="columns" style="{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{width|30em}}}}}"> | ||
{{{1|}}}</div></includeonly><noinclude> | {{{content|{{{1|}}}}}}</div></includeonly><noinclude> | ||
This template creates columns. The first parameter is the content. | This template creates columns. The <code>content</code> or first parameter is the content. | ||
One of the following two optional parameters can be used to change the template's behavior: | One of the following two optional parameters can be used to change the template's behavior: | ||
*<code>count</code>: Specify the number of columns. This is less responsive by nature but can be used if needed. | *<code>count</code>: Specify the number of columns. This is less responsive by nature but can be used if needed. | ||
*<code> | *<code>width</code>: Specify the minimum width needed for each column. This is the default mode, with a default value of <code>30em</code>. | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Latest revision as of 08:38, September 6, 2023
This template creates columns. The content
or first parameter is the content.
One of the following two optional parameters can be used to change the template's behavior:
count
: Specify the number of columns. This is less responsive by nature but can be used if needed.width
: Specify the minimum width needed for each column. This is the default mode, with a default value of30em
.