From the
Advanced formatting section of the template language manual:
Quote:
Do not use subtemplates (`{ … }`) or functions (see below) in the prefix or the suffix.
|
The last template expression
Code:
{series_index:0>2s| - | - {title}}
does exactly that. I suspect you want
Code:
{series_index:0>2s| - | - }{title}
It also isn't obvious why you want the series twice in the path
IMO a template of this complexity should be written in
Template Program Mode (TPM). Not only is branching easier, TPM templates are much easier to debug.