docs($compile): improve transclusion documentation

Closes #9352