"टेम्पलेट:Str rightc" की अवतरण में अंतर

fix for unpredictable behavior when the count is greater than the string length, caused by passing a negative value to {{str sub}}
imported>AGK
छो (Changed protection level of Template:Str rightc: Highly-visible template (thousands of transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
imported>Toohool
(fix for unpredictable behavior when the count is greater than the string length, caused by passing a negative value to {{str sub}})
<includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty--
--then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{max|0|{{#expr:{{Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}|{{{2}}}}}<!--
--else-->|<!--empty, so...
--skip complex processing & return {3}-->{{{3|}}}<!--
नामालूम प्रयोगकर्ता