#!/usr/bin/perl -w
use strict;
my $weekbegin=1;
my $weekend=52;
my $year=2008;
my @otheryears = (2006,2007,2008);
my $header = qq{==[[Portal:Denmark|Denmark Portal]] selected picture archive: $year ==
{{CommonsCat|Selected pictures from Portal:Denmark}}
This is the selected picture archive, for the [[Portal:Denmark|Denmark portal]].
};
my $footer = q{<small>This index is generated by [[User:Hebster/PDSPA.pl|this cruel]] but working [[Perl|perl-script]].</small>
};
################
print $header;
foreach my $otheryear (@otheryears) {
if ($otheryear != $year) {
print "* [[Portal:Denmark/Selected picture/Archive/$otheryear|Year $otheryear archive]]\n";
}
}
print "\n\n";
while ($weekbegin <= $weekend) {
print "'''$weekbegin:''' <small><span class=\"plainlinks\">[[Portal:Denmark/Selected picture/$year/$weekbegin|View]] {{·}} [http://en.wikipedia.org/w/index.php?title=Portal:Denmark/Selected_picture/$year/$weekbegin&action=edit edit] {{·}} [[Portal talk:Denmark/Selected picture/$year/$weekbegin|discuss]] {{·}} [http://en.wikipedia.org/w/index.php?title=Portal:Denmark/Selected_picture/$year/$weekbegin&action=history history]</span></small>\n";
print "{{Portal:Denmark/Selected picture/$year/$weekbegin}}\n";
print "----\n\n";
$weekbegin++;
}
print $footer;
X
Diese Website benutzt Cookies. Wenn du die Website weiter nutzt, gehe Ich von Deinem Einverständnis aus.OKNeinDatenschutzerklärung