User:Yair rand/FindRedirectsForAliases.js

Autopatroller

edit

Hello, Reza1615! I am just letting you know that I have added the autopatroller flag to your account, as you are a trusted user on Wikidata. If you have any questions or concerns, please don't hesitate to contact me or leave a message at the Project chat. Thanks, Bináris (talk) 15:11, 17 February 2013 (UTC)Reply

Hi, thank you. I hope I can help this projectReza1615 (talk) 15:13, 17 February 2013 (UTC)Reply

Stop your bot

edit

Please stop your bot now, there is some mistakes. --Stryn (talk) 11:01, 21 February 2013 (UTC)Reply

Ok I stopped my bot. please tell me what was mistakes?Reza1615 (talk) 11:02, 21 February 2013 (UTC)Reply
Looks like it don't handle interwiki conflicts, see also Wikidata:Requests for permissions/Bot/Rezabot. --Stryn (talk) 11:04, 21 February 2013 (UTC)Reply

اگر فعال هستید!

edit

درود اگر فعال هستید در بحث‌های قهوه‌خانه شرکت کنید تا بخش فارسی زبان این پروژه فعال شود.Mojdeh.h (talk) 14:02, 24 February 2013 (UTC)Reply

Template:Direction

edit

Hey there Reza. Hope you don't mind, but I simplified your template using something that Bene*, Merlissimo, and I put together a while back. The template I used to simplify it, {{LangDirSwitch}}, is based on MediaWiki:rtl. If you see anything missing in here, feel free to add it. Everything you mentioned in your template documentation is there except for am, dz, and ha... I looked everywhere, and I couldn't find anything that showed they were rtl (though I know that bug said they did)... if you know more on the topic, though, I'll defer to your judgment. — PinkAmpers&(Je vous invite à me parler) 15:02, 2 March 2013 (UTC)Reply

Thanks, that is great and Ok. I checked am, dz, ha wiki and there is ltr! so we should mention on that bug :)▬ Reza1615 / T 15:33, 2 March 2013 (UTC)Reply

Re Wikidata talk:Database reports/Popular properties

edit

Sorry I didn't have that page on my watchlist. I have responded to your comment there. Thanks, Legoktm (talk) 19:38, 2 March 2013 (UTC)Reply

your welcome, I will answer there▬ Reza1615 / T 09:09, 3 March 2013 (UTC)Reply

سوال

edit

سلام رضا جان. چند روز پیش ایمیلی مفصل برایت زدم که چگونگی فعالیت در اینجا را خواسته بودم ولی جوابی ندادی. حالا میخوام بپرسم چگونه به صفحه یک آیتم (در حالت انگلیسی بودن محیط) می توان پیوند آن آیتم به نسخه ویکی فارسی مقاله را ایجاد کرد؟ با تشکر.Gire 3pich2005 (talk) 17:54, 3 March 2013 (UTC)Reply

سلام اون بار هم گفتم چند وقت پیش که ایملت ویروس داشت رفت جزو اسپم لیست حالا هر کاری می‌کنم باز هم همانجاست :) با یک ایمیل دیگر برایم بفرست. در مورد آیتم یک راهنما در صفحه‌ات می گذارم▬ Reza1615 / T 18:41, 3 March 2013 (UTC)Reply

Re: userinfo.js

edit

Did you mean that it isn't working properly on Wikidata, didn't you? However, I'm going to completely rewrite it (using jQuery, and standard browser techniques) to reduce code and ensure compatibility. --Ricordisamoa 18:38, 4 March 2013 (UTC)Reply

yes! I mean it doesn't show the statistics if you rewrite it. I will be appreciated :)▬ Reza1615 / T 18:43, 4 March 2013 (UTC)Reply
I've found the problem! It adds all info into an element called "siteSub", which is in fact hidden by default on Wikidata. One can show it by calling
$("#siteSub").show()
Try it with your browser's console! anyway, I'm going to rewrite it. --Ricordisamoa 19:01, 4 March 2013 (UTC)Reply
\o/ thank you. now it needs localization can you help me ? code. if localization is done we can use it as a gadget. ▬ Reza1615 / T 19:09, 4 March 2013 (UTC)Reply
In these moments I'm rewriting it, I think it'll weigh much less! Later on, we can add l10n. --Ricordisamoa 19:46, 4 March 2013 (UTC)Reply
So I wait for your code :)▬ Reza1615 / T 19:47, 4 March 2013 (UTC)Reply

Re: DeletionHelper

edit

Well, it wouldn't be very easy, give me some time. --Ricordisamoa 16:12, 5 March 2013 (UTC)Reply

Also, I don't see urgency; however, I'll also add the ability to view whether an item's sitelink has been moved elsewhere. :) --Ricordisamoa 16:29, 5 March 2013 (UTC)Reply
seeing the movements is good :) when you have time please add it▬ Reza1615 / T 16:34, 5 March 2013 (UTC)Reply

Re: merge

edit

Hello, there! In this case, I don't see of new idea for merged it, lol!. I'm sorry for late answer because I'm most very busy in the real world this week.   -- Wagino 20100516 (talk) 19:08, 5 March 2013 (UTC)Reply

Farsi question

edit

Hey Reza. Doostdar (talkcontribsnew itemsnew lexemesSULBlock logUser rights logUser rightsxtools) looks fine to autopatrol, but I don't speak Farsi, so I thought I'd ask your opinion. See any red flags? — PinkAmpers&(Je vous invite à me parler) 17:04, 6 March 2013 (UTC)Reply

Hi in my opinion he is ok! and he adds correct labels and aliases▬ Reza1615 / T 17:07, 6 March 2013 (UTC)Reply

Help

edit

Hi dear Reza

Kindly could you please help me here. I can not understand what the problem--عباس 10:42, 7 March 2013 (UTC) Reply

Special pages

edit

Hi, I think that we should not add special pages with interwiki links here, like you did with Q6019955. --Stryn (talk) 12:35, 7 March 2013 (UTC)Reply

Hi, till now unfortunately we don't have any rule for this! and because of that I wrote Wikidata:Project_chat#Inclusion of non-article pagesReza1615 / T 12:39, 7 March 2013 (UTC)Reply

User:Reza1615/Simple Python codes

edit

Could you change the code for updating item: - use list of articles - change property ? JAn Dudík (talk) 13:08, 7 March 2013 (UTC)Reply

I wrote a new_interwiki.py bot which can work on items. it can solve your problem for items.▬ Reza1615 / T 13:12, 7 March 2013 (UTC)Reply

new_interwiki.py

edit

سلام رضا جان

  1. آیا در اينجا نياز هست كه داخل كد يوزرنيم وپسوورد رو وارد کنیم؟
  2. وقتی این بوت رو روشن می کنم میگه گه ربات شما در ویکیدیتا بسته شده است
  3. آیا اگر برای اجرای این بوت برای عربی درخواست بدیم موافقت می کنن؟

با سپاس--عباس 14:28, 7 March 2013 (UTC) سلام Reply

  1. نه
  2. رباتت درست لاگین نمی‌شود فایل passfile را ساختی؟
  3. آره مجوز می‌دهند ▬ Reza1615 / T 14:32, 7 March 2013 (UTC)Reply

متاسفانه با خطاي زير مواجه ميشم.--عباس 14:52, 7 March 2013 (UTC) Reply

User:Reza1615/BOT#running_bot باید مشکلت را حل کنه! ▬ Reza1615 / T 14:58, 7 March 2013 (UTC)Reply

رضا جان مشكل لوگین حل شد ولی پس از فراخوانی صفحات خطای زیر رو میده. من از اینکه وقتتو میگیرم پوزش می خوام--عباس 15:15, 7 March 2013 (UTC) Reply

Traceback (most recent call last):

 File "new_interwiki.py", line 530, in <module>
   main()
 File "new_interwiki.py", line 525, in main
   run(preloadingGen,hasnew,Remove_old_interwiki)
 File "new_interwiki.py", line 365, in run
   my_data = wikipedia.DataPage(my_page)

