Difference between revisions of "Template:Remove first word"

From annadreambrush.com/wiki
Jump to navigation Jump to search
imported>Smith609
(Remove word if there's only the one)
imported>WOSlinker
(separate pp-template not needed)
 
(13 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{#if:{{strfind short|{{{1|}}}| |1}}|{{str sub|{{{1|}}}|{{strfind short|{{{1|}}}| |1}}|{{#expr:{{strlen_quick|{{{1|}}}}}-{{strfind short|{{{1|}}}| |1}} }} }}}}<noinclude>{{documentation}}</noinclude>
+
{{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude>

Latest revision as of 21:10, 13 February 2018

Template documentation[create]