$if($and($greater(%totaldisc%,1),$not($greater(%tracknumber%,1))),$crlf()'['b']'Disc %disc%'['/b']'$if(%discsubtitle%,' - '%discsubtitle%,)$crlf()$crlf(),)$puts(va,$if($or($stricmp(%album artist%,'Soundtrack'),$stricmp(%album artist%,'Various Artists')),'true','false'))$puts(artistStr,$ifgreater($meta_num(ArtistFilter),1,$puts(mArtist,$meta(ArtistFilter,0))$if($put(comma,$sub($strstr($get(mArtist),', '),1)),$puts(mArtist,$substr($get(mArtist),$add($get(comma),3),$len($get(mArtist))) $substr($get(mArtist),0,$get(comma))),)$if($get(mArtist),$if($stricmp($get(va),'true'),,$if($stricmp($get(mArtist),%artist%),$puts(feat,1),$get(mArtist))$puts(mArtist,$meta(ArtistFilter,1))$if($put(comma,$sub($strstr($get(mArtist),', '),1)),$puts(mArtist,$substr($get(mArtist),$add($get(comma),3),$len($get(mArtist))) $substr($get(mArtist),0,$get(comma))),)$if($get(mArtist),$if($stricmp($get(va),'true'),,$if($get(feat), feat. ,', ')'[artist]'$get(mArtist)'[/artist]'$puts(mArtist,$meta(ArtistFilter,2))$if($put(comma,$sub($strstr($get(mArtist),', '),1)),$puts(mArtist,$substr($get(mArtist),$add($get(comma),3),$len($get(mArtist))) $substr($get(mArtist),0,$get(comma))),)$if($get(mArtist),$if($stricmp($get(va),'true'),,$ifequal($meta_num(ArtistFilter),3,' & ',', ')'[artist]'$get(mArtist)'[/artist]'$puts(mArtist,$meta(ArtistFilter,3))$if($put(comma,$sub($strstr($get(mArtist),', '),1)),$puts(mArtist,$substr($get(mArtist),$add($get(comma),3),$len($get(mArtist))) $substr($get(mArtist),0,$get(comma))),)$if($get(mArtist),$if($stricmp($get(va),'true'),,$ifequal($meta_num(ArtistFilter),4,' & ',', ')'[artist]'$get(mArtist)'[/artist]')))))))),))'['b']'$num(%tracknumber%,$ifgreater(%list_total%, 9, 2, 1)).'[/b]'$if($stricmp(%album artist%,'Various Artists'), '[artist]'%artist%'[/artist]' - %title% ['([artist]'%original artist%'[/artist] cover) '], %title%[ '([artist]'%original artist%'[/artist] cover) '][ - $get(artistStr)])' '['i']'('%length%')'['/i']'
Explanation of that mess: ArtistFilter is custom tag I use for adding guest/featured artists to a track, or listing who was on the track in the case of a VA or Soundtrack release. Names are stored "Last, First" for sorting purposes and so my titleformatting code unpacks them, restores them to the correct order, adds "feat. " if needed as well as Ampersands if multiple artists are featured.
Example output:
13. Bang Bang - feat. [artist]Jessie J[/artist] & [artist]Nicki Minaj[/artist] (3:19)
Obviously that's completely unreadable. To edit it, I have to have a copy saved in a text editor with line breaks, and then strip them out for editing here.