Difference between revisions of "Template:Unique values"

From HodHood
Jump to: navigation, search
Line 9: Line 9:
 
     $count[$v]['count'] = 1;
 
     $count[$v]['count'] = 1;
 
     $show = "{{#show: $v | ?category |link=none }}";
 
     $show = "{{#show: $v | ?category |link=none }}";
     $count[$v]['category'] = transclude( false, [], $show );
+
    $category = transclude( false, [], $show );
 +
     $count[$v]['category'] = substr( explode( ', Category:', $category ), 9 );
 
   }
 
   }
 
   //$count[$v][] = $page;
 
   //$count[$v][] = $page;

Revision as of 10:32, 23 February 2018