انتقل إلى المحتوى

الفرق بين المراجعتين لصفحة: «قالب:Str ≤ len»

أُضيف ١٩٠ بايت ،  ١٠ مايو ٢٠١٩
تنسيق ويكي
ط (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]...)
 
imported>عبد الله
(تنسيق ويكي)
سطر ١: سطر ١:
{{{{{|safesubst:}}}#ifexpr: {{{{{|safesubst:}}}#invoke:String|len|s={{{1|}}}}} <= {{{2|0}}}  <noinclude><!-- str >= len --></noinclude>
{{#switch:
| {{{3|}}}
  {{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:{{{1|}}}|{{{2|}}} }}    <!-- str >= len -->
| {{{4|}}}
  | {{#ifeq: x{{#if:x|{{{1|}}}}} | x{{padleft:|{{{2|}}}|{{{1|}}} }}  <!-- str == len -->
    | equal
    | longer
    }}
  | shorter
  }}
 
| shorter
| equal  = {{{3|}}}
| longer  = {{{4|}}}
 
}}<noinclude>
}}<noinclude>


{{documentation}}
{{توثيق}}
[[تصنيف:قوالب التعامل مع النصوص]]
<!-- Add categories and interwikis to the /doc subpage, not here! -->
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>
مستخدم مجهول