Board Thread:Support Requests - Getting Technical/@comment-5068292-20141118151803/@comment-452-20141118165343

String functions.

Template version:
 * If there is no dot, it returns the parameter.
 * If a parameter isn't specified, it tries to use the pagename.

Example:
 * Result:

Example:


 * Result:


 * Explanation
 * rpos finds the last . in

'''
 * check if the dot is not found


 * no dot, return the input

'''
 * dot is found, get the substring of the input, from position 0 to position of the dot.

edit: fixed typo