Content deleted Content added
Updating published sources: POTDPageCreator: * Update to handle multiple pictures situations, like Template:POTD/2017-07-01. |
Updating published sources: POTDPageCreator: * Supply {{para|date}} when creating subtemplates. |
||
Line 79:
next if $res2;
unless ( $outtxt2=~s/^\s*\Q{{POTD {{{1|{{{style|default}}}}}}\E\s*\n/{{subst:POTD row|date=$date\n/ ) {
$api->warn( "$srcpage2 doesn't begin with expected wikitext\n$outtxt2" );
$api->whine( "[[$srcpage2]] has unexpected content", "While attempting to create [[$page]], I found that [[$srcpage2]] does not begin with <code><nowiki>{{POTD {{{1|{{{style|default}}}}}}</nowiki></code>. Please fix it, or create [[$page]] and its subpages manually.", Pagename => $talk );
|