AttributeError: 'module' object has no attribute 'DataPage'

باید svn update را بزنی تا پای‌ویکی‌پدیا به روز شود همچنین باید به ربات بگویی کدام صفحه را می خواهی ویرایش کنی مثلا بنویس

python new_interwiki.py -strat:!

خودش همه ویکی را اسکن می‌کند▬ Reza1615 / T 15:25, 7 March 2013 (UTC)Reply

أقا دست شما درد نكناد. در اينجا براي ربات درخواست مجوز دادم.--عباس 16:02, 7 March 2013 (UTC) Reply

Traceback

edit

Hi Reza, when i run new_interwiki.py, get the following traceback

  File "new_interwiki.py", line 18, in <module>
    import wikidata
  File "/home/shuaib/pywikipedia/wikidata.py", line 10, in <module>
    Config = Config('/home/shuaib/pywikipedia/config_b.py')
  File "/home/shuaib/pywikipedia/configReader.py", line 10, in __init__
    execfile(self.config2File, {}, self.config2)
  File "/home/shuaib/pywikipedia/config_b.py", line 10, in <module>
    password_fa = open(wikipedia.config.datafilepath(config.password_file), 'r')
  File "/home/shuaib/pywikipedia/config.py", line 544, in datafilepath
    return makepath(os.path.join(base_dir, *filename))
  File "/opt/ts/python/2.7/lib/python2.7/posixpath.py", line 66, in join
    if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'

what should I do? Muhammad Shuaib (talk) 17:53, 7 March 2013 (UTC)Reply

be sure that you done User:Reza1615/BOT#running_bot steps▬ Reza1615 / T 17:58, 7 March 2013 (UTC)Reply
in config_b.py you didn't set correctly your path▬ Reza1615 / T 17:59, 7 March 2013 (UTC)Reply
I followed all steps mentioned in that page correctly, and I put config_b.py here. Please check it out. Thanks. Muhammad Shuaib (talk) 18:15, 7 March 2013 (UTC)Reply
did you make file passfile?▬ Reza1615 / T 18:17, 7 March 2013 (UTC)Reply
Yes :) Muhammad Shuaib (talk) 18:19, 7 March 2013 (UTC)Reply
type
cd pywikipedia

after that run your bot▬ Reza1615 / T 18:20, 7 March 2013 (UTC)Reply

I run this code in this method, but did not run. Muhammad Shuaib (talk) 18:26, 7 March 2013 (UTC)Reply
:) I don't know it works for me and some of my friends you should check your pywikipedia and your toolserver account ▬ Reza1615 / T 18:29, 7 March 2013 (UTC)Reply
I changed your config_b.py run with this file and tell me the error▬ Reza1615 / T 18:31, 7 March 2013 (UTC)Reply
Now its running well. Thanks a lott :) Muhammad Shuaib (talk) 18:39, 7 March 2013 (UTC)Reply

when i faced this problem i changed "config_b.py" to "config b.py" in line 10 in wikdata.py to solve the problem.--عباس 18:36, 7 March 2013 (UTC) Reply

I have same problem and I don't know how to correcxly set paths on windows, when I have bot (and also all scripts) in E:\Pywikipedia.

E:\Pywikipedia>new_interwiki.py -remove -cat:Dobříš
Traceback (most recent call last):
  File "E:\Pywikipedia\new_interwiki.py", line 19, in <module>
    import wikidata
  File "E:\Pywikipedia\wikidata.py", line 10, in <module>
    Config = Config('E:\Pywikipedia\config_b.py')
  File "E:\Pywikipedia\configReader.py", line 10, in __init__
    execfile(self.config2File, {}, self.config2)
  File "E:\Pywikipedia\config_b.py", line 10, in <module>
    password_fa = open(wikipedia.config.datafilepath(config.password_file), 'r')

  File "E:\Pywikipedia\config.py", line 544, in datafilepath
    return makepath(os.path.join(base_dir, *filename))
  File "C:\Python27\lib\ntpath.py", line 73, in join
    elif isabs(b):
  File "C:\Python27\lib\ntpath.py", line 57, in isabs
    s = splitdrive(s)[1]
  File "C:\Python27\lib\ntpath.py", line 125, in splitdrive
    if p[1:2] == ':':
TypeError: 'NoneType' object is not subscriptable

JAn Dudík (talk) 21:25, 7 March 2013 (UTC)Reply

I made new try, deleted all and followed manual step-by step. Now the traceback is:
E:\Pywikipedia>new_interwiki.py plav
Logging in to wikidata:wikidata as JAnDbot via API.
Should be logged in now
Logging in to wikipedia:cs as JAnDbot via API.
Should be logged in now
Traceback (most recent call last):
  File "E:\Pywikipedia\pagegenerators.py", line 1211, in __iter__
    for page in self.wrapped_gen:
TypeError: 'NoneType' object is not iterable
'NoneType' object is not iterable

JAn Dudík (talk) 21:25, 7 March 2013 (UTC)Reply

IP block

edit

My IP has been blocked on wikidata. why? Muhammad Shuaib (talk) 18:47, 7 March 2013 (UTC)Reply

