Template:Columns: Difference between revisions
From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
No edit summary |
mNo edit summary |
||
(3 intermediate revisions by 2 users 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="width:{{{width|auto}}};{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{widths|30em}}}}}"> | ||
{{{1|}}}</div></includeonly><noinclude> | {{{content|{{{1|}}}}}}</div></includeonly><noinclude> | ||
This template creates columns | This template creates columns. | ||
== Usage == | |||
The <code>content</code> or first parameter is the content. The following are optional parameters: | |||
*<code>width</code>: Specify the width of the '''overall''' columns container. Default: <tt>auto</tt> | |||
*<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>widths</code>: Specify the minimum width needed for '''each column'''. This is the default mode, with a default value of <tt>30em</tt>. | ||
[[Category: | [[Category:Structural templates]]</noinclude> |
Latest revision as of 22:05, March 25, 2025
This template creates columns.
Usage
The content
or first parameter is the content. The following are optional parameters:
width
: Specify the width of the overall columns container. Default: autocount
: Specify the number of columns. This is less responsive by nature but can be used if needed.widths
: Specify the minimum width needed for each column. This is the default mode, with a default value of 30em.