fn: sgnd_parse_statespec
Purpose
Parse a save-state specification into source variable and state key parts.
Arguments
$1 - Pipe-separated KEY|LABEL|DEFAULT|VALIDATOR|COLORIZER state entry.
Returns
0 after splitting the specification into the _state* output variables.
Usage
sgnd_parse_statespec "INP_NAME|Name|Petrus Puk|"
