Template:Remove first word: Difference between revisions

From Vigyanwiki
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: Line 1:
{{#if:{{strfind short|{{{1|}}}| |1}}|{{substr any|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}|{{#expr:{{strlen_quick|{{{1|}}}}}-{{strfind short|{{{1|}}}| |1}} }}}}}}<noinclude>
{{substr any|{{{1}}}|{{strfind short|{{{1}}}| |1}}|{{#expr:{{strlen_quick|{{{1}}}}}-{{strfind short|{{{1}}}| |1}} }}}}<noinclude>


{{Documentation}}
{{Documentation}}


</noinclude>
</noinclude>

Revision as of 06:07, 31 August 2012

Template:Substr any

Template documentation