User talk:LeucosticteBot/ChangeWikiaEngine.php: Difference between revisions

Jump to navigation Jump to search
I do not believe - I find out.
(moved in from User talk:Zhuyifei1999)
 
(I do not believe - I find out.)
Line 18: Line 18:


OK, back to reality: http://wikiindex.org/index.php?title=Justice_League_Wiki&diff=prev&oldid=90039 the last entry I corrected. Now on 2009 it was created as "MediaWiki" and I corrected it yesterday. What does this say to us? That the mistake is ages old and You failed to correct it by Your bot in the last run 2012. Is it not? [[User:Manorainjan|Manorainjan]] ([[User talk:Manorainjan|talk]]) 21:57, 26 February 2015 (UTC)
OK, back to reality: http://wikiindex.org/index.php?title=Justice_League_Wiki&diff=prev&oldid=90039 the last entry I corrected. Now on 2009 it was created as "MediaWiki" and I corrected it yesterday. What does this say to us? That the mistake is ages old and You failed to correct it by Your bot in the last run 2012. Is it not? [[User:Manorainjan|Manorainjan]] ([[User talk:Manorainjan|talk]]) 21:57, 26 February 2015 (UTC)
:It was set up to only correct lines that start with |URL, not | URL (with a space). Notice the code says:
:It was set up to only correct lines that start with |URL, not | URL (with a space). Notice the code says:
<pre>if ( $begin = strpos ( $contents, '|URL' ) ) {</pre>
<pre>if ( $begin = strpos ( $contents, '|URL' ) ) {</pre>
[[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 03:32, 27 February 2015 (UTC)
[[User:Leucosticte|Leucosticte]] ([[User talk:Leucosticte|talk]]) 03:32, 27 February 2015 (UTC)
Obviously in the context of the template the leading space(es) is correct.
If You want to configure a script changing only lines "correct" according to Your definition,
than You got to run another script first, that ensures "correct" lines ;-)
What I would do when contemplating to run such a script over 20,000+ pages:
# run a script that simply counts all occurrences of wikia.com/wiki/ by writing the page to a text-file.
# run a script that counts the occurrences of either MediaWiki or Wikia in the engine line of those pages.
# run the actual script to correct the lines.
# run the second script again and check if any occurrences of MediaWiki are left.
Whatever I do, I don't just imagine I did it. I check it. [[User:Manorainjan|Manorainjan]] ([[User talk:Manorainjan|talk]]) 11:13, 27 February 2015 (UTC)
5,933

edits

Navigation menu