Difference between revisions of "Category:Str rightc"
Jump to navigation
Jump to search
test>AGK m (Changed protection level of Template:Str rightc: Highly-visible template (thousands of transclusions) ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))) |
test>Toohool (fix for unpredictable behavior when the count is greater than the string length, caused by passing a negative value to {{str sub}}) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty-- | <includeonly>{{#if:{{{1|}}}|<!--if param. 1 not empty-- | ||
| − | --then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{#expr:{{Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}|{{{2}}}}}<!-- | + | --then extract substring-->{{Str sub long|nocategory={{{nocategory|}}}|{{{1}}}|{{max|0|{{#expr:{{Str len|nocategory={{{nocategory|}}}|{{{1}}}}}-{{{2}}}}}}}|{{{2}}}}}<!-- |
--else-->|<!--empty, so... | --else-->|<!--empty, so... | ||
--skip complex processing & return {3}-->{{{3|}}}<!-- | --skip complex processing & return {3}-->{{{3|}}}<!-- | ||
Revision as of 07:15, 24 February 2013
Documentation[create]
This category currently contains no pages or media.