it is your tool server IP because your bot should sign in to wikidata. after setting your user_config.py as I said it should work▬ Reza1615 / T 18:49, 7 March 2013 (UTC)Reply
after setting user-config, did not work also :( Muhammad Shuaib (talk) 18:55, 7 March 2013 (UTC)Reply
write error completely with your command▬ Reza1615 / T 19:02, 7 March 2013 (UTC)Reply
I put the error text here Muhammad Shuaib (talk) 19:15, 7 March 2013 (UTC)Reply

your user_config.py should be like this:

family = 'wikipedia'
mylang = 'ur'
password_file= 'passfile'
usernames['wikipedia']['ur'] = u'Shuaib-bot'
usernames['wikidata']['wikidata'] = u'Shuaib-bot'

it will work▬ Reza1615 / T 19:27, 7 March 2013 (UTC)Reply

My user config is as pasted [[here, but did not work. Muhammad Shuaib (talk) 19:42, 7 March 2013 (UTC)Reply
I changed it▬ Reza1615 / T 19:44, 7 March 2013 (UTC)Reply
dosent run, same error. Muhammad Shuaib (talk) 19:49, 7 March 2013 (UTC)Reply
in my opinion you wrote your password in wrong if it is not in numbers please change your password to numbers.▬ Reza1615 / T 19:57, 7 March 2013 (UTC)Reply

Alas!! Having changed password to number get the same error also. Muhammad Shuaib (talk) 20:06, 7 March 2013 (UTC) typeReply

python login.py -all

do you have error ?▬ Reza1615 / T 20:18, 7 March 2013 (UTC)Reply

Yeah! Result of login.py is "already logged in to wikidata", but when I run new_interwiki get the same error :( Muhammad Shuaib (talk) 20:25, 7 March 2013 (UTC)Reply
did you change line 100 in new_interwiki.py?▬ Reza1615 / T 20:32, 7 March 2013 (UTC)Reply
Yes brother. Muhammad Shuaib (talk) 20:35, 7 March 2013 (UTC)Reply
use User:Reza1615/BOT/new interwiki2.pyReza1615 / T 20:40, 7 March 2013 (UTC)Reply
Also got error, error text. Muhammad Shuaib (talk) 20:53, 7 March 2013 (UTC)Reply
Are you using tool server IP ? if not please download pywikipedia on your pc and run it with your ip. by sure your ip is not blocked because you are editing here :) ▬ Reza1615 / T 21:00, 7 March 2013 (UTC)Reply
Yes I run that code on toolserver. btw the test to run from pc has also been failed and got error :( Muhammad Shuaib (talk) 21:33, 7 March 2013 (UTC)Reply

Brother! Is there any solution of this problem? Muhammad Shuaib (talk) 10:58, 8 March 2013 (UTC)Reply

I don't know why you have this problem :( ▬ Reza1615 / T 11:03, 8 March 2013 (UTC)Reply
On pc got the traceback, API Url needs to be defined in config. Muhammad Shuaib (talk) 11:06, 8 March 2013 (UTC)Reply

درخواست حذف

edit

سلام، Q5819736 با Q4663057 تکراری است لطفاً زحمت ادغامش را بکشید. --Z 14:13, 8 March 2013 (UTC)Reply

سلام اینجا ادغام تاریخچه ندارند باید یکی را خالی کنید و پیوندهایش را در دیگری بریزید و با دکمهٔ سمت راست نوار جستجو برای آنکه خالیش ده درخواست حذف دهید مدیران خودشان آن مورد خالی را حذف می‌کنند فقط در درخواست حذف باید مورد تکراری را بنویسید تا بدانند چه آیتم را کجا بردید. همین! اینطوری کار خیلی راحت هست کاش در ویکی‌فا هم ادفام تاریخچه نبود▬ Reza1615 / T 14:40, 8 March 2013 (UTC)Reply

Question

edit
Hi Reza
I want to run my bot GanimalBot on Wikidata to import pages form kuwiki but the bot can't log in on Meta. I also used your code on your user pageIs that correct?:
# -*- coding: utf-8  -*-
family = 'wikipedia'
mylang = 'ku'
password_file= 'passfile'
usernames['wikipedia']['ku'] = u'GanimalBot'
usernames['wikidata']['wikidata'] = u'GanimalBot'
The result is: KeyError='Wikidata'-

-thanks and best regards--George Animal (talk) 12:42, 9 March 2013 (UTC)Reply

yes it is correct! please write the complete error text here▬ Reza1615 / T 14:14, 9 March 2013 (UTC)Reply

C:\Users\someone\Desktop\pywikipedia>python new_interwiki.py -start:AB -remove
Traceback (most recent call last):
  File "login.py", line 58, in <module>
    import re, os, query
  File "C:\Users\someone\Desktop\pywikipedia\query.py", line 29, in <module>
    import wikipedia as pywikibot
  File "C:\Users\someone\Desktop\pywikipedia\wikipedia.py", line 142, in <module>

    from pywikibot import *
  File "C:\Users\someone\Desktop\pywikipedia\pywikibot\__init__.py", line 15, in
<module>
    from exceptions import *
  File "C:\Users\someone\Desktop\pywikipedia\pywikibot\exceptions.py", line 13, i
n <module>
    import config
  File "C:\Users\someone\Desktop\pywikipedia\config.py", line 582, in <module>
    execfile(_filename)
  File "C:\Users\someone\Desktop\pywikipedia\user-config.py", line 6, in <module>

    usernames['wikidata']['wikidata'] = u'GanimalBot'
KeyError: 'wikidata'
here is the error text.thanks for help--George Animal (talk) 14:47, 9 March 2013 (UTC)Reply
did you instal pywikipedia? and did you update it?▬ Reza1615 / T 15:06, 9 March 2013 (UTC)Reply
Hi ,
I have the version 2.7.3 of python.Pywikipedia was installed on my PC.George Animal (talk) 15:55, 9 March 2013 (UTC)Reply
It doesn't work.Can your bot import pages from kuwiki?Thanks--George Animal (talk) 16:39, 9 March 2013 (UTC)Reply
for bot you should use linux systems or toolserevr account becuse for wikidows it needs many customizations. now I am importing fa.wiki after that I should import ckb.wiki after that i can work on your wiki (my acount has limitation and i can not work on many wiki at the same time :( ▬ Reza1615 / T 16:43, 9 March 2013 (UTC)Reply

Bot runs

edit

Eventually my bot has run on wikidata, see test edits. I have updated all relevent codes, Now status is that, code makes some edits, then prompts the same erorr as mentioned above "Your account or IP is blocked on wikidata". Why? Muhammad Shuaib (talk) 15:07, 9 March 2013 (UTC)Reply

I don't know when you could edit with your bot how it can be blocked !▬ Reza1615 / T 15:11, 9 March 2013 (UTC)Reply
:) Do you help me to correct the code of مقالہ ہائے حیاتی? I got traceback. Muhammad Shuaib (talk) 15:15, 9 March 2013 (UTC)Reply
Now I am wroking on wikidata code. may be in future :( ▬ Reza1615 / T 15:17, 9 March 2013 (UTC)Reply
Thanks :) Muhammad Shuaib (talk) 15:20, 9 March 2013 (UTC)Reply
I requested to get bot flag here, but it dosent appear on this page. Muhammad Shuaib (talk) 15:36, 9 March 2013 (UTC)Reply

Query

edit

What would be a toolserver query for users by pages created in all namespaces? Muhammad Shuaib (talk) 18:11, 9 March 2013 (UTC)Reply

Query

edit

I want to use the gadget User:Yair rand/FindRedirectsForAliases.js in English Wikipedia and I copied the code here en:User:Vivaelcelta/common.js, but it doesn't work. What am I doing wrong? --Vivaelcelta (talk) 20:40, 9 March 2013 (UTC)Reply

you should Check the gadget "FindRedirectsForAliases: Adds a "Find redirects" button in a submenu next to the "Watch" button that, when clicked, displays a list of Wikipedia redirects and allows the user to select some of them to add as aliases." in your preferences in wikidata not en.wiki :) ▬ Reza1615 / T 20:43, 9 March 2013 (UTC)Reply
Sorry, I have confused, I want to use User:Yair_rand/checksitelinks.js. --Vivaelcelta (talk) 20:46, 9 March 2013 (UTC)Reply
now it is correct when you are in edit mode it will add a label near search box to remove interwikis▬ Reza1615 / T 20:53, 9 March 2013 (UTC)Reply
Thanks, I thought it work in see mode. --Vivaelcelta (talk) 20:57, 9 March 2013 (UTC)Reply

آی پی

edit

سلام حاجی این ویرایش چیه؟ منظورم اینه که درست هست یا خیر؟--عباس 09:38, 10 March 2013 (UTC) Reply

salam are doroste▬ Reza1615 / T 09:41, 10 March 2013 (UTC)Reply

نسخه جديد ارور داره.skip_new معرفي نشده است.عباس 10:05, 10 March 2013 (UTC) Reply

NameError: global name 'skip_new' is not defined

  DoneReza1615 / T 10:11, 10 March 2013 (UTC)Reply

User:Reza1615/BOT/new interwiki.py

edit

I barely glanced at this script but there are some serious flaws with it.

  1. You should use site.dbName() rather than trying to manually construct the name.
  2. remove_old_IW will not work. It removes anything with a 2-3 letter prefix, including "WP:Page", and will miss things like "be-x-old". There is already a function in pywikipedia standard lib that does this perfectly, I don't know why you're rewriting it.
  3. Why are you manually querying with templatequery? Why not use the default function.
  4. Same with Check_Page_Exists, redirect_find.
  5. get_interwikis uses the API, which cannot tell whether the link is from Wikidata or locally. This is the biggest problem.

Sorry if this comes off as harsh, but these are serious problems that will cause even bigger ones the more people reuse the script. Legoktm (talk) 02:48, 11 March 2013 (UTC)Reply

Hi, thank you for your time and your comment. I answer your questions by the number
  1. I didn't know about this function because according to project chat I thought pywikipedia has bug with prefixes which have - in their name but now code doesn't have any problem with them .thanks for your recommend :)
  2. It doesn't remove "WP:Page" because of line 85. it checks prefix if it is in database dictionary after that it will remove Also it can remove correctly be-x-old or similar prefixes here or here or you can check my bots contributes here. I didn't use pywikipedia function because I didn't want to remove every interwiki. I wanted to remove only which are existed in wikidata or which are their interwiki's changed in wikidata but existed (e.g. en:page1 existed in article and en:page2 existed in wikidata so en.wiki has interwiki in wikidata and my bot will remove en:page1 from article because it is bad link or conflict.) like: here
  3. for templatequery I had these queries so I used it. but for Check_Page_Exists and redirect_find I had bug from pywikipedia and it cause error so I used mine which are tested before in many codes and they are OK. (If I remembered I will report in soursefourge)
  4. for interwikis in my code I didn't care the place where they stored because in many cases My bot only added labels which are not in fa.wiki interwikis! it means bot checks all interwikis (locale and repository) if they don't have label it will add (if they didn't have conflict and after Bot's edits they are existed in the item). e.g. this which is other bots didn't add label!

before publishing this code It had more that 17000 edits in wikidata and fa.wiki and I checked most of it's edits. writing this code and debugging takes more than hundred times. this code also had possibility to guess category interwiki name and template interiki name which are in English. I removed them form this code because they were useful only for fa.wiki.thank you for your time.▬ Reza1615 / T 08:06, 11 March 2013 (UTC)Reply

Mistake

edit

In this page MediaWiki:Gadget-MainLangFirst, in the phrase "... on the top. for second..." there is a lowercase word after full stop (period). I think the word "top" has to be capitalized. --Vivaelcelta (talk) 08:27, 11 March 2013 (UTC)Reply

  DoneReza1615 / T 08:32, 11 March 2013 (UTC)Reply

Update Persian translation

edit

Please translate into Persian this "'close': 'Close'" phrase in MediaWiki:Gadget-RequestDeletion.js. --Vivaelcelta (talk) 09:04, 11 March 2013 (UTC)Reply

thanks   DoneReza1615 / T 09:06, 11 March 2013 (UTC)Reply

Query

edit

Where do I translate Template:User sandbox, in Template:User sandbox with {{LangSwitch}} or in Template:User sandbox/es?

in my opinion we should change Template:User sandbox to use {{LangSwitch}}Reza1615 / T 11:53, 11 March 2013 (UTC)Reply
Now you can use Template:User sandbox/es for translation ▬ Reza1615 / T 12:30, 11 March 2013 (UTC)Reply

MediaWiki:Gadget-mySandbox.js

edit

In Persian translation, you can create Template:User_sandbox/preload/fa, like I have created Template:User_sandbox/preload/es, and change

editintroPagename: 'Template:User_sandbox/preload'

by

editintroPagename: 'Template:User_sandbox/preload/fa'

--Vivaelcelta (talk) 12:55, 11 March 2013 (UTC)Reply

thanks I will do it ▬ Reza1615 / T 14:45, 11 March 2013 (UTC)Reply

MainLangFirst/ur

edit

Please put the urdu translation on relevant message page. --Muhammad Shuaib (talk) 13:11, 11 March 2013 (UTC)Reply

  DoneReza1615 / T 14:12, 11 March 2013 (UTC)Reply

تداخل ميانويكي

edit

سلام رضا جان ربات در اين ويرايش الگوی تداخل میانویکی را خارج از

<noinclude></noinclude>

گذاشته است، در نتیجه تمام صفحاتی که به قالب:بش-جدول می رسند نیز در زمره صفحاتی که تداخل میانویکی دارند به شمار می آیند. بعنوان مثال این مقاله در حالي كه تداخل ميانويكي ندارد در گزارش أمده است.--عباس 13:31, 11 March 2013 (UTC) Reply

من برای فضای الگو تستش نکرده بودم وبا این وجود الان به‌روز کنید مشکلش را رفع کردم برای رده و مقاله صد در صد درست است برای الگو لطفا با احتیاط برانید تا اگر باز هم مشکلی بود حلش کنیم▬ Reza1615 / T 14:42, 11 March 2013 (UTC)Reply

متشكرم.عباس 20:11, 11 March 2013 (UTC) Reply

summary in new_interwiki

edit

Brother, is that possible to add query number in local wiki summary message along with [[wp:wikidata|wikidata]] like this "d:q182186 در ویکی‌داده" Muhammad Shuaib (talk) 19:08, 11 March 2013 (UTC)Reply

Skip

edit

سلام. ربات از روي مقاله كروماتين مغاير وصدها نمونه مشابه مي پرد و اينترويكي نمي افزايد. أيا دليل خاصي دارد؟--عباس 05:17, 12 March 2013 (UTC) Reply

یا مشکل از ای‌پی‌آی هست یا مقاله نیاز به به‌روز رسانی ندارد ‍‍▬ Reza1615 / T 08:27, 12 March 2013 (UTC)Reply

من از همون ای‌پی آی که نوشتی استفاده می کنم. اینکه مقاله نیاز به بروزرسانی داشته باشه رو نمی فهمم یعنی چی.--عباس 09:14, 12 March 2013 (UTC) Reply

نگفتم مشکل از شماست مشکل از باگ ای‌پی‌ای هست من هم ۳ هزار مقاله بدون آیتم دارم که ای‌پی‌آی نامشان را قبول نمی‌کند▬ Reza1615 / T 09:21, 12 March 2013 (UTC)Reply

ما ارادات داریم خدمت شما. ان شاالله اون باگ هم بزودی رفع میشه--عباس 09:32, 12 March 2013 (UTC) Reply

سؤال

edit

سلام آقا رضا، سؤالی داشتم و اون این هست که این جریان کیو و عدد رو چجوری بفهمیم کدوم کد مال چه مقاله‌ای هست اصلاً راهی برای فهمیدنش هست؟! Faramarz (talk) 09:22, 25 March 2013 (UTC)Reply

Check mail

edit

Hi, Check mail please.Best Regards.Javad|Talk (11 Farvardin 1392) 08:23, 31 March 2013 (UTC)Reply

سلام رضا، کار من نیز واجب است. میلت را چک کنAmir (talk) 13:50, 31 March 2013 (UTC)Reply

new_interwiki.py and createitem

edit

Could you update new_interwiki.py to create item pages with whole sitelinkes? I've updated the example code at Wikidata:Creating a bot#Example 3: Create an item. -- ChongDae (talk) 01:56, 2 April 2013 (UTC)Reply

  Done I updated it as a test code --hereYamaha5 (talk) 19:52, 13 April 2013 (UTC)Reply
now it is released at the main code Yamaha5 (talk) 11:02, 20 April 2013 (UTC)Reply

Talkback

edit
 
Hello, Reza1615. You have new messages at Ricordisamoa's talk page.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

--Ricordisamoa 19:27, 12 April 2013 (UTC)Reply

Are you Yamaha5? --Ricordisamoa 19:37, 12 April 2013 (UTC)Reply
yes I decided to switch to this account Yamaha5 (talk) 08:56, 13 April 2013 (UTC)Reply

bot

edit
Please see وپ:تار in fa.wiki --Javad|Talk (24 Farvardin 1392) 10:09, 13 April 2013 (UTC)Reply
salam.ye negahi be bahsam dar wikifa bendaz (ردهٔ همسنگ تکراری) agar vaght dari albate :) eradatmand --Javad|Talk (31 Farvardin 1392) 11:08, 20 April 2013 (UTC)Reply
oon ok . User:Reza1615/BOT/move-pages.py ya ham vase wiki beroon niaz be mojavez ham nist choon mojaveze update item dari :) wase test rooie wiki en beroon ke koli move dare :) Yamaha5 (talk) 11:16, 20 April 2013 (UTC)Reply
mamnoon.code jadido gozashtam vase test roo en.be nazar karesh khoobe.--Javad|Talk (31 Farvardin 1392) 14:04, 20 April 2013 (UTC)Reply
na khoob nist :D error dad
-----------------------------------
working on Wikipedia:Malik Adil Raza Saleem
Traceback (most recent call last):
  File "movecat.py", line 81, in <module>
    main()
  File "movecat.py", line 78, in main
    move_wikidata(moved_pages,Our_wiki)
  File "movecat.py", line 46, in move_wikidata
    old_data = wikipedia.DataPage(page)
  File "/home/javadyou/pywikipedia/wikipedia.py", line 4034, in __init__
    Page.__init__(self, source, title, *args, **kwargs)
  File "/home/javadyou/pywikipedia/wikipedia.py", line 383, in __init__
    self._site = getSite(otherlang, familyName)
  File "/home/javadyou/pywikipedia/wikipedia.py", line 8765, in getSite
    _sites[key] = Site(code=code, fam=fam, user=user)
  File "/home/javadyou/pywikipedia/pywikibot/support.py", line 121, in wrapper
    return method(*__args, **__kw)
  File "/home/javadyou/pywikipedia/wikipedia.py", line 5951, in __init__
    % (self.__code, self.__family.name))
