For faster navigation, this Iframe is preloading the Wikiwand page for מדיה ויקי:Gadget-Warnings.js.

מדיה ויקי:Gadget-Warnings.js

/* סקריפט להוספת רשימת אזהרות כשעורכים דף שיחה של אנונימי, נכתב על-ידי ערן */
function insertWarning( index, title ) {
    if( index > 0 ) {
        document.getElementById("wpSummary").value += title;
        document.getElementById("wpTextbox1").value += "{" + "{" + (mw.config.get('substWarning') ? "ס:" : "") + title + ")) ~~" + "~~";
    }
}

$(document).ready(function(){
    var warnings = ["בחרו הודעה כדי להוסיף", "אזהרה", "הבל", "ניסויים",  "לך", "הזמנה", "תודה", "ויקיזציה", "טעות", "נייטרליות", "נחסמת", "מילון", "כבר קיים", "שגיאה", "העתקה", "פרסומת", "אוטוביוגרפיה", "נמחק", "קישור מבוטל", "נמחק ניסויים", "הסבר", "בוטל", "סגנון", "חזרה על עריכה", "תלונה" ];
    if( $.inArray( mw.config.get( 'wgAction' ),[ 'edit','submit' ] ) == -1 ) return; // not edit page
    if( mw.config.get( 'wgNamespaceNumber' ) != 3 || (!mw.util.isIPv4Address( mw.config.get( 'wgTitle' ) ) && !mw.util.isIPv6Address( mw.config.get( 'wgTitle' ) )) ) return; // not an anonymous user talk


    var select=$('<select>',{'id':'warningsList'}).append( $(warnings).map(function(){return $('<option>',{'text':this, 'title': this}).get(0)}) );
    $('div.editOptions').before($('<div>',{css:{float:'left'}, text: 'אזהרות:'}).append(select));
    select.get(0).onchange = function() {
        insertWarning( this.selectedIndex, this[this.selectedIndex].title );
        this.selectedIndex = 0;
        return false;
    }
});
{{bottomLinkPreText}} {{bottomLinkText}}
מדיה ויקי:Gadget-Warnings.js
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?