MediaWiki:TemplateNotice.js:修订间差异
Tbpedia>Sophivorus (Created page with "→* * This script interacts with [[Template:Notice]] * [[Category:Template script pages]]: var TemplateNotice = { init: function () { $( '.template-notice-more' ).on( 'click', TemplateNotice.showAll ); }, showAll: function () { $moreButton = $( this ); $moreButton.hide(); $moreButton.prevAll().show(); } }; $( TemplateNotice.init );") |
小 (导入1个版本) |
(没有差异)
| |
2024年3月2日 (六) 16:45的最新版本
/**
* This script interacts with [[Template:Notice]]
* [[Category:Template script pages]]
*/
var TemplateNotice = {
init: function () {
$( '.template-notice-more' ).on( 'click', TemplateNotice.showAll );
},
showAll: function () {
$moreButton = $( this );
$moreButton.hide();
$moreButton.prevAll().show();
}
};
$( TemplateNotice.init );