10,991
editsMore actions
no edit summary
(Created page with "<nowiki></nowiki><noinclude> 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: <pre> Paragraph 1 {{#if: condition | Paragraph 2 }} Paragraph 3 </pre> If all the conditions are met, it works fine: Paragraph 1 {{#if: condition | Paragraph 2 }} Paragraph 3 But if some of the conditions aren't met, it will produce too m...") |
No edit summary |
||
Line 14: | Line 14: | ||
</pre> | </pre> | ||
If all the | If all the condition is met, it works fine: | ||
Paragraph 1 | Paragraph 1 | ||
Line 24: | Line 24: | ||
Paragraph 3 | Paragraph 3 | ||
But if | But if the condition isn't met, it will produce too much empty space, like this: | ||
Paragraph 1 | Paragraph 1 | ||
Line 45: | Line 45: | ||
</pre> | </pre> | ||
That works exactly as desired when the | That works exactly as desired when the condition ''isn't'' met: | ||
Paragraph 1 {{#if: | | Paragraph 1 {{#if: | | ||
Line 54: | Line 54: | ||
Paragraph 3 | Paragraph 3 | ||
But... When the | But... When the condition ''is'' met, it doesn't work as expected! It does this weird thing instead: | ||
Paragraph 1 {{#if: condition | | Paragraph 1 {{#if: condition | |