Hi Gamepedia users and contributors! Please complete this survey to help us learn how to better meet your needs in the future. We have one for editors and readers. This should only take about 7 minutes!

User talk:Dand0

From Minecraft Wiki
Jump to: navigation, search

Bot setup[edit]

I want to create a bot using Pywikibot (core), but I have problems registering the Gamepedia family.

I use Linux, with Python 3.3.2.

Regards,

Your fellow friend Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 11:02, 10 October 2014 (UTC)

You have to install Python 2. --Dand0 (talk) 12:05, 10 October 2014 (UTC)
I read the codes directly, it was Python 3 styled. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 12:14, 10 October 2014 (UTC)
No assistance required. I tried to register http://www.gamepedia.com for a family that I could use on all Gamepedia wikis, but I was wrong. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 12:20, 10 October 2014 (UTC)
I don't know how you got pywikibot working with Python 3 (if you did got it). Do you still need help, or you've resolved your problems? --Dand0 (talk) 12:27, 10 October 2014 (UTC)
Some scripts are still using Python 2 (I even tried to convert one to 3.x using 2to3 utility, but it didn't work well), but that's still fine. Everything goes smoothly. I have and use Python 2.7.5 (again, I can't update it, the installer says "newest version of Python 2.7/3.3 is already installed" despite 2.7.7 and 3.4 are out). --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 12:35, 10 October 2014 (UTC)
Time to contact the bureaucrat. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 12:50, 10 October 2014 (UTC)
What do you mean? And can I ask you if you've already registered bot account? --Dand0 (talk) 12:59, 10 October 2014 (UTC)
Have you meant, that it is needed to give bot (whose?) bot status? As far as I know, Curse can add or remove users from groups. --Dand0 (talk) 13:08, 10 October 2014 (UTC)

┌──────────────────────────┘

Good idea, if I would not sent an email to Quatroking. Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 13:26, 10 October 2014 (UTC)
Wow, did a bot replied to me once? --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 13:27, 10 October 2014 (UTC)
I again don't understand you. --Dand0 (talk) 14:11, 10 October 2014 (UTC)
I also didn't understood you (maybe read too fast), plus what I've written above is incorrect. Sorry. There's the list of what I have:
  • My bot isn't working.
  • I want Curse staff or a bureaucrat to set a bot flag on my bot.
  • I forgot my bot's password.
  • A bot replied to me (first reply by "you").
--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 14:43, 10 October 2014 (UTC)
  1. What exactly doesn't work?
  2. Recover it?
  3. Can you explain me in Russian how had he replied to you. Through the console?
--Dand0 (talk) 15:22, 10 October 2014 (UTC)
  1. I don't know. I may reset it.
  2. ...
  3. I'll contact Game Widow.
  4. The following quote:

You have to install Python 2.

Dand0Bot in this talk page

.

--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 16:04, 10 October 2014 (UTC)
I understood. If you have any problems, you can ask me. And if everything goes wrong, you can try compat branch, as suggested ObelusPA2 in his talk. --Dand0 (talk) 16:56, 10 October 2014 (UTC)
I'm not fluent in French, but I do have an online translator and a French friend. He's not on the Minecraft Wiki; he's a programmer that made a programming language and IDE for newcomer programmers. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 17:26, 10 October 2014 (UTC)

┌──────────────────────────┘
Only my first message in the conversation was in French, after we spoke in English. --Dand0 (talk) 17:35, 10 October 2014 (UTC)

I wanted to write a message "Guys, this is a French wiki; thus, the language should also be French!" in both languages (to keep consistency), but the "Save page" button was disabled and I wasn't logged in. I once wrote a similar message in a forum. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 17:39, 10 October 2014 (UTC)
Offtop --Dand0 (talk) 18:19, 10 October 2014 (UTC)
Yes. ..I'll abandon my bot for a while, I have more important things going on. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 05:55, 11 October 2014 (UTC)

Rewrite for style[edit]

You may be interested in the following: Minecraft Wiki:Projects/Rewrite for Style

--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 08:28, 15 October 2014 (UTC)

Note: To officially join the project, add your signature to this list. Happy rewriting! --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 14:16, 15 October 2014 (UTC)
OK. And a question: was rewrite Camera correct, should I remove change anyting else or are there any notes on that rewrite? --Dand0 (talk) 14:53, 15 October 2014 (UTC)
Not the best rewrite, but good for a first one. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 14:55, 15 October 2014 (UTC)
If there are missing things, somebody other may take care of that. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 14:57, 15 October 2014 (UTC)
Dand0, if you won't add your signature to the project's member list, I'll remove you from friends list. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:54, 15 October 2014 (UTC)
Ha, why do you want me so much to add my signature there? --Dand0 (talk) 16:03, 15 October 2014 (UTC)
Adding your signature to that list will actually mark you as a member of the project. Do it now and we'll cooperate. NOTE: Add the signature using ~~~, not ~~~~!!! --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 16:08, 15 October 2014 (UTC)
Because of cooperating, OK then. Should I add my signature to the bottom or to the top? --Dand0 (talk) 16:13, 15 October 2014 (UTC)

┌──────────────────────────┘

As noted above the list, add it to the bottom. But, unfortunately, the "cooperating" I mentioned might not take place, but you're still a RfS member, so don't mind. Thanks and sorry for bugging you. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 16:17, 15 October 2014 (UTC)
No problem. --Dand0 (talk) 16:25, 15 October 2014 (UTC)
I don't always add the category myself, because I'm not always sure does what I've rewrote comply.
--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 12:22, 16 October 2014 (UTC)
P.S. I notified JEC6789 about the project, I'm awaiting his/her reply.

Quotation marks[edit]

Just to clear up a bit of confusion, English uses "Quote" for quotation marks rather than «Quote» KnightMiner (t|c) 02:53, 16 October 2014 (UTC)

Wikificator[edit]

The Wikificator I've copied from your common.js to my common.js doesn't work - the icon doesn't pop out.

For interest, there is also code for a summary edit counter.

--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:25, 17 October 2014 (UTC)

For me it does appear in the "Advanced" section. --Dand0 (talk) 15:32, 17 October 2014 (UTC)
Ah, might need to clean up the cache. Sorry. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:35, 17 October 2014 (UTC)
Still not working. I may fix up the code, even if I barely know how to program in JavaScript. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:37, 17 October 2014 (UTC)
I don't know, but there is no Wikificator in English Wikipedia, maybe that's why it doesn't work. --Dand0 (talk) 15:48, 17 October 2014 (UTC)
I accidentally not copied entire code. Sorry! --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:49, 17 October 2014 (UTC)

I don't know, but there is no Wikificator in English Wikipedia, maybe that's why it doesn't work.

Dand0
Then, why add it there? --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 15:56, 17 October 2014 (UTC)
I thought that there is one. You can also port it from Ivan r's or Wikipedia's one. --Dand0 (talk) 16:11, 17 October 2014 (UTC)
Hint: You can avoid an external link to Russian Wikipedia like so: [[ruwiki:MediaWiki:Wikificator.js]]. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 16:22, 17 October 2014 (UTC)

┌──────────────────────────┘
Try yourself first. --Dand0 (talk) 16:28, 17 October 2014 (UTC)

The English wiki does not have this interwiki prefix. wikipedia:ru:Название статьи can be used instead. --GreenStone (talk) 16:46, 17 October 2014 (UTC)
Ah, okay. --User:Naista2002 via JARVISTheBot (talk) 17:06, 17 October 2014 (UTC)

Bot interwiki managing failure[edit]

My bot's interwiki script fails with:

Traceback (most recent call last):
  File "pwb.py", line 164, in <module>
    run_python_file(fn, argv, argvu)
  File "pwb.py", line 69, in run_python_file
    exec(compile(source, filename, "exec"), main_mod.__dict__)
  File "scripts/interwiki.py", line 2598, in <module>
    main()
  File "scripts/interwiki.py", line 2573, in main
    bot.run()
  File "scripts/interwiki.py", line 2325, in run
    self.queryStep()
  File "scripts/interwiki.py", line 2298, in queryStep
    self.oneQuery()
  File "scripts/interwiki.py", line 2294, in oneQuery
    subject.batchLoaded(self)
  File "scripts/interwiki.py", line 1379, in batchLoaded
    (skip, alternativePage) = self.disambigMismatch(page, counter)
  File "scripts/interwiki.py", line 1139, in disambigMismatch
    if self.originPage.isDisambig() and not page.isDisambig():
  File "/home/nikita/WikiBots/MinecraftGamepedia/pywikibot/page.py", line 726, in isDisambig
    'disambiguationspage').split(':', 1)[1]
  File "/home/nikita/WikiBots/MinecraftGamepedia/pywikibot/site.py", line 1739, in mediawiki_message
    return self.mediawiki_messages([key])[key]
  File "/home/nikita/WikiBots/MinecraftGamepedia/pywikibot/site.py", line 1727, in mediawiki_messages
    % locals())
