Template:If-nonempty

From Pittsburgh Streets
The {{if-nonempty}} template emits its first parameter with an optional prefix and suffix, only if the first parameter is nonempty.

Usage examples

  • {{if-nonempty}}
  • {{if-nonempty|before=(|after=)}}
  • {{if-nonempty|abc|before=(|after=)}} → (abc)