$WBMID is available for use with all WBSP commands:
sourcetext - text from which the rightmost characters are returned
start - position inside sourcetext at which the part to be taken begins
length - numeric parameter indicating how many characters to return
Text containing a specified number (length) of characters starting from the start position of sourcetext.
After running this example, the resulting page in browser, may look like this: