משתמש אלמוני
מ
אין תקציר עריכה
מ (רק בתצוגה) |
מאין תקציר עריכה |
||
שורה 1: | שורה 1: | ||
/* | |||
* Adds an automatic "{{תב|מוגן}}" or "{{תב|מוגן חלקית}}" template when the page is protected. | |||
* You can use the {{תב|ללא הודעת הגנה אוטומטית}} to prevent the protection notice from being inserted. | |||
* | |||
* written by [[User:Yonidebest]] | |||
* | |||
*/ | |||
function alertProtected() { | function alertProtected() { | ||
if ((wgRestrictionEdit[0] == 'sysop' || wgRestrictionEdit[0] == 'autoconfirmed') | /* only run if: | ||
* the page is protected (not including "move" protection) AND | |||
* the page is in edit or submit view AND | |||
* the page doesn't contain the {{תב|ללא הודעת הגנה אוטומטית}} template | |||
*/ | |||
if ((wgRestrictionEdit[0] == 'sysop' || wgRestrictionEdit[0] == 'autoconfirmed') && (wgAction == 'view' || wgAction == 'submit') && !document.getElementById('pl-noprotectionnotice')) { | |||
var alertLink = '<a href="/wiki/'; | var alertLink = '<a href="/wiki/'; |