Template:If
From Curious Expedition 2 Wiki
Returns the second argument if the first argument is non-empty; returns empty otherwise.
See WikiMedia Help - Advanced Templates - Branching techniques without ParserFunctions.
Examples
You type | You get{{{1}}} |
---|
|-
|-
|
{{if|defined|Argument is non-empty}}
|
Argument is non-empty
|-
|-
|
{{if||Argument is non-empty}}
|
|}