跳至內容

用戶討論:زكريا

頁面內容不支援其他語言。
維基百科,自由的百科全書
您好,زكريا!歡迎加入維基百科!

感謝您對維基百科的興趣與貢獻,希望您會喜歡這裏。除了歡迎辭以外,也請您了解以下重要文章:

政策
政策
GNU
GNU
版權問題解答
貢獻內容必須是您所著或獲得授權
並同意在CC-by-sa-3.0和GFDL條款下發佈
手冊
手冊
問號
問號
有問題?請到互助客棧詢問,或在我的對話頁提出。別忘記:討論後要簽名,方式之一是留下4個波浪紋「 ~~~~ 」。
If you have any questions about the Chinese Wikipedia, please leave a message here. Thank you for visiting!

我是歡迎您的維基人:Liangent (留言) 2012年2月26日 (日) 08:12 (UTC)[回覆]

[1]. Those two functions were defined in MediaWiki:Common.js. Liangent (留言) 2012年2月26日 (日) 08:12 (UTC)[回覆]

Re: Help

[編輯]
  1. 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...
  2. 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?

  1. Translate Special:PrefixIndex/User:Liangent-bot/message/ts-cleanup-ilh on arwiki (using the same page name). They're used as edit summaries.
  2. Create a category to place all pages containing templates to "clean up", using {{#ifexist: }}. The bot will run in this category.
  3. 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)[回覆]
Bot request submitted. Liangent留言 2013年9月3日 (二) 12:53 (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)[回覆]

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)
Liangent留言 2013年9月25日 (三) 08:14 (UTC)[回覆]
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.

--N-C16留言2017年4月30日 (日) 12:11 (UTC)[回覆]