pywikibot.exceptions.NoSuchSite: Language wikidata does not exist in family wikipedia
javadyou@willow:~/pywikipedia$

--Javad|Talk (31 Farvardin 1392) 14:06, 20 April 2013 (UTC)Reply

برای چه زبانی تست کردی؟Yamaha5 (talk) 14:14, 20 April 2013 (UTC)Reply
english --Javad|Talk (31 Farvardin 1392) 14:18, 20 April 2013 (UTC)Reply
ok shod . moshkelash moved and deleted pages bood!Yamaha5 (talk) 14:23, 20 April 2013 (UTC)Reply
tnx, ajrakom end allah --Javad|Talk (31 Farvardin 1392) 14:25, 20 April 2013 (UTC)Reply
nemidonam, gozashtam beroone, vali chera hichio tagheer nemide :D az roo hame mipare, albatechand taro negah kardam, baghie robatha zahmatesho keshide bodan.faghat yek mored,vase safahti ke hazf mishe vase momken shodane enteghal,age beshe ona ham ye kari kard khoobe.maslan morede zir too en.wiki :
working on Indiana 250 (auto race)
Sleeping for 5.5 seconds, 2013-04-20 14:40:49
Updating page [[wikidata:Q6023021]] via API
Got an unknown error when putting data: Site link [[enwiki:Indiana 250]] already used by item [[Q6023015]].
Sleeping for 5.3 seconds, 2013-04-20 14:40:56
Updating page [[wikidata:Q6023021]] via API
Bot:Updating enwiki's moved page: Indiana 250 (auto race) > Indiana 250

