Template:Remove first word: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
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.
Ookami (talk | contribs)
m 21 revisions imported
 
(9 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{substr any|{{{1}}}|{{strfind short|{{{1}}}| |1}}|{{#expr:{{strlen_quick|{{{1}}}}}-{{strfind short|{{{1}}}| |1}} }}}}<noinclude>
{{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude>
 
{{Documentation}}
 
</noinclude>

Latest revision as of 04:38, 3 September 2020