User:AnomieBOT/source/tasks/SourceUploader.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: TFATitleSubpageCreator: * Move to AnomieBOT II * Approved SourceUploader: * Add a new bit of metadata, with a new column in the output. All: * Add the new metadata field.
AnomieBOT (talk | contribs)
Updating published sources: SourceUploader: * Adjust formatting
Line 162:
$x ="<noinclude>\n";
$x.="{| class=\"wikitable\"\n";
$x.="! BotAccount !! Task !! Disable !! {{tlx|bots}} !! Status !! Description\n";
$x.="</noinclude>\n";
$x.="|- valign=\"top\"\n";
Line 168:
my $mainbot="\x02BOT\x03";
my $bot=$metadata{'bot'} // $mainbot;
$x.="|align=\"center\"| [[User:$bot|$bot]]\n";
$x.="|align=\"center\"| [[User:$mainbot/source$pp|$task]]\n";
if(exists($metadata{'shutoff'}) && $metadata{'shutoff'} eq 'false'){
Line 241:
if(@links){
$tasklist.="{| class=\"wikitable sortable\"\n";
$tasklist.="! BotAccount !! Task !! Disable !! {{tlx|bots}} !! ".(($n==1 || $n==2)?'Approval':'Status')." !! Description\n";
$tasklist.=join("\n", map { substr($_,11) } @links)."\n";
$tasklist.="|}\n";