<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3AGaps%2Fdoc</id>
	<title>Sjabloon:Gaps/doc - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://informatiestandaarden.test-nictiz.nl/index.php?action=history&amp;feed=atom&amp;title=Sjabloon%3AGaps%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Gaps/doc&amp;action=history"/>
	<updated>2026-04-28T11:46:41Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Gaps/doc&amp;diff=2192&amp;oldid=prev</id>
		<title>Ahenket: Nieuwe pagina aangemaakt met &#039;{{Documentation subpage}}  &#039;&#039;&#039;Template:Gaps&#039;&#039;&#039; outputs its unnamed arguments in order, applying the &lt;code&gt;margin-left: 0.25em&lt;/code&gt; CSS rule to all but the fir...&#039;</title>
		<link rel="alternate" type="text/html" href="https://informatiestandaarden.test-nictiz.nl/index.php?title=Sjabloon:Gaps/doc&amp;diff=2192&amp;oldid=prev"/>
		<updated>2013-07-18T08:38:52Z</updated>

		<summary type="html">&lt;p&gt;Nieuwe pagina aangemaakt met &amp;#039;{{Documentation subpage}}  &amp;#039;&amp;#039;&amp;#039;Template:Gaps&amp;#039;&amp;#039;&amp;#039; outputs its unnamed arguments in order, applying the &amp;lt;code&amp;gt;margin-left: 0.25em&amp;lt;/code&amp;gt; &lt;a href=&quot;/index.php?title=CSS&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;CSS (de pagina bestaat niet)&quot;&gt;CSS&lt;/a&gt; rule to all but the fir...&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Template:Gaps&amp;#039;&amp;#039;&amp;#039; outputs its unnamed arguments in order, applying the &amp;lt;code&amp;gt;margin-left: 0.25em&amp;lt;/code&amp;gt; [[CSS]] rule to all but the first, so that there will be gaps of 0.25em between the arguments. The whole output has the &amp;lt;code&amp;gt;white-space: nowrap&amp;lt;/code&amp;gt; rule so that it will not be broken across several lines.&lt;br /&gt;
&lt;br /&gt;
It supports up to twenty unnamed arguments. In addition, it supports the &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;base&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;e&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; arguments which can be used for numbers in [[exponential notation]]. The base will be assumed to be 10 unless otherwise specified; a [[hyphen-minus]] &amp;quot;-&amp;quot; in the exponent will be automatically substituted by a [[minus sign]] &amp;quot;&amp;amp;minus;&amp;quot;. It also supports the arguments &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;lhs&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; for putting left-hand sides and units within the non-breaking span (see examples below).&lt;br /&gt;
&lt;br /&gt;
See [[Wikipedia:Manual of Style (dates and numbers)#Large numbers]] and [[Wikipedia:Manual of Style (dates and numbers)#Decimal points]] for information about where to put the gaps in numbers.&lt;br /&gt;
=== Usage ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
 ! Input !! Output&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{gaps|−2.002|319|304|3622(15)}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{gaps|−2.002|319|304|3622(15)}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{gaps|299|792|458|u=m/s}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{gaps|299|792|458|u=m/s}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{gaps|lhs=π|3.14159|26535|89793|23846|26433|83279|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{gaps|lhs=π|3.14159|26535|89793|23846|26433|83279|...}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{gaps|P.|A.|M.}} Dirac&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{gaps|P.|A.|M.}} Dirac&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{nowrap|1={{gaps|sin|2&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}} = 2 {{gaps|sin|&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}} {{gaps|cos|&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}}}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{nowrap|1={{gaps|sin|2&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}} = 2 {{gaps|sin|&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}} {{gaps|cos|&amp;#039;&amp;#039;φ&amp;#039;&amp;#039;}}}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;quot;She disputed his statement that &amp;#039;Voltaire never said &amp;quot;I disapprove of what you say, but I will defend to the death your right to say {{gaps|it.&amp;quot;|&amp;#039;|&amp;quot;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |&amp;quot;She disputed his statement that &amp;#039;Voltaire never said &amp;quot;I disapprove of what you say, but I will defend to the death your right to say {{gaps|it.&amp;quot;|&amp;#039;|&amp;quot;}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{gaps|1.602|176|487(40)|e=-19|u=C}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |{{gaps|1.602|176|487(40)|e=-19|u=C}}&lt;br /&gt;
 |-&lt;br /&gt;
 |&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;64 MB ({{gaps|64|base=2|e=20}} bytes)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
 |64 MB ({{gaps|64|base=2|e=20}} bytes)&lt;br /&gt;
 |}&lt;br /&gt;
&lt;br /&gt;
===Performance impact===&lt;br /&gt;
Template:Gaps allows up to 20 parameters, and displays the gaps by setting the left-margin space of each group. The gaps are not actual spaces, so a copy/paste of the text is treated as connected, consecutive text. Template:Gaps is coded with minimal wikitext [[markup]], so equivalent hand-coded markup could not be much shorter. Counting the length of the span-tags, there can be 15,800 instances of 2-part {gaps}, or 9,500 uses of 3-part gaps, or 6,800 with 4-part gaps (etc.), per page. The template uses a minimal [[m:HELP:Expansion depth|expansion depth]] of only 2 levels (of the if-else nesting limit, such as 40 maximum), and if those 2 levels are exceeded, only the first portion will be shown. Although the text, as displayed, is consecutive as on-screen text, {gaps} for a number cannot be used in a calculation because the internal markup contains the invisible &amp;amp;lt;span&amp;gt; tags which would be invalid text in typical numeric processing.&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* {{tl|gapnum}} - format a number to show 3-digit gaps, with decimal gaps of 3 or 4 digits&lt;br /&gt;
* {{tl|Val/delimitnum}} - format a number to show commas, but decimal gaps of 3 or 4 digits&lt;br /&gt;
* {{t|convert/gaps}} - convert an amount to show 3-digit gaps, with decimal gaps&lt;br /&gt;
* {{tl|Space}} -  to create alignment between adjacent text lines, or to space out titles, etc.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:String manipulation templates|Gaps]]&lt;br /&gt;
[[Category:Templates with minimal expansion depth]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ahenket</name></author>
	</entry>
</feed>