Difference between revisions of "Template:Unique values"

From HodHood
Jump to: navigation, search
($tmp = explode( ":", $category, 2 ); $category = $tmp[0] . $tmp[1] . '|' . $tmp[1];)
(restore)
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
     $show = "{{#show: $v | ?category |link=none }}";
 
     $show = "{{#show: $v | ?category |link=none }}";
 
     $category = transclude( false, [], $show );
 
     $category = transclude( false, [], $show );
    if ( $category ) {
 
      $tmp = explode( ":", $category, 2 );
 
      $category = $tmp[0] . $tmp[1] . '|' . $tmp[1];
 
    }
 
 
     $count[$v]['category'] = $category;
 
     $count[$v]['category'] = $category;
 
   }
 
   }

Latest revision as of 07:45, 1 March 2018