Editing Template:If
From Curious Expedition 2 Wiki
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<includeonly>{{{1{{{1|}}}|{{{2}}}}}}<nowiki/></includeonly><noinclude> | <includeonly>{{{1{{{1|}}}|{{{2}}}}}}<nowiki/></includeonly><noinclude> | ||
− | Returns the second argument if the first argument is | + | Returns the second argument if the first argument is defined, empty otherwise. |
{{examples| | {{examples| | ||
Line 9: | Line 9: | ||
== References == | == References == | ||
* [https://meta.wikimedia.org/wiki/Help:Advanced_templates#Branching_techniques_without_ParserFunctions WikiMedia Help - Advanced Templates - Branching techniques without ParserFunctions] | * [https://meta.wikimedia.org/wiki/Help:Advanced_templates#Branching_techniques_without_ParserFunctions WikiMedia Help - Advanced Templates - Branching techniques without ParserFunctions] | ||
+ | |||
+ | {{examples}} | ||
+ | |- | ||
+ | {{example3|if|defined|Argument defined!}} | ||
+ | |- | ||
+ | {{example3|if||Argument defined!}} | ||
+ | |} | ||
[[Category:Text templates]] | [[Category:Text templates]] |