ke elatesh in boode va alan 2 ta item vase on maghale hast.age robat betone az Q6023015 linko hazf kone, va badesh Q6023021 ro upedate kone khoobe.badesh Q6023015 ke khali mishe ro too ye file zakhire kone, ke badan dasti hazfesh konim :D age vaght dashty roosh fek kon :)) vagarna bikhial.mer30--Javad|Talk (31 Farvardin 1392) 14:52, 20 April 2013 (UTC)Reply

ie bot dige vase delete log minevisam ke baiad bade in roonede beshe albate delete log ziad moshkel afarin nist choon hezard-bot oono anajam midele. dar kole move moheme choon vaghti user move mikone entezar dare ke interwiki ham move beshe ba in baes mishe sardargom beshe baiad in bot ra ba faseleh zamani kam maslan har az 10 min berooni ta zood move ha ra update kone. delete faghat vase wikidta moheme ke khodeshoon anjam midan. bot ra roo wiki haie dige test kon ta agar error ehtemali bood radifesh konam. dar asl ino vase this neveshtam Yamaha5 (talk) 14:57, 20 April 2013 (UTC)Reply
ok.raftam ye maghale enteghal dadam, bebinam kar mikone ya na :D man mamolan codhaye jadido dasti mironam ta errorhaye ehtemalio bebinam, too crontab ham mizaram, har 10 min vase move log hamoon rooz --Javad|Talk (31 Farvardin 1392) 15:02, 20 April 2013 (UTC)Reply
mibakhshid, vase cat ke robate interwiki ro mironam, in erroro dar hamon lahzeye aval mide va aslan kari nemikone.
javadyou@willow:~/pywikipedia$ python testreza.py -cat:"صفحه‌های دارای تداخل میان‌ویکی"
Traceback (most recent call last):
  File "testreza.py", line 9, in <module>
    import wikidata
  File "/home/javadyou/pywikipedia/wikidata.py", line 14, in <module>
    api = API(Config)
  File "/home/javadyou/pywikipedia/api.py", line 15, in __init__
    self.request = RequestHandler(config)
  File "/home/javadyou/pywikipedia/request.py", line 20, in __init__
    self.login(config2["username"], config2["password"])
  File "/home/javadyou/pywikipedia/request.py", line 38, in login
    return log(self, user, password)
  File "/home/javadyou/pywikipedia/request.py", line 28, in log
    result = self.post(data)
  File "/home/javadyou/pywikipedia/request.py", line 54, in post
    js = json.loads(content)
  File "/opt/ts/python/2.7/lib/python2.7/json/__init__.py", line 326, in loads
    return _default_decoder.decode(s)
  File "/opt/ts/python/2.7/lib/python2.7/json/decoder.py", line 360, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/ts/python/2.7/lib/python2.7/json/decoder.py", line 378, in raw_decode
    raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

Regards --Javad|Talk (31 Farvardin 1392) 15:44, 20 April 2013 (UTC)Reply

albate vase hame chi hamin error mide,mibinam 2-3 roze robat edit nadare :D nemidonam filehaye confige man moshkel dare ? tagheer nadadameshon --Javad|Talk (31 Farvardin 1392) 15:47, 20 April 2013 (UTC)Reply
fekr konam file config2 ya wikiata ra taghir dadi. moshkel az code man nist choon bade import motevaghef mishe ke rabt be codhaie library dare. hame ra az now copy konYamaha5 (talk) 15:51, 20 April 2013 (UTC)Reply
Dr jan, man hamaro dobare copy kardam.nemishe:( age emkanesh hast, ta private key va ramzamo bedam, khodet bebin --Javad|Talk (31 Farvardin 1392) 16:39, 20 April 2013 (UTC)Reply
In ham bebin fekri be zehnet nemirese [1] chon bot ishoon too hame wikiha run mishe va vase wikifa didam ke onvan ba sitelink fargh dare, yekam najoore . --Javad|Talk (31 Farvardin 1392) 17:35, 20 April 2013 (UTC)Reply

edameh

edit

Bara avali key va pass ra email kon baiad account dame dastam bashe ta irad ra raf konam

Vase dovomi choon to faghat roo fa mirooni moshkeli nist choon fa harchi link bashe hamoon onvan mishe pas vase fa beroon Yamaha5 (talk) 09:18, 21 April 2013 (UTC)Reply

vase avali : be hamon emaile ghabli mail konam ? age avaz shode , ye mail be man az tarighe samane bezan,zemnan fek mikonam in robat ba update jadid pywikipedia moshkel dare.chon man ye pooshe pywikipedia dige ham daram va ono motmaenam ke tagheer nadadm, vali oonja ham hamin erroro daram.
vase dovomi : robate khodam made nazar nabod.robate ishoon vase hame wikiha roonde mishe az jomle wikifa, va chon label ba sitelink pas az eslah fargh dasht ( labelo update nemikone ) behesh goftam inkaro anjam bede, ke baghiash too bahsam hast.goftam age fekri be zehnet resid, behesh begi.mamnoon.--Javad|Talk (1 Ordibehesht 1392) 09:25, 21 April 2013 (UTC)Reply
be hamoon email ghabli
moshkel az API hast ke update shode va library wikidta choon update namishe be moshkel khorde :(
man ham too bahset javabesho dadam ke taghir be codesho va dar ayande be to ham natoone gir bede. alan ba in javab roo har wiki ie ke berooni moshkel nist :) choon agar generate moshkel dasht baiad oon abzar ham ke khaili estefadeh shode moshkel dashte bashe :) Yamaha5 (talk) 09:46, 21 April 2013 (UTC)Reply
Mer30 :) mail kardam, vali gooya fahmidi moshkel chie --Javad|Talk (1 Ordibehesht 1392) 09:55, 21 April 2013 (UTC)Reply
hal shod moshkel az www bood ke avale API gozashtand :) alan mesle benz kar mikone :))) crontabet ham moshkel dasht too addresesh pywikipedia nadasht :) Yamaha5 (talk) 11:08, 21 April 2013 (UTC)Reply
Mamnoon reza jan.gooya shoma az willow.toolserver raftid, crontabe aslim ke yek safhe ham bishtare :) too yarrow.toolserver hast --Javad|Talk (1 Ordibehesht 1392) 18:47, 21 April 2013 (UTC)Reply

