Template:IfNotEmpty
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:
{{IfNotEmpty|Show Text|pre=Text: <wbr>}}: 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=}}