Thành viên:Vinhtantran/common.js

Văn thư lưu trữ mở Wikisource

Cache: Sau khi lưu biểu mẫu này, phải xóa bộ nhớ đệm (cache) của trình duyệt để những thay đổi hiện ra:

Firefox, Chrome, Safari, Opera — Shift­Reload / Tải lại       Internet Explorer — Ctrl­Refresh / Làm tươi       Konqueror — Reload / Tải lại

Nếu bạn viết mã JavaScript, chú ý đọc hướng dẫn để tránh mâu thuẫn với mã mặc định của mạng.

// Add custom Character Inserter entries
window.charinsertCustom = { 
	"Người dùng": ' «.+_»   “.+_”   <ref>+</ref>  {\{w|+}}  {\{wikt|+}}  {\{vạch|5em|align=left}}  {\{chú_thích_nhỏ}}  {\{cdt|+||}} {{gạch_bỏ/đ}}+{{gạch_bỏ/c}} {{gạch_bỏ|+}}'
};

/**
 * Add several tools useful when proofreading pages in the Page: namespace.
 * @see https://en.wikisource.org/wiki/Wikisource:TemplateScript
 */
mw.loader.load('//vi.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/proofreading.js&action=raw&ctype=text/javascript');

/**
 * Add several tools for editing typography like diacritics and letter case.
 * @see https://en.wikisource.org/wiki/Wikisource:TemplateScript
 */
mw.loader.load('//vi.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/typography.js&action=raw&ctype=text/javascript');

// mw.loader.load('http://localhost:5500/');

// mw.loader.load( '//vi.wikisource.org/w/index.php?title=User:Vinhtantran/massmove.js&action=raw&ctype=text/javascript' ); //[[User:Plastikspork/massmove.js]]
// mw.util.addPortletLink("p-tb", "//vi.wikisource.org/wiki/Special:Massmove", "Mass move", "p-massmove", "Mass move");

// mw.loader.load("//vi.wikisource.org/w/index.php?title=User:Vinhtantran/Running_header.js&action=raw&ctype=text/javascript");
mw.loader.load("//vi.wikisource.org/w/index.php?title=User:Vinhtantran/Mise_en_page.js&action=raw&ctype=text/javascript");