Senior9324 (토론 | 기여) 편집 요약 없음 |
Senior9324 (토론 | 기여) 편집 요약 없음 |
||
10번째 줄: | 10번째 줄: | ||
( function ( mw, $ ) { | ( function ( mw, $ ) { | ||
$( function () { | $( function () { | ||
var conf | var conf; | ||
conf = { | conf = { | ||
17번째 줄: | 17번째 줄: | ||
portletTooltip: '실험실로 가기' | portletTooltip: '실험실로 가기' | ||
}; | }; | ||
mw.util.addPortletLink( | mw.util.addPortletLink( |
2015년 5월 16일 (토) 00:10 판
//mw.loader.load( '//librewiki.net/index.php?title=User:Senior9324/FileUploadWizard.js&action=raw&ctype=text/javascript' );
/**
* Add a "My sandbox" link to the personal portlet menu.
*
* Required modules: mediawiki.util, mediawiki.Title, mediawiki.Uri
*
* @source www.mediawiki.org/wiki/Snippets/MySandbox
* @version 2014-07-16
*/
( function ( mw, $ ) {
$( function () {
var conf;
conf = {
subpageName: '실험실',
portletLabel: '실험실',
portletTooltip: '실험실로 가기'
};
mw.util.addPortletLink(
(mw.config.get('skin') === 'newiwiki') ? 'personalbar' : 'p-personal',
'/wiki/Special:MyPage/실험실',
conf.portletLabel,
'pt-sandbox',
conf.portletTooltip,
null,
'#pt-preferences'
);
} );
}( mediaWiki, jQuery ) );