Quote:
Originally Posted by TreeFrogBandit
Is there a function I can use to return the first n words of a title (based on separation by spaces)
|
This.
Code:
{title:sublist(0,4, )}
Note that the spaces are significant.
Quote:
or automatically returns everything before the colon that nearly always sneaks into academic titles?
|
This.
Code:
{title:sublist(0,1,:)}
You can also combine the two, taking the first N words of the title before a colon. N == 4 in this example.
Code:
{title:'sublist(sublist($, 0, 1, ':'), 0, 4, ' ')'}