Template talk:Remove first word

Result string does not contain true spaces
Because of the way that the template works, the result string does not contain true spaces, so it cannot be fed into other templates when these look for true spaces, e.g. First word or Strfind short. Thus although this:



produces output which when finally displayed is the string "is some junk", it does not behave in the same way as this string before it is displayed. Note the differences between the following:


 * is → is



As far as I can tell, this is caused by the way that Str sub works; see Template talk:Str sub.

This behaviour cost me several hours of debugging on a template I was trying to write, so I hope this note may save other people the same. Peter coxhead (talk) 09:32, 15 December 2011 (UTC)
 * I noticed [//en.wikipedia.org/w/index.php?diff=prev&oldid=497863684 some problems] with the "/any" version of this template which may be related to what you describe above.
 * Consequently, " " returns ""
 * They are a little different
 * Consequently, " " returns ""
 * The current behavior seems very confusing...Helder 13:24, 16 June 2012 (UTC)
 * Consequently, " " returns ""
 * The current behavior seems very confusing...Helder 13:24, 16 June 2012 (UTC)
 * Consequently, " " returns ""
 * The current behavior seems very confusing...Helder 13:24, 16 June 2012 (UTC)
 * The current behavior seems very confusing...Helder 13:24, 16 June 2012 (UTC)
 * The current behavior seems very confusing...Helder 13:24, 16 June 2012 (UTC)

Sep - several symbols
One should probably replace  with   (add []) to support   - several symbols as possible separators. Wikisaurus (talk) 15:16, 2 June 2019 (UTC)