Skip to content
EntityQ55944207· pop 110

Template:If then show

Sign in to save

Wikimedia template

~4 min read

Encyclopedic overview

Template documentation view] [edit] [history] [purge]

This template tests whether the first unnamed parameter is not an empty string and returns it if it is not empty. Otherwise it returns the second unnamed parameter.

Excerpted from Wikipedia’s “Template:If then show” article, available under the CC BY-SA 4.0 licence.