KeyError: u"Site mcgamepedia:en has no message 'disambiguationspage'"

--Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 07:01, 18 October 2014 (UTC)

Dand0? --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 09:05, 18 October 2014 (UTC)
Change the line 1379 in the script "interwiki" from
(skip, alternativePage) = self.disambigMismatch(page, counter)
to
skip = False
--Dand0 (talk) 11:34, 18 October 2014 (UTC)
Special:Disambiguations – which used that message – was split out into an extension in MW1.22, which we don't have installed. --Dand0 (talk) 11:36, 18 October 2014 (UTC)
Okay. As of now, your patch will be sufficient (I've commented out the old statement just in case). Game widow, Majr? --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 11:39, 18 October 2014 (UTC)
I had the same problem and this worked for me. Why do you need Majr or Game Widow –Preceding unsigned comment was added by Dand0 (talkcontribs) at 11:44, 18 October 2014‎ (UTC). Please sign your posts with ~~~~
To make sure the disambiguations extension is here. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 11:48, 18 October 2014 (UTC)
Majr said, that it is not installed in his talk. --Dand0 (talk) 11:50, 18 October 2014 (UTC)
Since we don't have many disambiguation pages, I don't think the extension is worth installing. I would recommend you file a bug with the bot's developers. There's no reason it should require that extension. MajrTalk
Contribs
03:25, 19 October 2014 (UTC)

Bot flag[edit]

Please set the bot flag on your bot's edits so they don't spam up the recent changes. MajrTalk
Contribs
03:50, 20 October 2014 (UTC)

I don't know why aren't bot's edit marked as bot's in English wiki, because in the Russian one they are marked as bot's. --Dand0 (talk) 04:46, 20 October 2014 (UTC)
It looks like Pywikibot only marks its edits on the wiki its action is launched in. I may need to contact the developers. --Naista2002Grid Book and Quill.png Grid Iron Pickaxe.png 06:42, 23 October 2014 (UTC)
As far as I know, you have to request bot status in every single Wiki. A bureaucrat has to change your user group, see here. In the German Wiki, our bureaucrat already did that for you, see here. | violine1101(Talk) 16:59, 10 November 2014 (UTC)
That's unnecessary unless Dand0 knows German, which is unlikely. --Naista2002Talk
Contribs
17:01, 10 November 2014 (UTC)
But his bot edits the German wiki, too. I just wanted to let you know that a bureaucrat has to do this, and it's not a bug in Pywikibot. | violine1101(Talk) 17:11, 10 November 2014 (UTC)
Thanks, violine1101. Naista2002, as my bot is an interwiki bot, he should correct interwiki links on all wikis, so the bot flag is needed. dand0 (talk) 06:25, 11 November 2014 (UTC)
(I would refer to bots as "it") IdefixBot recently resumed its service, and interwiki management isn't a main goal for my bot. --Naista2002Talk
Contribs
07:40, 11 November 2014 (UTC)

Sandbox[edit]

You can create a sandbox of your own to test things. Also, afterwards, you can use my new NickTalkSandbox template to create a talk page sandbox. Thanks! --Naista2002Talk
Contribs
17:16, 27 October 2014 (UTC)