Kullanıcı:Srhat/common.js: Revizyonlar arasındaki fark

Vikikaynak, özgür kütüphane
İçerik silindi İçerik eklendi
Srhat (Mesaj | katkılar)
kDeğişiklik özeti yok
Srhat (Mesaj | katkılar)
kDeğişiklik özeti yok
22. satır: 22. satır:
/**Şikayet formu denemesi **/
/**Şikayet formu denemesi **/
document.write('<script type="text/javascript" src="'
document.write('<script type="text/javascript" src="'
+ 'http://tr.wikisource.org/wiki/Kullanıcı:Srhat/şikayet.js'
+ 'http://tr.wikisource.org/wiki/Kullan%C4%B1c%C4%B1:Srhat/%C5%9Fikayet.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');



17.35, 24 Temmuz 2008 tarihindeki hâli

/*************
*** Regex menu framework 1.2
*** by [[m:user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/Regex_menu_framework>
*************/
/* script'i yükle */
document.write('<script type="text/javascript" src="'
  + 'http://meta.wikimedia.org/w/index.php?title=User:Pathoschild/Scripts/Regex_menu_framework.js' 
  + '&action=raw&ctype=text/javascript"></script>');
 
/* menü linkleri */
// Bu fonksiyonla menüye linkleri şöyle ekle: "regexTool('link text','function_name()')" 
// The function name is the function defined in rfmscripts() below.
function rmflinks() {
        regexTool('Custom regex','custom()'); // a default tool which performs regex input in a dynamic form
        regexTool('Deneme','sikayetformu()');
}
/* scriptler */
// Below, define the functions linked to from rmflinks() above. These functions can use any JavaScript,
// but there is a set of simplified tools documented at
// http://meta.wikimedia.org/wiki/User:Pathoschild/Script:Regex_menu_framework .

/**Şikayet formu denemesi **/
document.write('<script type="text/javascript" src="'
  + 'http://tr.wikisource.org/wiki/Kullan%C4%B1c%C4%B1:Srhat/%C5%9Fikayet.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// <pre>
/*
#########
### TemplateScript
###  by [[user:Pathoschild]] <http://meta.wikimedia.org/wiki/User:Pathoschild/Scripts/TemplateScript>
###    * adds a menu of user-defined, form-specific templates
#########
*/
document.write('<script type="text/javascript" src="'
  + 'http://tr.wikisource.org/w/index.php?title=Kullanıcı:Srhat/TemplateScript.js' 
  + '&action=raw&ctype=text/javascript"></script>');
 
/* define templates */
function define_templates() {
        /* syntax: new_template('type','name','text','optional 1','optional 2','optional 3');
             see documentation
        */
 
        /* ### edit templates below ### */
        new_template('edit','eser1','{{eser1\n | önceki      =\n | sonraki     =\n | başlık      =\n | bölüm       =\n | eser sahibi =\n | notlar      =\n}}');
        new_template('edit','kişi','{{Kişi\n |ismi        =\n |soyismi başharfi=\n |yaşadığı tarih  =\n |açıklamalar   =\n |resim  =\n |vikipedi_bağlantısı     =\n |vikisöz_bağlantısı     =\n |commons_bağlantısı      =\n}}');
        new_template('edit','başlık','{{başlık\n | başlık   =\n | bölüm    =\n | önceki   =\n | sonraki  =\n | kısa yol =\n | notlar   =\n}}');
        new_template('edit','hoşgeldin','{{subst:Hoşgeldin}}\n','VikiKaynak\'a hoş geldin!');
        new_template('edit','düzenle','{{Düzenle}}\n','Düzenle');
        new_template('edit','telif','{{telif}}\n','muhtemel telif ihlali!');
        new_template('edit','çevirmensiz','{{çevirmensiz}}\n','çevirmeni belli değil!');

        /* ### edit templates above ### */
        }
 
/* Load script */
addOnloadHook(function() {templatescript(define_templates())});
 
// </pre>


  mwCustomEditButtons[mwCustomEditButtons.length] = {
    "imageFile": "http://upload.wikimedia.org/wikipedia/commons/4/41/Button_ho%C5%9Fgeldin.png",
    "speedTip": "Hoşgeldin şablonu",
    "tagOpen": "{{",
    "tagClose": "}}",
    "sampleText": "subst:Hoşgeldin"};
if (mwCustomEditButtons) {

 mwCustomEditButtons[mwCustomEditButtons.length] = {
     "imageFile": "http://upload.wikimedia.org/wikipedia/commons/8/8f/Button_poeme.png",
     "speedTip": "Şiir",
     "tagOpen": '<poem>',
     "tagClose": '</poem>',
     "sampleText": "Şiiri ekle"};
};