Thành viên:Thucproa1/vector.js
Chú ý: Sau khi lưu thay đổi trang, bạn phải xóa bộ nhớ đệm của trình duyệt để nhìn thấy các thay đổi. Google Chrome, Firefox, Internet Explorer và Safari: Giữ phím ⇧ Shift và nhấn nút Reload/Tải lại trên thanh công cụ của trình duyệt. Để biết chi tiết và hướng dẫn cho các trình duyệt khác, xem Trợ giúp:Xóa bộ nhớ đệm.
mw.loader.using('mediawiki.action.edit', function () {
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
today = dd+'/'+mm+'/'+yyyy;
var button = {
id: 'button-comment',
imageFile: '//upload.wikimedia.org/wikipedia/en/3/34/Button_hide_comment.png',
speedTip: 'Comment visible only for editors',
tagOpen: '{{UpdateFF|',
tagClose: '}}',
sampleText: ''+today+''
};
mw.toolbar.addButton(
button.imageFile,
button.speedTip,
button.tagOpen,
button.tagClose,
button.sampleText,
button.id,
button.id
);
});