Template:Or

[purge]Template-info.png Template documentation
Behaves like the or lua operator. Useful for parameters. Example:
{{or|{{{1|}}}|{{{2|}}}}}
  • {{or|a|b}} -> a
  • {{or||b}} -> b
  • {{or|a|}} -> a
  • {{or||}} ->
Will take 1 if it is non-blank, else it will take 2.