Difference between revisions of "Template:Temp test"
Line 1: | Line 1: | ||
<includeonly>{| border=0 style="max-width: 190px; text-align: center" | <includeonly>{| border=0 style="max-width: 190px; text-align: center" | ||
− | {{#if: {{{var_x1|var_x2|var_x3|}}} | <tr style="color: white; background: #4b4d4f; text-align: center; font-size: 12px"><td>Something was | + | {{#if: {{{var_x1|var_x2|var_x3|}}} | <tr style="color: white; background: #4b4d4f; text-align: center; font-size: 12px"><td>Something was Passed</td></tr> | <tr height="0">Nothing was passed!</tr>}} |
|}</includeonly> | |}</includeonly> | ||
<noinclude>[[Category:Templates|{{PAGENAME}}]] | <noinclude>[[Category:Templates|{{PAGENAME}}]] | ||
Line 21: | Line 21: | ||
<div> | <div> | ||
The main factor here is the pipe within the if statement testing beyond what variable is resolved: | The main factor here is the pipe within the if statement testing beyond what variable is resolved: | ||
− | <pre>{{#if: {{{var_x1|var_x2|var_x3|}}} | | + | <pre>{{#if: {{{var_x1|var_x2|var_x3|}}} | Something was Passed | Nothing was passed!}}</pre> |
</div> | </div> | ||
</noinclude> | </noinclude> |
Revision as of 22:19, 14 September 2021
Use/Examples
When passing variables.
{{Temp_test|var_x1=|var_x2=|var_x3=}} |
Nothing was passed!
|
|
The main factor here is the pipe within the if statement testing beyond what variable is resolved:
{{#if: {{{var_x1|var_x2|var_x3|}}} | Something was Passed | Nothing was passed!}}