Extension talk:WaybackMachine

From mediawiki.org

You could replace lines 105-199 of the source with:


$wgOut .= '<td valign="top">';

$j=0;
while($j < 10)
{
    while (substr($arch[$i], 0, 4) == (1996+$j)) 
    {
        $wgOut .='<a href="http://web.archive.org/web/'.$arch[$i].$input.'/">'.$month[$i].' '.substr($arch[$i],6,2).', '.substr($arch[$i], 0, 4).'</a><FONT COLOR="#FFFFFF">'.$starchar[$i].'</FONT><br>';
        $i += 1;
    }
    $j++;
}



Should cut down on a few lines of code (like ~90 lines into 12) and tidy things up a little. Nice work. :-)