Template talk:AllopentasksFrom Battlestar Wiki, the free, open content Battlestar Galactica encyclopedia and episode guideNiftyThis is pretty cool. To nitpick (since that's what I do), you can get commas only between items and not after each one with something like: if( size of A ) print A[0]; for( i=1; i < size of A; ++i ) print ", " A[i];It's been rather a while since I used Perl, and I don't know what structure you're using to hold items, but you get the idea. Having it omit empty categories would be nice, too. Anyway, having every category of open task gathered in one place is great. --CalculatinAvatar(C-T) 12:32, 5 August 2006 (CDT)
I think this is the line you are looking for:
foreach $article (sort {$rank{$a} <=> $rank {$b}} (keys(%rank)))
{
if (length($article)+1 < $characterLimit - length($featuredString))
{
if ($categoryID == "IMAGE") {
$featuredString .= "[[:${article}]], ";
} else {
$featuredString .= "[[${article}]], ";
}
$article =~ s/ /_/g;
# Record how many times each article is featured.
$::history{"${article}-${categoryID}"}++;
}
}
Bot still working?Question: is a bot still handling the updating of these? They don't appear to have changed in quite some time. JubalHarshaw 11:35, 15 April 2007 (CDT) |



