Difference between revisions of "Template:Unique values"
From HodHood
P.Astakhov (talk | contribs) ($count[$v]['category'] = $category;) |
P.Astakhov (talk | contribs) ($tmp = explode( ":", $category, 2 ); $category = $tmp[0] . $tmp[1] . '|' . $tmp[1];) |
||
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; | ||
} | } |