Template:Columns: Difference between revisions

(Created page with "<includeonly><div class="columns" style="{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{widths|30em}}}}}"> {{{1|}}}</div></includeonly><noinclude> This template creates columns. The first parameter is the content. 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>widths</code>: Specify the minimum...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><div class="columns" style="{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{widths|30em}}}}}">
<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>widths</code>: Specify the minimum width needed for each column. This is the default mode, with a default value of <code>30em</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 09: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 of 30em.