Minor bugs in new_interwiki.py

edit

Thanks for this script, I found these minor bugs, so if you can repair them, It would be much useful:

  1. When name of page contains / bot skips it as subpage. But in main namespace there are usually not subpages, but part of name: C/2012 S1 or Silnice I/3
  2. Some categories are skipped (only ---- appears in terminal window), your previous vesion did the same for articles too, but after removing some lines (in old version lines 368 and 464, per amir) it worked fine for all namespaces (but project namespace crashed often for unknown reason)
  3. some {{Interwiki conflict}} are not written to page when there is no interwiki to remove
  4. interwiki to anchors ([[en:foo#bar]] should be skipped and not to be removed; these cases are usually not in conflicted state
  5. when page contains interwiki with -(roa-rup, zh-min-nan...) bot crashes, because unknown wiki roa_rup - in families/wikipedia.py in section self.obsolete you must add line for each of these language:
           'bat_smg': 'bat-smg',
           'be_x_old': 'be-x-old',
           'cbk_zam': 'cbk-zam',
           'fiu_vro': 'fiu-vro',
           'map_bms': 'map-bms',
           'nds_nl': 'nds-nl',
           'roa_rup': 'roa-rup',
           'roa_tara': 'roa-tara',
           'zh_classical': 'zh-classical',
           'zh_min_nan': 'zh-min-nan',
           'zh_yue': 'zh-yue',
           'roa_rup': 'roa-rup',

Thanks, JAn Dudík (talk) 20:27, 21 April 2013 (UTC)Reply

Hi, I'll answer by number
  1.   Done. but now it will only work for namespace 0 because for others may be it makes subpages
  2. when it shows --- it means it passed 200 new pages after that it will check all pages.
  3. please show the example
  4. usually [[en:foo#bar]] has conflict because we have item for [[en:foo]]
  5. I solved it by replacing _ to - in some part of code please show me an example which dosen't work on these links because now it works fine.
thank you for your comments.Yamaha5 (talk) 23:19, 21 April 2013 (UTC)Reply
also if you are interested you can use this bot for moved pages Yamaha5 (talk) 23:57, 21 April 2013 (UTC)Reply

Thanks 1-Example of not adding iw conflict

D:\Py>new_interwiki.py -page:2001:_Vesmírná_odysea
Logging in to wikidata:wikidata as JAnDbot via API.
Logging in to wikipedia:cs as JAnDbot via API.
----------------------
IW-Item= 2001: Vesmírná odysea
+ es > 2001: A Space Odyssey
for 2001: A Space Odyssey added as label of es
Page Q1177031Passed!
Item did not updated..!2
+ A
{{Interwiki konflikt}}
Bot couldn't remove interwikis from 2001: Vesmírná odysea in Local wiki!F

2-Example with #

----------------------
IW-Item= C-3PO
+ de > Figuren aus Star Wars#C-3PO
+ he > mlkhmth hkvkbym - dmvyvth#C-3PO
Item has been created. Skipping...
he has confilict!
-->Q51787 Passed! because of safe mode and conflict
Item did not updated..!2
----------------------

3-This links should be ignored - links are OK, but items not

4-Example with skipping categories:

D:\Py>new_interwiki.py -newcat
Getting 60 pages from wikipedia:cs...
----------------------(Should be Kategorie:Křimov)
----------------------(Should be Kategorie:Absolventi vysokých škol v Itálii
----------------------(Should be ‎Kategorie:Německý nacionalismus 
----------------------(Should be Kategorie:Ukrajinští spisovatelé knížek pro děti
----------------------(Should be Kategorie:Liturgické památky 
----------------------(Should be Kategorie:Liturgické svátky 
----------------------
IW-Item= Kategorie:Paramenta
----------------------
IW-Item= Kategorie:Alba Jamese Blakea
----------------------
IW-Item= Kategorie:Fotbalisté Doncasteru Rovers
----------------------
NoIW-Item= Kategorie:Fotbalisté HŠK Zrinjski Mostar
----------------------
IW-Item= Kategorie:Skotské právo
----------------------
----------------------(Should be ‎Kategorie:Pohřbení v Bolzanu)
IW-Item= Kategorie:Fotbalisté NK Inter Zaprešić
----------------------
IW-Item= Kategorie:Anglicko-skotská hranice
----------------------
IW-Item= Kategorie:Fotbalisté Vitória SC
----------------------
IW-Item= Kategorie:Kubánští trumpetisté

5-Additionally, you removed (10s) pause after wikidata edit and now bot cannot be stopped by ctrl+c (this pause should be defined in the localisation part). THe problem with roa_rup was in first version, I updated my wikipedia.py, so it worked for me.

JAn Dudík (talk) 07:05, 22 April 2013 (UTC)Reply

answer

edit

I will answer by number:

1-  Done
2-cs:C-3PO has item Q51787
de:Figuren aus Star Wars#C-3PO has item Q51805
so bot and users can not add de:Figuren aus Star Wars#C-3PO as iterwiki to item Q51787 and these old interwikis (which has #) after wikidata are useless! and they makes interwiki confilict! because they suggest two different item for one page!
4-for the first categories which has --- you can set Skip_New=0 after that it will add item for them
for the rest categories they have item so bot don't have any work to do.
take care in bot's comments which is shown in CMD the abbreviation has meaning
IW-Item=: means it has Interwiki in local wiki (old one or wikidata one) & Item in wikidata
NOIW-Item=: it dosen't have Interwiki at all ( in local and wikidata) but it has Item in wikidata
IW-NOItem=: it has interwiki (old one or wikidata one) but doesn't have Item in wikidata
NOIW-NOItem=: No interwiki and No Item
Iw-others=: means it has interwiki and bot found item for other languages which are linked there
I added a comment which shows the rank of the skipped page in red
5-  Done
6- because of some un-none API errors bot stopped! So I made it automatic to skip the errors Now we should press Ctr+C for some minute ! to stop it and I couldn't find any general solution in internet to break the while loop :(
Yamaha5 (talk) 09:09, 22 April 2013 (UTC)Reply
For 4 I mean that first categiories and ‎Kategorie:Pohřbení v Bolzanu is skipped with doing nothing. JAn Dudík (talk) 13:24, 22 April 2013 (UTC)Reply
I told you they was passed because bot doesn't work on new 200 categories if you want to work on the set Skip_new=0 then it will workYamaha5 (talk) 16:19, 22 April 2013 (UTC)Reply
I deleted some lines in output - bot worked for all pages from 6th, but why skipped this category? But now seems to work correctly. JAn Dudík (talk) 20:21, 22 April 2013 (UTC)Reply

Next bugs :-)

edit

I updated my script (it would be fine, if also line with path to passfile will be on the top, so I can only replace everything under translations) and is much more useful. But there are still some not serious bugs.

  1. When is conflict solved and bot again works with that page, and there is nothing to remove except conflict template, bot write in red that removes template, but template is still in page (e.g. cs:Kategorie:Čínská lidová republika)
  2. When is in page dead link, bot skips all other valid links (cs:Portál:Chorvatsko with dead link to bs:Portal:Hrvatska
  3. When in page is shortcut like [[WP:Foo]] (where WP means Wikipedia), bot take it as interwiki and add conflict template [2], [3]
  4. Bot does not ignore interwiki in <nowiki> section [4]

Thanks, JAn Dudík (talk) 20:21, 22 April 2013 (UTC)Reply

Thank you for your comments all of them solved :) (version 3.5) Yamaha5 (talk) 17:35, 24 April 2013 (UTC)Reply

Talkback

edit
 
Hello, Reza1615. You have new messages at جواد's talk page.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

A new bot list

edit

Hi there! Per a request I have been working on a new informative bot list (that has secretly been hidden under the current list at Wikidata:List_of_bots. I think I am finished and it would be great if every botop (including you) could add your bot to the new list. I have added Addbot already and tried to make the template simple! Goodluck and if you have any problems get in touch on my talk page! ·Add§hore· Talk To Me! 20:21, 22 April 2013 (UTC)Reply

  DoneYamaha5 (talk) 20:14, 24 April 2013 (UTC)Reply
reza jan, emaileto lotfan bebin.sharmande Javad|Talk (6 Ordibehesht 1392) 10:50, 26 April 2013 (UTC)Reply

"Staff" and "General staff"

edit

Could you please explain, what happened with edits [5] and [6], when the discussion Talk:Q495430 ([7]) clearly has a request to split the record (into "Staff" and "General staff")? If you think that they should be merged, perhaps at least a note on the talk page could have been in order..? --Martynas Patasius (talk) 19:36, 29 April 2013 (UTC)Reply

Help

edit

Can you explain me how to do this [8]? Xaris333 (talk) 22:34, 29 April 2013 (UTC)Reply

Ok. I find it. Thx! Xaris333 (talk) 22:37, 29 April 2013 (UTC)Reply

Twinkle

edit

Hi Reza, What do you do about twinkle ( mass deletion section)? :) Javad|Talk (13 Ordibehesht 1392) 09:36, 3 May 2013 (UTC)Reply

هنوز وقت نکردم اولین فرصت حتما ردیفش می کنم Yamaha5 (talk) 12:43, 10 May 2013 (UTC)Reply
mamnooon Javad|Talk (20 Ordibehesht 1392) 12:47, 10 May 2013 (UTC)Reply

درخواست حذف

edit

سلام رضا جان، لطفا هنگامی که درخواست حذف آیتمی را می دهید، مطمئن شوید به آن آیتم لینکی وجود ندارد.ممنون Javad|Talk (18 Ordibehesht 1392) 20:08, 8 May 2013 (UTC)Reply

hatman merci be in morede deghat nakarde boodam :)Yamaha5 (talk) 17:39, 9 May 2013 (UTC)Reply
daram ba bot oon rade tadakhol ha ra miterkoonam ba dast tak takeshoon ra check mikonam :(Yamaha5 (talk) 17:40, 9 May 2013 (UTC)Reply
Khoda kheyrat dahad :) too wikifa tanha kasi ke wiki vasash ahamiat dare toee, poostet ham kolofte :D, baghie vase bahs kardan afaride shodan Javad|Talk (19 Ordibehesht 1392) 17:43, 9 May 2013 (UTC)Reply

Busia

edit

Please, draw your attention that some articles tell about non-existent "Busia - town in Kenya and Uganda". But in Russian, Swahili and some other ones it is a question of town only in Kenya, and there is other article about Busia in Uganda (there are two different towns in two different countries, and articles in Sweden, Indonesian etc tell untruth. --VAP+VYK (talk) 21:25, 9 May 2013 (UTC)Reply

Re: archive pages

edit

Now the bot will not take more care of that element. Thanks for your report. Do you know other pages that are to be excluded? --β16 - (talk) 21:53, 9 May 2013 (UTC)Reply

in my opinion it should exclude pages which are in wikipedia namespace and which have / in their name because wikipedians only archive wikipedia and talk pages and by sure bot doesn't work on talk so we should set it only for wikipedia. Yamaha5 (talk) 12:43, 10 May 2013 (UTC)Reply

چک میل رضاجان لطفا:)Mahdi talk 16:25, 16 May 2013 (UTC)Reply

میل پلیز:)Mahdi talk 16:03, 18 May 2013 (UTC)Reply

Thanks

edit

Hi dear Reza,

Thank you so much for this code.It works properly ;) Best Regards Javad|Talk (27 Ordibehesht 1392) 14:56, 17 May 2013 (UTC)Reply

thank you for your helps and ebraminio's helps :)Yamaha5 (talk) 17:10, 22 May 2013 (UTC)Reply

کددار

edit

سلام رضاجان، میل رو که میری میای، اینجا بپرسم میگویم شاید حل شود:). [9] چی کار می کند؟ چرا دوبار میرود؟ درچندجای دیگه هم اتفاق افتاده. ممنون:)Mahdi talk 17:43, 25 May 2013 (UTC)Reply

Bot editing logged out?

edit

Hey, Reza. Do you know if the recent edits from Special:Contributions/10.64.0.127 are from your bot? This relates to the ongoing WD:AN discussion about whether or not to block that IP address, which is apparently a Wikimedia Labs proxy. — PinkAmpers&(Je vous invite à me parler) 08:17, 28 May 2013 (UTC)Reply

new_interwiki.py and anchors

edit

Hello, I solved all conflicts on cs.wiki, but there is still couple of pages with links with anchor, like [[en:Foo#bar]]. We don't want to remove them, there is technically no conflict, but bot skips these pages without updating labels or adds {{Interwiki conflict}}. Can you change your script to completely ignore such links? eg. cs:62 contains link to als:60er#62 and bot cannot update labels of 5 other languages. JAn Dudík (talk) 09:45, 23 June 2013 (UTC)Reply

removing of \n

edit

Version 5.0 made strange edits on some pages. JAn Dudík (talk) 12:33, 23 June 2013 (UTC)Reply

Wikidata:Project_chat#minimizing_Item.27s_UI

edit

Hey! Just wondering if you could pop back to the above linked section? :) People generally like the idea and have a few small questions! ·addshore· talk to me! 16:02, 29 June 2013 (UTC)Reply

Re: Need Help for making Merge Tool

edit
 
Hello, Reza1615. You have new messages at Wikidata:Bot requests#Need Help for making Merge Tool.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

--Ricordisamoa 04:56, 4 July 2013 (UTC)Reply

خطای ربات

edit

درود بررضا. میل را که مثل اینکه سرنمیزنی، گفتم اینجا بگوییم. ربات میان ویکی خطای خاصی میدهد که متاسفانه عملکرد این چند وقته اش راخوابانده. پای ویکی را هم اپدیت کردم تاثیری نداشت. این حطایش است. ممنون

Logging in to wikidata:wikidata as MahdiBot via API.
Should be logged in now
Logging in to wikipedia:fa as MahdiBot via API.
Should be logged in now
Getting 60 pages from wikipedia:fa...
Page: -------- کاترینا بودن --------
Traceback (most recent call last):
  File "zzdi1.py", line 698, in <module>
    main()
  File "zzdi1.py", line 690, in main
    run(preloadingGen,hasnew,CreatNew,Remove_IW)
  File "zzdi1.py", line 544, in run
    if my_data.exists():# normal updating to existed item
  File "/home/mahdiz/new2/wikipedia.py", line 1335, in exists
    self.get()
  File "/home/mahdiz/new2/wikipedia.py", line 4693, in get
    self._getentity(*args, **kwargs)
  File "/home/mahdiz/new2/wikipedia.py", line 4629, in _getentity
    self._title = self._contents['entity'].title()
AttributeError: 'list' object has no attribute 'title'

:)Mahdi talk 10:26, 10 July 2013 (UTC)Reply

"Gadget-properties" using templates

edit

Hi Reza1615, in this conversation we were talking about how to automate adding statements depending on a category or template item. Your gadget already does that, so I was wondering if you could share your thoughts on the conversation? The latest proposed method is as follows:

  1. A gadget sets a template on the category/template item talk page with all needed parameters (language, exclude items, statements to add, recursion, etc)
  2. A bot scans the language category and creates periodically a list of candidate items with the missing properties (similar to {{Constraint}})
  3. Depending on the number of hits, a person or a bot can add the missing statements

What do you think? --Micru (talk) 17:51, 19 August 2013 (UTC)Reply

Update: move summary

edit
 
Hello, Reza1615. You have new messages at MediaWiki talk:Gadget-Move.js#+ move summary.
You can remove this notice at any time by removing the {{Talkback}} or {{Tb}} template.

--Ricordisamoa 02:45, 14 September 2013 (UTC)Reply

رده‌ها

edit

سلام جناب رضا. جناب امیر زحمت کشیده یه فهرست بلند والا در w:fa:کاربر:Ladsgroup/رده‌ها تهیه کرده. درصدد هستم فهرستی به نام «رده‌های نیازمند اقدام برای ادغام» از داخلش دستی انتخاب کنم تا بشه میان ویکی داد. پیشنهاد می کنم اون رو چند تیکه کنید کاربرای ویکی پدیا هم کمک کنن.دوستدار ایران بزرگ (talk) 17:14, 21 September 2013 (UTC)Reply

رده‌های عجیب!

edit

جناب رضا، چرا کسی به وضع رده‌های مث w:fa:رده:رئیسان دانشگاه آزاد اسلامی و w:fa:رده:ورزش در استان اردبیل رسیدگی نمیکنه؟ نیازمند رسیدگی نیستن؟ –دوستدار ایران بزرگ (talk) 13:28, 28 September 2013 (UTC)Reply

سلام   Done Yamaha5 (talk) 19:14, 9 October 2013 (UTC)Reply

new_interwiki.py : no → nb

edit

Hi, could you update your script so it uses language code "nb" instead of "no"? Seems to be a matter of line 364 in new_interwiki.py. We are trying to move away from the use of "no", and I have a bot running that moves labels from no to nb, but another bot running your script re-added a label my bot had just removed :) Danmichaelo (talk) 12:26, 9 October 2013 (UTC)Reply

سلام رضا. یک کاری می‌توانی انجام بدی که مشکلش را حل کنی؟ سپاس.--Calak (talk) 17:47, 9 October 2013 (UTC)Reply
Hi, Two month ago I asked in the project chat and they told me we want to switch nb > no ! so I added these lines to code.
Now I changed the code and it will change no > nb. and it shouldn't have this bug Yamaha5 (talk) 19:09, 9 October 2013 (UTC)Reply
Thanks, seems like there has been some confusion about nb/no :) Danmichaelo (talk) 21:19, 10 October 2013 (UTC)Reply

The bot still adds labels with the language code no (example). nowiki has the wgContentLanguage nb. uselang=no is converted to wgUserLanguage nb and shows the content of the label with language code nb. The language code no is not accessible. Please change the bot to not adding labels with the language code no. --Fomafix (talk) 16:18, 27 December 2013 (UTC)Reply

Your bot flooding on RC page

edit

Why your bot is editing without marking edits as bot edits? It's flooding recent changes page. --Stryn (talk) 17:19, 25 October 2013 (UTC)Reply

Hi, I use standard API and I got flag and it should work as bot I will ask amir may be he knowsYamaha5 (talk) 17:28, 25 October 2013 (UTC)Reply

Bot blocked

edit

Per Wikidata:Notability, subpages of templates are not suitable to be included in Wikidata, so I have blocked your bot (Rezabot). When you reconfigure it to not add such pages, it will be unblocked.--Jasper Deng (talk) 06:02, 27 December 2013 (UTC)Reply

  Done I stopped the bot also left a massage in your talkYamaha5 (talk) 07:21, 27 December 2013 (UTC)Reply

error

edit

Hi Reza, when I run new_interwiki.py, get the following traceback:

  File "new_interwiki.py", line 14
SyntaxError: Non-ASCII character '\xd8' in file new_interwiki.py on line 14, but no encoding declared; see http://www.python.org/peps/pep-                 0263.html for details

the line 14 in the code is:

Ignore_Templates=[u'سانچہ:ویکی ڈیٹا نہیں',u'سانچہ:زمرہ رجوع مکرر',u'سانچہ:سریع حذف شدگی',u'سانچہ:مجوزہ حذف شدگی/پیغام',u'سانچہ:پیشنهاد حذف ۲',u'سانچہ:ادغام با',u'سانچہ:ادغام شد در',u'سانچہ:درخواست ادغام',u'سانچہ:پوشیدہ زمرہ جات',u'سانچہ:Hiddencat',u'سانچہ:زمرہ رجوع مکرر',u'سانچہ:تغییر مسیر رده',u'سانچہ:DB',u'سانچہ:DELETE',u'سانچہ:Db',u'سانچہ:Db-Reason',u'سانچہ:Db-because',u'سانچہ:Db-reason',u'سانچہ:Delbecause',u'سانچہ:Delete because',u'سانچہ:Delete',u'سانچہ:Deletebecause',u'سانچہ:Speedy delete',u'سانچہ:Speedy',u'سانچہ:Speedydelete',u'سانچہ:سریع حذف شدگی',u'سانچہ:حس',u'سانچہ:کاندید حذف',u'سانچہ:بدون حوالہ',u'سانچہ:بدون منبع ۲',u'سانچہ:بدون منبع۲',u'سانچہ:Prod',u'سانچہ:مجوزہ حذف شدگی',u'سانچہ:Proposed deletion',u'سانچہ:حذف زماندار']

how to fix it? --Muhammad Shuaib (talk) 17:38, 6 March 2014 (UTC)Reply

Try to add

# -*- coding: utf-8 -*- as first line in new_interwiki.py JAn Dudík (talk) 19:53, 6 March 2014 (UTC)Reply

Now got this traceback
Traceback (most recent call last):
 File "/data/project/shuaib-bot/pywikipedia/pagegenerators.py", line 1282, in __iter__
   for page in self.wrapped_gen:
TypeError: 'NoneType' object is not iterable
'NoneType' object is not iterable

--Muhammad Shuaib (talk) 20:30, 6 March 2014 (UTC)Reply

Thanks problem solved :-) Muhammad Shuaib (talk) 21:55, 6 March 2014 (UTC)Reply
Brother Reza, Plz reply this message --Muhammad Shuaib (talk) 11:26, 7 March 2014 (UTC)Reply

Language codes

edit

Please have a look to User talk:Ladsgroup#Language and User:Ladsgroup/Labels. --Fomafix (talk) 11:01, 15 March 2014 (UTC)Reply

Hi, Thank you for your comment I will solve it as soon as possibleYamaha5 (talk) 11:18, 15 March 2014 (UTC)Reply
Your bot still not follows User:Ladsgroup/Labels. (diff) --Fomafix (talk) 16:35, 4 April 2014 (UTC)Reply
Now it is ok .@User:Calak, User: JAn Dudík I updated the codeYamaha5 (talk) 18:06, 6 April 2014 (UTC)Reply

mw:Requests for comment/Deprecate pywikibot-compat

edit

May interest you. --Ricordisamoa 04:11, 26 April 2014 (UTC)Reply

Human groups

edit

Hello, [10], [11]. Please do not thread human groups as humans. Values listed in {{Constraint:Conflicts with}} on Property talk:P21 can be used to avoid such errors. Or you can check instance of (P31) = human (Q5) also. — Ivan A. Krestinin (talk) 19:37, 26 October 2014 (UTC)Reply

Hi, thank you for your comment I will solve itYamaha5 (talk) 09:51, 6 November 2014 (UTC)Reply
  Done Yamaha5 (talk) 11:13, 6 November 2014 (UTC)Reply

Special:Contributions/Rezabot

edit

You forgot to redirect merged items.--GZWDer (talk) 11:39, 31 October 2014 (UTC)Reply

Ok I will do it Yamaha5 (talk) 09:53, 6 November 2014 (UTC)Reply