Template talk:If

HTML attributes inside return value
Example 1 {&#123;#invoke:if|main|testcase|&lt;span class="someclass" &gt;true&lt;/span&gt;|false&#125;} >

{&#123;#if:testcase|&lt;span class="someclass" &gt;true&lt;/span&gt;|false&#125;} >

Example 2 {&#123;#invoke:if|main|testcase|&lt;span style="color: red;" &gt;true&lt;/span&gt;|&lt;span class="someclass" &gt;false&lt;/span&gt;&#125;} > {&#123;#if:testcase|&lt;span style="color: red;" &gt;true&lt;/span&gt;|&lt;span class="someclass" &gt;false&lt;/span&gt;&#125;} >

Cafeinlove 08:09, January 23, 2017 (UTC)