Okay, let’s see if this helps make it a bit clearer…
Change your file naming script to something like:
$noop(
This script will use the default file naming style
unless the variable %_format_type% has been set to
"sparse". This would be done in a tagging script,
either enabled when the desired tracks are loaded
or executed manually for the desired tracks once
they have been matched in the right-hand pane.
)
$noop( Do common processing here. )
$set(title,$replace(%title%,…,…))
$set(album,$replace(%album%,…,…))
$noop( Test to see if sparse formatting has been selected. )
$if($eq(%_format_type%,sparse),
$noop( File naming style for "sparse". )
%artist% - %title%
,
$noop( Default file naming style. )
$set(discsubtitle,$replace(%discsubtitle%,…,…))
$set(_nomeartista,$if2(%albumartist%,%artist%))
$set(_nomeartista,$replace(%_nomeartista%,…,…))
$set(_anno,$left($if2(%originalyear%,%originaldate%,%date%),4))
$set(discnumber,$if($gt(%totaldiscs%,1),$num(%discnumber%,2)))
$if($eq([non-album tracks],%album%),
%_nomeartista%/non-album_tracks/%_nomeartista% - %title%,
%_nomeartista%/
%_anno% - %album%/$if($gt(%totaldiscs%,1),$if(%discsubtitle%,CD #%discnumber%։ %discsubtitle%, CD #%discnumber%))/
$num(%tracknumber%,2). %title%)
)
Then create a tagging script like:
$set(_format_type,sparse)
Only enable or run this tagging script when you want the files to be saved using your “sparse” format.
When your naming script runs (when you save the files), it will use the full naming format by default, unless you have run the tagging script to set the variable %_format_type%
to the value “sparse”, in which case it will use the “sparse” naming format.