How to style my custom Fivestar field?
Then you can do it like this:

Use view-field--field-average-score.tpl.php which will affect all views that have this field, but we can add an if statement to target the views you only want the special markup. 

Ex: In here we check if it has view_name with block_1 OR view_name_2 with block_1

&lt;?php if (($view-&gt;name == 'view_name' &amp;&amp; $view-&gt;current_display == 'block_1') || ($view-&gt;name == 'view_name_2' &amp;&amp; $view-&gt;current_display == 'block_1'): ?&gt;
&lt;?php $rating = round(($output/100) * 5, 1); ?&gt;
&lt;span&gt;
  &lt;span class="star"&gt;&lt;/span&gt;&lt;span&gt;&lt;?php print $rating . '/5'; ?&gt;&lt;/span&gt;
&lt;/span&gt;
&lt;?php else: ?&gt;
&lt;?php print $output; ?&gt;
&lt;?php endif; ?&gt;


In case you are wondering, current_display is the machine name

The $view-&gt;current_display check is optional. This is so it only affects a certain Display of block/page that is inside your view. 

So for line 1, you could use this instead: 

&lt;?php if ($view-&gt;name == 'view_name' || $view-&gt;name == 'view_name_2'): ?&gt;


If you want to affect all blocks/pages that are inside these 2 views.