<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInline_block%2Fdoc</id>
	<title>Template:Inline block/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://safernicotine.wiki/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Template%3AInline_block%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Inline_block/doc&amp;action=history"/>
	<updated>2026-05-10T05:20:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://safernicotine.wiki/mediawiki/index.php?title=Template:Inline_block/doc&amp;diff=38367&amp;oldid=prev</id>
		<title>imported&gt;Alexiscoutinho: /* Usage */ Removed now unused characters in &#039;display: inline-block;&#039;</title>
		<link rel="alternate" type="text/html" href="https://safernicotine.wiki/mediawiki/index.php?title=Template:Inline_block/doc&amp;diff=38367&amp;oldid=prev"/>
		<updated>2020-03-16T18:53:06Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage: &lt;/span&gt; Removed now unused characters in &amp;#039;display: inline-block;&amp;#039;&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;
&amp;lt;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --&amp;gt;&lt;br /&gt;
== Usage ==&lt;br /&gt;
The template {{tlf|Inline block}} creates an element—by default a {{tag|span|o}}—that has the [[CSS]] property &amp;lt;code&amp;gt;display:inline-block&amp;lt;/code&amp;gt;. There is support for a range of common style properties as template parameters, and an all-purpose &amp;lt;code&amp;gt;style&amp;lt;/code&amp;gt; parameter.&lt;br /&gt;
&lt;br /&gt;
One intended use is to replace {{tl|nowrap}} when coding templates with complex layout, which need to display differently on mobile and desktop. Like {{tlf|nowrap}}, it holds content together and avoids wrapping it where possible. However, if necessary, such as on small screens, the content will wrap.&lt;br /&gt;
&lt;br /&gt;
===Example of wrapping control===&lt;br /&gt;
In each case the outline represents a width constraint, which might be affected by the user&amp;#039;s screen size, other parts of the template, or both.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 900px; border: 1px solid gray; margin: 3px; padding: 3px;&amp;quot;&amp;gt;&amp;lt;!-- State of matter --&amp;gt;&lt;br /&gt;
{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Gas}}|background={{element color|table2}}|1= 1&amp;amp;nbsp;(red)=[[Gas]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Solid}}|background={{element color|table2}}|1=3&amp;amp;nbsp;(black)=[[Solid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Liquid}}|background={{element color|table2}}|1=80&amp;amp;nbsp;(green)=[[Liquid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#ifeq:no|yes|&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Unknown phase}}|background={{element color|table2}}|1=109&amp;amp;nbsp;(gray)=Unknown}}&amp;amp;ensp;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{Inline block&lt;br /&gt;
|{{#ifeq:%omitted%|%omitted%|&amp;#039;&amp;#039;&amp;#039;Color of the atomic number&amp;#039;&amp;#039;&amp;#039; shows [[state of matter]] (at [[Standard conditions for temperature and pressure|0&amp;amp;nbsp;°C and 1&amp;amp;nbsp;atm]])|}} }}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 500px; border: 1px solid gray; margin: 3px; padding: 3px;&amp;quot;&amp;gt;&amp;lt;!-- State of matter --&amp;gt;&lt;br /&gt;
{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Gas}}|background={{element color|table2}}|1= 1&amp;amp;nbsp;(red)=[[Gas]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Solid}}|background={{element color|table2}}|1=3&amp;amp;nbsp;(black)=[[Solid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Liquid}}|background={{element color|table2}}|1=80&amp;amp;nbsp;(green)=[[Liquid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#ifeq:no|yes|&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Unknown phase}}|background={{element color|table2}}|1=109&amp;amp;nbsp;(gray)=Unknown}}&amp;amp;ensp;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{Inline block&lt;br /&gt;
|{{#ifeq:%omitted%|%omitted%|&amp;#039;&amp;#039;&amp;#039;Color of the atomic number&amp;#039;&amp;#039;&amp;#039; shows [[state of matter]] (at [[Standard conditions for temperature and pressure|0&amp;amp;nbsp;°C and 1&amp;amp;nbsp;atm]])|}} }}&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;width: 150px; border: 1px solid gray; margin: 3px; padding: 3px;&amp;quot;&amp;gt;&amp;lt;!-- State of matter --&amp;gt;&lt;br /&gt;
{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Gas}}|background={{element color|table2}}|1= 1&amp;amp;nbsp;(red)=[[Gas]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Solid}}|background={{element color|table2}}|1=3&amp;amp;nbsp;(black)=[[Solid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Liquid}}|background={{element color|table2}}|1=80&amp;amp;nbsp;(green)=[[Liquid]]}}&amp;amp;ensp;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{#ifeq:no|yes|&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{inline block|style=margin:0.2em; text-align:center; min-width:9em;|color={{element color|Unknown phase}}|background={{element color|table2}}|1=109&amp;amp;nbsp;(gray)=Unknown}}&amp;amp;ensp;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;{{Inline block&lt;br /&gt;
|{{#ifeq:%omitted%|%omitted%|&amp;#039;&amp;#039;&amp;#039;Color of the atomic number&amp;#039;&amp;#039;&amp;#039; shows [[state of matter]] (at [[Standard conditions for temperature and pressure|0&amp;amp;nbsp;°C and 1&amp;amp;nbsp;atm]])|}} }}&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here, each grey box and the text &amp;quot;Color of ...&amp;quot; are wrapped in {{tlf|inline block}} templates. If {{tlf|nowrap}} had been used instead, there would be no visible difference in the first two cases. In the third case, however, the text would have been unable to wrap into the space available. On mobile, this might mean that a table or the whole article is forced to become horizontally scrollable.&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&lt;br /&gt;
{{Format TemplateData|JSON=&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Content&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The content to be wrapped in an inline-block element&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;content&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;2&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Tag name&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Changes the [[HTML tag]] used. This may affect what elements this template should contain or be contained by.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;div, abbr&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;span&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;title&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Title of the content (used as tooltip text, or expanded abbreviation when 2=abbr&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;died (for abbr d.)&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;default&amp;quot;: &amp;quot;&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;width&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Width&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The width; passed directly to the \&amp;quot;width\&amp;quot; [[CSS]] attribute&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;height&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Height&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The height; passed directly to the \&amp;quot;height\&amp;quot; CSS attribute&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;color&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text color&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The text color; passed directly to the \&amp;quot;color\&amp;quot; CSS attribute&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;background&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Background formatting&amp;quot;,&lt;br /&gt;
            &amp;quot;aliases&amp;quot;: [&amp;quot;bg&amp;quot;],&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The background formatting; passed directly to the \&amp;quot;background\&amp;quot; CSS attribute&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;style&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Other styles&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Style information as plain CSS.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;The template &amp;amp;#123;&amp;amp;#123;Inline block&amp;amp;#125;&amp;amp;#125; creates an inline-block element. Among other uses, it can replace {{tl|nowrap}} when coding templates with complex layout.&amp;quot;&lt;br /&gt;
} }}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
{{List of nowrap-like templates}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line, please; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Line-handling templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Alexiscoutinho</name></author>
	</entry>
</feed>