टेम्पलेट:Str ≠ len: रिवीजन सभ के बीचा में अंतर
Content deleted Content added
Padleft fails to pad when getting an empty but defined pad parameter. Working around that. |
ifeq is too smart, it understands numbers. So adding "x" in front of the strings. But then we need to remove any whitespace around the first string, thus the {{#if:x|}}. |
||
लाइन 1:
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:|{{{2|}}}| {{#if:{{{1|}}}|{{{1|}}}|pad}} }}
| {{{4|}}} <!-- str == len -->
| {{{3|}}} <!-- str != len -->
|