User talk:زكريا
感謝您對維基百科的興趣與貢獻,希望您會喜歡這裡。除了歡迎辭以外,也請您了解以下重要文章:
有问题?請到互助客栈询问,或在我的对话页提出。别忘記:討論後要簽名,方式之一是留下4個波浪紋「 ~~~~ 」。 If you have any questions about the Chinese Wikipedia, please leave a message here. Thank you for visiting!
|
- 閱讀新手应该注意的七种常见错误、理解維基百科的立場與常見注意事項。
- 有任何编辑上的问题?请试试IRC即时讨论。也可在下面加入「{{Helpme}}」,其他维基人见到后就会来提供帮助。
- 不知道有甚麼可写?条目请求、最多语言版本的待撰条目、缺少的传统百科全书条目和首页的缺失条目中列出了许多维基百科目前还没有的条目,欢迎您来撰寫!
- 希望您能享受共同编写百科的樂趣,成为一名充實的维基百科人。
我是欢迎您的维基人:Liangent (留言) 2012年2月26日 (日) 08:12 (UTC)
Re: Template:ASN to arWP
[编辑][1]. Those two functions were defined in MediaWiki:Common.js. Liangent (留言) 2012年2月26日 (日) 08:12 (UTC)
Re: Help
[编辑]- We're using our own version of Navbox script in MediaWiki:Common.js here, which was written from scratch without using any code from the one on enwiki or mw.org IIRC, so I know nothing about adapting the enwiki script to have such feature...
- I'm not the operator of User:P-bot but I have my own script (different from the one used by User:P-bot) so I can run it on arwiki with mine, but I think I need a English version of ar:قالب:وصلة إنترويكي/شرح (or a Chinese one, if you can provide) before I do anything. Liangent(留言) 2013年8月25日 (日) 18:10 (UTC)
- btw It would take me some time to rewrite some part of my script to use a real parser (it's currently regex-matching things), as you're using named parameters rather than numbered ones. I've already thought about this before but just didn't have time to do that. Liangent(留言) 2013年8月25日 (日) 18:36 (UTC)
- So having two types of params requires a parser more seriously. Liangent(留言) 2013年8月26日 (一) 05:35 (UTC)
Hello, can you do the following things for me?
- Translate Special:PrefixIndex/User:Liangent-bot/message/ts-cleanup-ilh on arwiki (using the same page name). They're used as edit summaries.
- Create a category to place all pages containing templates to "clean up", using {{#ifexist: }}. The bot will run in this category.
- Create a few test pages on arwiki. Liangent(留言) 2013年9月2日 (一) 16:47 (UTC)
- btw, in case parameter 2 is missing, does it fall back to parameter 1? Liangent(留言) 2013年9月2日 (一) 17:24 (UTC)
Please check [2]. Liangent(留言) 2013年9月3日 (二) 09:14 (UTC)
- Have a look at ar:خاص:مساهمات/Liangent-bot: it seems some LRM or RLMs can be added to make it look better, but anyway I have no knowledge of Arabic. Liangent(留言) 2013年9月3日 (二) 09:20 (UTC)
- I ran it on 60 random pages on arwiki which have template links to ar:Template:وصلة إنترويكي. Please check edits made by my bot. Related execution log is at [3]. Liangent(留言) 2013年9月3日 (二) 12:16 (UTC)
- I'm testing it on a few more articles, which some subtle changes in whitespace handling. Hope that it doesn't matter much. Liangent(留言) 2013年9月3日 (二) 12:33 (UTC)
- I ran it on 60 random pages on arwiki which have template links to ar:Template:وصلة إنترويكي. Please check edits made by my bot. Related execution log is at [3]. Liangent(留言) 2013年9月3日 (二) 12:16 (UTC)
Re: Liangent-bot approved
[编辑]Sorry I can't run it now due to bugzilla:54390 :(
However we may want to work out the running schedule. On zhwiki, related crontab lines are:
3 * * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 1g php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=有蓝链却未移除内部链接助手模板的页面 23 * * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 1g php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --category=页面中有太多耗费的语法功能呼叫 43 * * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 1g php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki~sysop --page=User:Liangent-adminbot/CleanupILH-page 13,33,53 * * * * jsub -once -N php_cleanupILH_DOM_zhwiki -mem 1g php $HOME/mw/maintenance/cleanupILH_DOM.php --wiki=zhwiki --random-count=60
where:
- 有蓝链却未移除内部链接助手模板的页面 = pages with blue links in the template (detected with {{#ifexist: }})
- 页面中有太多耗费的语法功能呼叫 = pages with too many expensive parser function calls (because {{#ifexist: }} is expensive)
- User:Liangent-adminbot/CleanupILH-page is a hack, to clean up main page columns using the adminbot account
- --random-count=60 is to choose 60 pages with the template randomly, to minimize the inconvenience from delayed categorylinks updates.
Liangent(留言) 2013年9月22日 (日) 10:05 (UTC)
- CleanupILH-page is not a must (and it requires admin rights), but can you point me to those related categories? ar:تصنيف:مقالات_بها_وصلات_إنترويكي seems deleted.
What that bug affects is actually much more than arwiki and arwikiquote. arwikiquote was mentioned there because the original reporter tried to use arwikiquote and got stuck at this issue.- did another check and arwiki seems actually OK, but bugzilla:54451. Liangent(留言) 2013年9月22日 (日) 14:22 (UTC)
- RTL text with ligature is confusing for me... :/ can you type the plain category names without namespace prefix again, so I can copy it into my command directly? Liangent(留言) 2013年9月22日 (日) 14:35 (UTC)
- I'm running it manually now. Can you confirm whether it's still in a good state? Liangent(留言) 2013年9月22日 (日) 15:47 (UTC)
- First, there's no need to notify me with updated messages; they're fetched automatically by the bot. Because of this there might be some need to protect those pages. Vandalism on those messages has been observed here, and the pages are "protected" now.
- Wikipedia: - this has been fixed. It was parsing titles (into namespace / dbkey) on the working wiki. Now I've changed it to the foreign wiki, but this operation is a little more expensive than the original one.
- Formatting - I see nothing to fix here on the bot's side. The original wikitext specified '''مارمول كاربخال''' as the title, and it's really a valid title. Although it looks somehow dumb to go to create it directly, it's some "Garbage in, garbage out" logic. Liangent(留言) 2013年9月23日 (一) 09:24 (UTC)
- This script is a pre-Wikidata thing so it's unaware of that... (it checks langlinks table instead) I imagine the situation in those two articles is that their targets exist but are not about expected topics (ie. those titles are ambiguous). In this case I would restore the template call with the target modified (maybe add some disambiguation suffix in parentheses), like what you would do when you see a blue link with its content unrelated to context due to ambiguity. Liangent(留言) 2013年9月23日 (一) 15:55 (UTC)
- Aren't inline interwikis for this usage deprecated? As this is a new feature I guess I should just use Wikidata to achieve that. Liangent(留言) 2013年9月24日 (二) 07:23 (UTC)
- I created d:Wikidata:Requests for permissions/Bot/Liangent-bot 2 and could you explain this to them for me? :) and please list my page on [4] when it's done. Liangent(留言) 2013年9月24日 (二) 18:43 (UTC)
- I did some test on ar:جنوب السودان but got an error:
(wb [[ياي]] <=> enwiki: [[Yei]] ... ERROR: no-common-item)
, because ar:ياي and en:Yei had already been created as two individual items on Wikidata... Liangent(留言) 2013年9月24日 (二) 20:53 (UTC)
- I did some test on ar:جنوب السودان but got an error:
Well merging is not some operation supported by Wikibase. This feature and the link on user interface is provided by a gadget... I suspect that there might be some errors and it would be better to list the case somewhere for manual check. Liangent(留言) 2013年9月25日 (三) 05:09 (UTC)
- A list of recent conflicts. Maybe you can check them now:
(wb [[إيباتوفو]] <=> enwiki: [[Ipatovo kurgan]] ... ERROR: no-common-item) (wb [[دولة تابعة]] <=> enwiki: [[Client state]] ... ERROR: no-common-item) (wb [[السمعي البصري]] <=> enwiki: [[Audio-visual]] ... ERROR: no-common-item) (wb [[الشركة الوطنية للإذاعة والتلفزة]] <=> frwiki: [[Société nationale de radiodiffusion et de télévision]] ... ERROR: no-common-item)
- I updated my code to use a better sitelinker to output conflict reports. You need to configure User:Liangent-bot/message/ts-cleanupilh-wb-report on arwiki to a page name on Wikidata to post reports, and adapt User:Liangent-bot/message/ts-cleanupilh-wb-report-message on arwiki (not really needed to translate, because the message is used on Wikidata -- just changing 'zh' to 'ar' should be enough). Liangent(留言) 2013年9月25日 (三) 15:01 (UTC)
- btw my code doesn't work with items with statements currently, due to bugzilla:54313. Please wait for the deployment of its patch. Liangent(留言) 2013年9月25日 (三) 15:03 (UTC)
and you can check reports on that page now. Liangent(留言) 2013年9月26日 (四) 08:51 (UTC)
- Yes it was expected to expand on bot's edits... I fixed it after the bot had left some messages using it. Liangent(留言) 2013年9月26日 (四) 17:56 (UTC)
Re: Template limit
[编辑]Maybe you can use a new page to add sections from that articles one by one, to find the most expensive one [or try manual binary search :) ]. If all sections are equally expensive... maybe you have to split than article. Liangent(留言) 2013年9月26日 (四) 15:25 (UTC)
Re: Liangent-bot/ar
[编辑]Array ( [0] => Array ( [0] => blockedtext [1] => [[مستخدم:Avocato|Avocato]] [2] => [[ويكيبيديا:بروكسيات مفتوحة|بروكسي مفتوح]] [3] => 127.0.0.1 [4] => Avocato [5] => 156744 [6] => 05:34، 26 مايو 2014 [7] => 127.0.0.1 [8] => 05:34، 26 نوفمبر 2013 ) )
Tricky error. The bot checks permissions of itself (with MediaWiki codebase, against replicated database on Labs) before doing any edit, and it identifies itself as 127.0.0.1. See also bugzilla:58237, bugzilla:58258. My bot is just another victim.
btw. Was it blocked due to en:Wikipedia:Village pump (technical)/Archive 119#Edits from 127.0.0.1? Liangent(留言) 2013年12月31日 (二) 13:12 (UTC)
- Well I see no good for blocking 127.0.0.1, besides creating side effects. Nobody can actually edit from that address. Liangent(留言) 2014年1月18日 (六) 15:42 (UTC)
Re: Bot creation
[编辑]More clearly define your task (replace common typos with correct words? fix invalid wikitext? find improper usage of Arabic language?) and check if there's an existing bot for this task first?
If yes: use it. If not: do you know how to correctly do the task programmaticaly if it's not on the wiki.
If yes: find a library in your favorite programming language to do edits on the wiki, or talk to the API yourself. If not: learn to do it? Liangent(留言) 2014年8月1日 (五) 15:15 (UTC)
- Maybe this can be achieved by using replace.py. If so, do some experimental edits on arWP articles directly? You need to check arWP policies for details... Liangent(留言) 2014年8月2日 (六) 11:18 (UTC)
2017年4月
[编辑]請使用标准汉语沟通
您好,当您参与讨论时。您应该使用现代标准汉语和其他用户进行沟通。如果您使用了现代标准汉语以外的其他语言发言,其他用户可能因为看不懂您的发言而导致沟通不畅。如果您无法使用中文,请到这里发言,谢谢。
Please use Modern Chinese to communicate
You have posted comments in a language other than Modern Chinese. Please always use Chinese to communicate, no matter to whom you address your comments. This is so that comments may be comprehensible to the community at large. If the use of another language is unavoidable, please provide a translation of the comments. If you do not write Chinese but need to contact zh-wikipedia, you can leave your message here. Thank You.