Template:Remove first word: Difference between revisions

removed unneeded pre-condition of {# if {strfind short...} } because always extracts string, runs 35% faster now, and one less if-structure reduced the expansion level by 1.
m (Changed protection level of Template:Remove first word/any: Highly-visible template (between 700 and 1200 transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
(removed unneeded pre-condition of {# if {strfind short...} } because always extracts string, runs 35% faster now, and one less if-structure reduced the expansion level by 1.)
Line 1:
{{#if:{{strfind short|{{{1|}}}| |1}}|{{substr any|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}|{{#expr:{{strlen_quick|{{{1|}}}}}-{{strfind short|{{{1|}}}| |1}} }}}}}}<noinclude>
 
{{Documentation}}
Anonymous user