//kulanıcı uyar en alta şablon
var portletLink = mw.util.addPortletLink( 'p-cactions', '#',
'Uyar', 'ca-my-portlet', 'Uyar' );
$( portletLink ).click( function ( e ) {
ic=prompt("Uyarı şablonu?");
e.preventDefault();
location.href=mw.config.get('wgServer')+mw.config.get('wgScript')+"?title="+encodeURIComponent(mw.config.get('wgPageName'))+ "&action=edit&uyar="+ic;
});
if(location.href.indexOf("&uyar=")!=-1&&document.getElementById('wpTextbox1')!==null)
{
var x=decodeURIComponent(location.href.split("&uyar=")[1]);
document.editform.wpTextbox1.value = document.editform.wpTextbox1.value+"{"+"{"+x+"}}\n\n" ;
document.getElementById('wpPreview').click();
}
//en alta şablon son