Kullanıcı:Denisutku/common.js: Revizyonlar arasındaki fark
İçerik silindi İçerik eklendi
Pathoschild (mesaj | katkılar) TemplateScript 0.5 => 0.9 |
Pathoschild (mesaj | katkılar) disabled obsolete scripts |
||
(Aynı kullanıcı tarafından yapılan 2 ara revizyon gösterilmiyor) | |||
1. satır: | 1. satır: | ||
⚫ | |||
// Popup menü |
// Popup menü |
||
⚫ | |||
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript'); |
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript'); |
||
simplePopups=false; |
|||
//simplePopups=false; |
|||
//popupAdminLinks=false; |
|||
popupDelay=1; |
//popupDelay=1; |
||
popupHideDelay=0.2; |
//popupHideDelay=0.2; |
||
popupStructure='menus'; |
//popupStructure='menus'; |
||
popupImages=false; |
|||
//popupImages=false; |
|||
//popupOnEditSelection=false; |
|||
popupDragging=true; |
//popupDragging=true; |
||
imagePopupsForImages=false; |
//imagePopupsForImages=false; |
||
popupSubpopups=true; |
//popupSubpopups=true; |
||
popupEditCounterTool="kate"; |
//popupEditCounterTool="kate"; |
||
⚫ | |||
//popupRevertSummary="$3 tarafından kaydedilen $2 hali [[:en:Wikipedia:Tools/Navigation popups|geri getirildi]]"; |
|||
⚫ | |||
removeTitles=true; |
|||
//removeTitles=true; |
|||
//popupFixRedirs=true; |
|||
//popupFixDabs=true; |
|||
// </nowiki> |
|||
//yardımcı fonksiyonlar |
//yardımcı fonksiyonlar |
||
/** |
|||
//kaynak:[[:en:user:Pathoschild]] //([http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/TemplateScript]) |
|||
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor. |
|||
$.getScript('//meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/TemplateScript/dev.js&action=raw&ctype=text/javascript', function () { |
|||
* @see https://meta.wikimedia.org/wiki/TemplateScript |
|||
⚫ | |||
* @update-token [[File:pathoschild/templatescript.js]] |
|||
⚫ | |||
*/ |
|||
⚫ | |||
// <nowiki> |
|||
⚫ | |||
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() { |
|||
⚫ | |||
⚫ | |||
⚫ | |||
[ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
], |
|||
{ forActions: 'edit' } // common fields |
|||
⚫ | |||
}); |
}); |
||
// </nowiki> |
Sayfanın 04.43, 18 Ağustos 2015 tarihindeki hâli
// Popup menü
// <nowiki>
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Lupin/popups.js&action=raw&ctype=text/javascript');
//simplePopups=false;
//popupAdminLinks=false;
//popupDelay=1;
//popupHideDelay=0.2;
//popupStructure='menus';
//popupImages=false;
//popupOnEditSelection=false;
//popupDragging=true;
//imagePopupsForImages=false;
//popupSubpopups=true;
//popupEditCounterTool="kate";
//popupRevertSummary="$3 tarafından kaydedilen $2 hali [[:en:Wikipedia:Tools/Navigation popups|geri getirildi]]";
//popupQueriedRevertSummary="[[Kullanıcı:$3|$3]] tarafından kaydedilen $2 hali [[:en:Wikipedia:Tools/Navigation popups|geri getirildi]]";
//removeTitles=true;
//popupFixRedirs=true;
//popupFixDabs=true;
// </nowiki>
//yardımcı fonksiyonlar
/**
* TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
* @see https://meta.wikimedia.org/wiki/TemplateScript
* @update-token [[File:pathoschild/templatescript.js]]
*/
// <nowiki>
$.ajax('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js', { dataType:'script', cache:true }).then(function() {
pathoschild.TemplateScript.add(
[
{ name:'hoş geldin', template:'{{subst:hg}}\n', editSummary:'Vikipedi\'ye hoş geldin!' },
{ name:'imza', template:' {{subst:Kullanıcı:Denisutku/imza}} <small>{{subst:CURRENTTIME}}, {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}</small>\n', editSummary:' ' },
{ name:'taslak', template:'{{taslak}}\n', editSummary:'taslak şekline getirilerek düzenlendi' },
{ name:'Sil', template:'{{sil|[[VP:HS]]}}\n', editSummary:'Sil' },
{ name:'boş kategori', template:'{{sil|[[VP:HS#Kategoriler|Kategori 1 - Boş kategori]]}}\n', editSummary:'Sil - [[VP:HS#Kategoriler|Kategori 1]] boş kategori' }
],
{ forActions: 'edit' } // common fields
);
});
// </nowiki>