<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://capipedia.cap.gov/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://capipedia.cap.gov/index.php?action=history&amp;feed=atom&amp;title=Template%3AFlex_columns%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Flex_columns/doc&amp;action=history"/>
	<updated>2026-06-10T03:00:22Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Flex_columns/doc&amp;diff=8895&amp;oldid=prev</id>
		<title>NMcLarty27: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Flex_columns/doc&amp;diff=8895&amp;oldid=prev"/>
		<updated>2024-04-08T15:14:14Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:14, 8 April 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>NMcLarty27</name></author>
	</entry>
	<entry>
		<id>https://capipedia.cap.gov/index.php?title=Template:Flex_columns/doc&amp;diff=8894&amp;oldid=prev</id>
		<title>en&gt;WOSlinker: syntaxhighlight lang=&quot;wikitext&quot;</title>
		<link rel="alternate" type="text/html" href="https://capipedia.cap.gov/index.php?title=Template:Flex_columns/doc&amp;diff=8894&amp;oldid=prev"/>
		<updated>2023-06-05T08:58:56Z</updated>

		<summary type="html">&lt;p&gt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&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>en&gt;WOSlinker</name></author>
	</entry>
</feed>