Jump to content

Template:Str ≠ len and Template:Str ≠ len/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
m Changed protection level for "Template:Str ≠ len": Allowing template editors on some templates with full protection dating back to pre-TPROT times which aren't too often or too sensitively used. ([Edit=Require template editor access]...
 
The "{{{1|}}}pad" optimisation had whitespace problems as expected. Back to code from the main template.
 
Line 1: Line 1:
{{{{{|safesubst:}}}#ifexpr: {{{{{|safesubst:}}}#invoke:String|len|s={{{1|}}}}} != {{{2|0}}} <noinclude><!-- str >= len --></noinclude>
{{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:|{{{2|}}}| {{#if:{{{1|}}}|{{{1|}}}|pad}} }}
| {{{3|}}}
| {{{4|}}} <!-- str == len -->
| {{{4|}}}
| {{{3|}}} <!-- str != len -->
}}<noinclude>
}}<noinclude>



{{documentation}}
{{template sandbox notice}}
<!-- {{pp-template}}
{{documentation}} -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>