<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kingwarzcharts.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlex_columns%2Fdoc</id>
	<title>Template:Flex columns/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kingwarzcharts.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlex_columns%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://kingwarzcharts.com/index.php?title=Template:Flex_columns/doc&amp;action=history"/>
	<updated>2026-07-21T13:08:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://kingwarzcharts.com/index.php?title=Template:Flex_columns/doc&amp;diff=2691&amp;oldid=prev</id>
		<title>Kingwarz: 1 revision imported from :wikipedia:Template:Flex_columns/doc</title>
		<link rel="alternate" type="text/html" href="https://kingwarzcharts.com/index.php?title=Template:Flex_columns/doc&amp;diff=2691&amp;oldid=prev"/>
		<updated>2025-03-06T11:33:20Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Template:Flex_columns/doc&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Template:Flex columns/doc&quot;&gt;wikipedia:Template:Flex_columns/doc&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{high-use}}&lt;br /&gt;
{{Uses Lua|Module:Flex columns}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- Please place template categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
This template creates a two-column layout, where contents within the columns will have the same height, with any extra whitespace distributed throughout the shorter columns contents. It is mainly intended for use in portals.&lt;br /&gt;
&lt;br /&gt;
This sort of layout requires browsers to support [[CSS Flexible Box Layout|CSS flexbox]]. For those that don&amp;#039;t there is a fallback that will show a two column view, but without the heights being the same (a layout many portals used as at July 2018).&lt;br /&gt;
&lt;br /&gt;
For narrow screens, e.g. mobile devices, the display reverts to a single column.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;{{Flex columns&lt;br /&gt;
|1 = (...first column contents...)&lt;br /&gt;
|2 = (...second column contents...)&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Only contents which are in {{tag|div}} tags will have extra whitespace distributed to them – except for those with class &amp;lt;code&amp;gt;flex-columns-noflex&amp;lt;/code&amp;gt; (or otherwise override the &amp;lt;code&amp;gt;flex:&amp;lt;/code&amp;gt; property)&lt;br /&gt;
&lt;br /&gt;
To change the column balance, {{para|flex1}} and/or {{para|flex2}} can be set. The default is &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;. For example:&lt;br /&gt;
*&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|flex1=3 |flex2=2&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will result in the first column taking up to 60% (3/5) of the available width, and the second column taking up at least 40% (2/5) of the width.&lt;br /&gt;
Note that the actual column balance will vary depending on screen size, since the minimum width of each column is set at 360px.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
{{Flex columns|{{lorem ipsum|3}}|{{lorem ipsum|2}}}}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Flex columns|{{lorem ipsum|3}}|{{lorem ipsum|2}}}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
{{Portal templates navbox}}&lt;br /&gt;
{{Column-generating template families}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Template categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Multi-column templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kingwarz</name></author>
	</entry>
</feed>