Usage
{{sortname ill|first|last|language|optional foreign language title|optional link target|optional sort key}}

Produces the result of {{sortname|first|last|optional link target|optional sort key}} with [[link target]] replaced by {{ill|link target|language|optional foreign language title}}.