"ഫലകം:If empty/doc" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

More examples.
Better examples.
വരി 13:
<tr><td>{{tlc|ifempty|one}} <td>{{ifempty|one}} <td>Returns the first parameter that is defined and not empty.
<tr><td>{{tlc|ifempty|one|two}} <td>{{ifempty|one|two}} <td>
<tr><td>{{tlc|ifempty|one|two|three}} <td>{{ifempty|one|two|three}} <td>
<tr><td>{{tlc|ifempty|one|two|three|four}} <td>{{ifempty|one|two|three|four}} <td>
<tr><td>{{tlc|ifempty||two}} <td>{{ifempty||two}} <td>The first parameter was empty or undefined, so uses the next parameter.
Line 21 ⟶ 20:
<tr><td>{{tlc|ifempty|||||five}} <td>{{ifempty|||||five}} <td>Only handles up to four parameters, so returns an empty string.
<tr><td>{{tlc|ifempty|}} <td>{{ifempty|}} <td>The only parameter is empty or undefined, so returns an empty string.
<tr><td>{{tlc|ifempty||||}} <td>{{ifempty||||}} <td>Returns an empty string.
 
<tr><td>{{tlc|ifempty|||}} <td>{{ifempty|||}} <td>
<tr><td><code><nowiki>{{tlc|ifempty|{{{1|}}}|{{{2|}}}|three}}</nowiki></code> <td>{{ifempty|{{{1|}}}|{{{2|}}}|three}} <td>
<tr><td><code><nowiki>{{ifempty|{{{1}}}|{{{2}}}|three}}</nowiki></code> <td>{{ifempty|{{{1}}}|{{{2}}}|three}} <td>Fails. Note the lack of "|" in the first two parameters.
 
<tr><td><code><nowiki>{{tlc|ifempty|one{{{logo|two}}}|threetwo}}</nowiki></code> <td>{{ifempty|one{{{logo|two}}}|threetwo}} <td>
<tr><td><code><nowiki>{{ifempty|{{{logo}}}|two}}</nowiki></code> <td>{{ifempty|{{{logo}}}|two}} <td>Fails. Note the lack of "|" in the first parameter.
 
</table>
"https://ml.wikipedia.org/wiki/ഫലകം:If_empty/doc" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്