Template:Blank: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 63: Line 63:
  Paragraph 3
  Paragraph 3


Why does that happen?  It's because parser functions like {{code|#if}} strip all blanks (spaces and line breaks) that come before and after the first non-blank character in each section.  So the line breaks after {{code|<nowiki>{{#if: condition |</nowiki>}} are completely ignored!
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|<nowiki>{{#if: condition |</nowiki>}} are completely ignored!


This can be solved with the following trick.  Note the use of the empty {{code|nowiki}} tag:
This can be solved with the following trick.  Note the use of the empty {{code|nowiki}} tag:

Navigation menu