User talk:LeucosticteBot/ChangeWikiaEngine.php
Engine Wikia to be set by script?[edit]
There seem to be a good number of wiki pages where the Engine is named a MediaWiki but should be Wikia. I assume it would be rather simple to make a script that tests on the Wiki URL and sets Wikia as Engine when the URL contains Wikia.
At that time one could also delete the wF-Lines, because the wF-URLs are all invalid and so are the values.
What do You think? Manorainjan (talk) 20:46, 25 February 2015 (UTC)
- That's what User:LeucosticteBot used to do. Leucosticte (talk) 07:40, 26 February 2015 (UTC)
When was the last run? Oh, I found it, Nov 2012 more than 2 years ago. Time to repeat. Manorainjan (talk) 11:30, 26 February 2015 (UTC)
- Why are people still adding Wikia wikis and putting the engine as MediaWiki? Leucosticte (talk) 20:51, 26 February 2015 (UTC)
Oh, I forgot, You are perfect, never make mistakes and know all the rules of every house from birth.
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? 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:
if ( $begin = strpos ( $contents, '|URL' ) ) {
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 titles 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. Manorainjan (talk) 11:13, 27 February 2015 (UTC)
- I just noticed, that should be == or === rather than =. Wow. Leucosticte (talk) 11:29, 27 February 2015 (UTC)
And, do You intent to refine that script and run it? Manorainjan (talk) 17:45, 27 February 2015 (UTC)
- I easily could, but Sean isn't around anymore to egg me on. Without his moral support, what's the driving force moving me forward? As they say in the acting profession, What's my motivation? Leucosticte (talk) 21:27, 27 February 2015 (UTC)
If You need moral support, than this is a lost case. Manorainjan (talk) 01:00, 28 February 2015 (UTC)
- That kind of cynical negativity/pessimism isn't helping to encourage me. Leucosticte (talk) 05:10, 28 February 2015 (UTC)
I wasn't even trying to. Manorainjan (talk) 07:09, 28 February 2015 (UTC)
- But you must! Otherwise you'll trigger my fears of abandonment, causing me to become clingy and demanding, or alternatively reject you before I am rejected. Leucosticte (talk) 09:02, 28 February 2015 (UTC)
Not Your co-dependent too. black box recorder - child psychology Manorainjan (talk) 10:48, 28 February 2015 (UTC)
- DON'T LEAVE ME!!! Leucosticte (talk) 11:57, 28 February 2015 (UTC)