Template:IfNotEmpty

From Epic Paths
Jump to navigation Jump to search

Parameters:

  • 1: If 1 is not empty, it will get shown along with pre and post
  • pre: Text to display in front of a non-empty 1
  • post: Text to display after a non-empty 1
  • else: show if 1 is empty

Examples:

{{IfNotEmpty||pre=Before|post=After}}:


{{IfNotEmpty|Show Text}}: Show Text


{{IfNotEmpty|Show Text|pre=Text: <wbr>|post=and once it is done}}: Text: Show Textand once it is done


{{IfNotEmpty|Show Text|pre=Text: <wbr>}}: Text: Show Text


{{IfNotEmpty|Show Text|post=and once it is done}}: Show Textand once it is done


{{IfNotEmpty||else=other text}}: other text


Usage: {{IfNotEmpty||pre=|post=}}