Template:Columns: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(Created page with "<div style="column-width:{{{widths|30em}}}"> {{{1|}}}</div><noinclude> This template creates responsive columns. The first parameter is the content. An optional <code>widths</code> parameter can be used to specify the minimum required width for each column. Category:Formatting templates</noinclude>")
 
mNo edit summary
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="column-width:{{{widths|30em}}}">
<includeonly><div class="columns" style="width:{{{width|auto}}};{{#if:{{{count|}}}|column-count:{{{count}}}|column-width:{{{widths|30em}}}}}">
{{{1|}}}</div><noinclude>
{{{content|{{{1|}}}}}}</div></includeonly><noinclude>
This template creates responsive columns.
This template creates columns.


The first parameter is the content. An optional <code>widths</code> parameter can be used to specify the minimum required width for each column.
== Usage ==
The <code>content</code> or first parameter is the content. The following are optional parameters:


[[Category:Formatting templates]]</noinclude>
*<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>widths</code>: Specify the minimum width needed for '''each column'''. This is the default mode, with a default value of <tt>30em</tt>.
 
[[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: auto
  • count: 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.