User:Keller999/projects/gamepageupdate: Difference between revisions

m
dolphinpageupdate.pl v.1.1.01 -- makes |tester= optional
(dolphinpageupdate.pl v1.1 -- getting pretty stable now)
m (dolphinpageupdate.pl v.1.1.01 -- makes |tester= optional)
Line 105: Line 105:
* Only keep all existing Infobox params if they're set
* Only keep all existing Infobox params if they're set
* Handle and remove 'citation needed'
* Handle and remove 'citation needed'
'''''1.1.01'''''
* Makes |tester= optional, entries are still purged if the other params are missing (is this desirable or not?)


<pre>
<pre>
Line 122: Line 124:
system('clear');
system('clear');


print "*********************************\n";
print "************************************\n";
print "* Dolphin Wiki Page Update v1.1 *\n";
print "* Dolphin Wiki Page Update v1.1.01 *\n";
print "*********************************\n\n";
print "************************************\n\n";


print "First, copy and paste the game's Wikipedia article from the top to wherever you'd like to end the new description.  Zero input is fine.  Enter \'-1\' to indicate the end, or -2 to just get a blank template.\n\n";
print "First, copy and paste the game's Wikipedia article from the top to wherever you'd like to end the new description.  Zero input is fine.  Enter \'-1\' to indicate the end, or -2 to just get a blank template.\n\n";
Line 146: Line 148:
system('clear');
system('clear');


print "*********************************\n";
print "************************************\n";
print "* Dolphin Wiki Page Update v1.1 *\n";
print "* Dolphin Wiki Page Update v1.1.01 *\n";
print "*********************************\n\n";
print "************************************\n\n";


print "Now, copy and paste the existing Dolphin wiki article to import existing information.  Zero input is fine.  Enter \'-1\' to indicate the end.\n\n";
print "Now, copy and paste the existing Dolphin wiki article to import existing information.  Zero input is fine.  Enter \'-1\' to indicate the end.\n\n";
Line 237: Line 239:
} # Anything besides filled-out compat reports are not needed, the rest will be regenerated
} # Anything besides filled-out compat reports are not needed, the rest will be regenerated
} elsif ($currentSection eq "testing") {
} elsif ($currentSection eq "testing") {
if ($newLine =~ /^\{\{.+?\|revision\=\s*(.*?)\s*\|os\=\s*(.*?)\s*\|cpu\=\s*(.*?)\s*\|gpu\=\s*(.*?)\s*\|result\=\s*(.*?)\s*\|tester\=\s*(.*?)\s*?\}\}/i) {
if ($newLine =~ /^\{\{.+?\|revision\=\s*(.*?)\s*\|os\=\s*(.*?)\s*\|cpu\=\s*(.*?)\s*\|gpu\=\s*(.*?)\s*\|result\=\s*(.*?)\s*(?:\|tester\=\s*(.*?)\s*?){0,1}\}\}/i) {
# Matches test reports with all variables set (tester is optional) and dissects for reassembly (muahahaha!)
# Matches test reports with all variables set (tester is optional) and dissects for reassembly (muahahaha!)
$testResult = "\{\{testing\/entry\|revision\=$1\|OS\=$2\|CPU\=$3\|GPU\=$4\|result\=$5\|tester\=".(($6)?"$6":"")."\}\}";
$testResult = "\{\{testing\/entry\|revision\=$1\|OS\=$2\|CPU\=$3\|GPU\=$4\|result\=$5\|tester\=".(($6)?"$6":"")."\}\}";
1,411

edits