<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="uk">
	<id>https://wiki.dnd.in.ua/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ABlank</id>
	<title>Шаблон:Blank - Історія редагувань</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.dnd.in.ua/index.php?action=history&amp;feed=atom&amp;title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD%3ABlank"/>
	<link rel="alternate" type="text/html" href="https://wiki.dnd.in.ua/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Blank&amp;action=history"/>
	<updated>2026-06-19T16:28:26Z</updated>
	<subtitle>Історія редагувань цієї сторінки в вікі</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://wiki.dnd.in.ua/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Blank&amp;diff=1213&amp;oldid=prev</id>
		<title>587: Створена сторінка: Категорія:Потребує перекладу &lt;nowiki&gt;&lt;/nowiki&gt;&lt;noinclude&gt; This empty template is useful for introducing spaces or line breaks in places where they would normally be auto-removed.  To explain why this is needed, let's look at the following code first:  &lt;pre&gt; Paragraph 1  {{#if: condition | Paragraph 2 }}  Paragraph 3 &lt;/pre&gt;  If all the condition is met, it works fine:   Paragraph 1    {{#if: condition |  Paragraph 2  }}    Para...</title>
		<link rel="alternate" type="text/html" href="https://wiki.dnd.in.ua/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Blank&amp;diff=1213&amp;oldid=prev"/>
		<updated>2023-08-25T14:59:39Z</updated>

		<summary type="html">&lt;p&gt;Створена сторінка: &lt;a href=&quot;/index.php?title=%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D1%96%D1%8F:%D0%9F%D0%BE%D1%82%D1%80%D0%B5%D0%B1%D1%83%D1%94_%D0%BF%D0%B5%D1%80%D0%B5%D0%BA%D0%BB%D0%B0%D0%B4%D1%83&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Категорія:Потребує перекладу (такої сторінки не існує)&quot;&gt;Категорія:Потребує перекладу&lt;/a&gt; &amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;noinclude&amp;gt; This empty template is useful for introducing spaces or line breaks in places where they would normally be auto-removed.  To explain why this is needed, let&amp;#039;s look at the following code first:  &amp;lt;pre&amp;gt; Paragraph 1  {{#if: condition | Paragraph 2 }}  Paragraph 3 &amp;lt;/pre&amp;gt;  If all the condition is met, it works fine:   Paragraph 1    {{#if: condition |  Paragraph 2  }}    Para...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Нова сторінка&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Категорія:Потребує перекладу]]&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
This empty template is useful for introducing spaces or line breaks in places where they would normally be auto-removed.&lt;br /&gt;
&lt;br /&gt;
To explain why this is needed, let's look at the following code first:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Paragraph 1&lt;br /&gt;
&lt;br /&gt;
{{#if: condition |&lt;br /&gt;
Paragraph 2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Paragraph 3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If all the condition is met, it works fine:&lt;br /&gt;
&lt;br /&gt;
 Paragraph 1&lt;br /&gt;
 &lt;br /&gt;
 {{#if: condition |&lt;br /&gt;
 Paragraph 2&lt;br /&gt;
 }}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 3&lt;br /&gt;
&lt;br /&gt;
But if the condition isn't met, it will produce too much empty space, like this:&lt;br /&gt;
&lt;br /&gt;
 Paragraph 1&lt;br /&gt;
 &lt;br /&gt;
 {{#if: |&lt;br /&gt;
 Paragraph 2&lt;br /&gt;
 }}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 3&lt;br /&gt;
&lt;br /&gt;
Let's try to improve on this by making sure we don't introduce empty paragraphs:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Paragraph 1 {{#if: condition |&lt;br /&gt;
&lt;br /&gt;
Paragraph 2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Paragraph 3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That works exactly as desired when the condition ''isn't'' met:&lt;br /&gt;
&lt;br /&gt;
 Paragraph 1 {{#if: |&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 2&lt;br /&gt;
 }}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 3&lt;br /&gt;
&lt;br /&gt;
But... When the condition ''is'' met, it doesn't work as expected!  It does this weird thing instead:&lt;br /&gt;
&lt;br /&gt;
 Paragraph 1 {{#if: condition |&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 2&lt;br /&gt;
 }}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 3&lt;br /&gt;
&lt;br /&gt;
Why does that happen?  It's because parser functions like {{code|#if}} strip all blanks (spaces and line breaks) that come before the first non-blank character, and after the last non-blank character.  So the line breaks after {{code|&amp;lt;nowiki&amp;gt;{{#if: condition |&amp;lt;/nowiki&amp;gt;}} are completely ignored!&lt;br /&gt;
&lt;br /&gt;
This can be solved with the following trick.  Note the use of the empty {{code|nowiki}} tag:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Paragraph 1 {{#if: condition | &amp;amp;lt;nowiki&amp;amp;gt;&amp;amp;lt;/nowiki&amp;amp;gt;&lt;br /&gt;
&lt;br /&gt;
Paragraph 2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Paragraph 3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The empty tag ends the blank auto-removal at the point it's inserted, so the line breaks that come after are not ignored.&lt;br /&gt;
&lt;br /&gt;
It's tedious to write {{code|&amp;amp;lt;nowiki&amp;amp;gt;&amp;amp;lt;/nowiki&amp;amp;gt;}} every time, so you can instead use this blank template, which can fulfill the exact same purpose:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Paragraph 1 {{#if: condition | {{blank}}&lt;br /&gt;
&lt;br /&gt;
Paragraph 2&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Paragraph 3&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
 Paragraph 1 {{#if: condition | {{blank}}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 2&lt;br /&gt;
 }}&lt;br /&gt;
 &lt;br /&gt;
 Paragraph 3&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>587</name></author>
	</entry>
</feed>