Add file partial-something.php (or just something.php). Call from anywhere with:
<?php get_template_part('partial-test'); ?>