Документација модула[прикажи] [уреди] [историја] [освежи]

This module contains configuration data for Module:Protection banner. For documentation please see the module comments, and if you're not sure how something works you can ask on the module talk page.

-- This module provides configuration data for [[Module:Protection banner]].

return {

--------------------------------------------------------------------------------
--
--                                BANNER DATA
--
--------------------------------------------------------------------------------

--[[
-- Banner data consists of six fields:
-- * text - the main protection text that appears at the top of protection
--   banners.
-- * explanation - the text that appears below the main protection text, used
--   to explain the details of the protection.
-- * tooltip - the tooltip text you see when you move the mouse over a small
--   padlock icon. Hand icon needs removal, cursor arrow to be displayed.
-- * link - the page that the small padlock icon links to.
-- * alt - the alt text to be displayed instead of the small padlock icon if image deleted. This is alternative if tooltip undefined
--   text for the large protection banners.
-- * image - the padlock image used in both protection banners and small padlock
--   icons.
--
-- The module checks in three separate tables to find a value for each field.
-- First it checks the banners table, which has values specific to the reason
-- for the page being protected. Then the module checks the defaultBanners
-- table, which has values specific to each protection level. Finally, the
-- module checks the masterBanner table, which holds data for protection
-- templates to use if no data has been found in the previous two tables.
--
-- The values in the banner data can take parameters. These are specified
-- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name
-- enclosed in curly braces).
--
--                          Available parameters:
--
-- ${CURRENTVERSION} - a link to the page history or the move log, with the
-- display message "current-version-edit-display" or
-- "current-version-move-display".
--
-- ${EDITREQUEST} - a link to create an edit request for the current page.
--
-- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes
-- on the talk page; you may submit a request to ask an administrator to make
-- an edit if it is minor or supported by consensus."
--
-- ${IMAGELINK} - a link to set the image to, depending on the protection
-- action and protection level.
--
-- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry
-- is set. E.g. "Editing of this page by new or unregistered users is currently 
-- disabled until dd Month YYYY."
--
-- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation
-- so that it can be used in run-on sentences.
--
-- ${PAGETYPE} - the type of the page, e.g. "article" or "template".
-- Defined in the cfg.pagetypes table.
--
-- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g.
-- "Editing of this page by new or unregistered users is currently disabled"
--
-- ${PROTECTIONDATE} - the protection date, if it has been supplied to the
-- template.
--
-- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or
-- "semi-protected".
--
-- ${PROTECTIONLOG} - a link to the protection log or the pending changes log,
-- depending on the protection action.
--
-- ${TALKPAGE} - a link to the talk page. If a section is specified, links
-- straight to that talk page section.
--
-- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to
-- create a blurb like "This template is semi-protected", or "This article is
-- move-protected until DD Month YYYY".
--
-- ${VANDAL} - links for the specified username (or the root page name)
-- using Module:Vandal-m.
--
--                                 Functions
--
-- For advanced users, it is possible to use Lua functions instead of strings
-- in the banner config tables. Using functions gives flexibility that is not
-- possible just by using parameters. Functions take two arguments, the
-- protection object and the template arguments, and they must output a string.
--
-- For example:
--
-- text = function (protectionObj, args)
--     if protectionObj.level == 'autoconfirmed' then
--         return 'foo'
--     else
--         return 'bar'
--     end
-- end
--
-- Some protection object properties and methods that may be useful:
-- protectionObj.action - the protection action
-- protectionObj.level - the protection level
-- protectionObj.reason - the protection reason
-- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set
--     to indefinite, and the protection time in unix time if temporary.
-- protectionObj.protectionDate - the protection date in unix time, or nil if
--     unspecified.
-- protectionObj.bannerConfig - the banner config found by the module. Beware
--     of editing the config field used by the function, as it could create an
--     infinite loop.
-- protectionObj:isProtected - returns a boolean showing whether the page is
--     protected.
-- protectionObj:isTemporary - returns a boolean showing whether the expiry is
--     temporary.
-- protectionObj:isIncorrect - returns a boolean showing whether the protection
--     template is incorrect.
--]]

-- The master banner data, used if no values have been found in banners or
-- defaultBanners.
masterBanner = {
	text = '${INTROBLURB}',
	explanation = '${EXPLANATIONBLURB}',
	tooltip = '${TOOLTIPBLURB}',
	link = '${IMAGELINK}',
	alt = 'Страница је ${PROTECTIONLEVEL}!'
},

-- The default banner data. This holds banner data for different protection
-- levels.
-- *required* - this table needs edit, move, autoreview and upload subtables.
defaultBanners = {
	edit = {},
	move = {},
	autoreview = {
		autoconfirmed = {
			alt = 'Страница је заштићена због измена на чекању нивоа 1!',
			tooltip = 'Све измене нерегистрованих и нових корисника се проверавају пре него што постану видљиве нерегистрованим корисницима!',
			image = 'Padlock-silver-light.svg'
		},
		default = {
			alt = 'Страница је заштићена због измена на чекању нивоа 2!',
			tooltip = 'Све измене корисника који нису патролери или администратори се проверавају пре него што постану видљиве нерегистрованим корисницима!',
			image = 'Padlock-orange.svg'
		}
	},
	upload = {}
},

-- The banner data. This holds banner data for different protection reasons.
-- In fact, the reasons specified in this table control which reasons are
-- valid inputs to the first positional parameter.
--
-- There is also a non-standard "description" field that can be used for items
-- in this table. This is a description of the protection reason for use in the
-- module documentation.
--
-- *required* - this table needs edit, move, autoreview and upload subtables.
banners = {
	edit = {
		blp = {
			description = 'За странице заштићене да би се испоштовала смерница о [[Википедија:Биографије живих особа|биографијама живих особа]]',
			text = '${INTROFRAGMENT} да би се испоштовала [[Википедија:Биографије живих особа|Википедијина смерница о биографијама живих особа]].',
			tooltip = '${TOOLTIPFRAGMENT} да би се испоштовала смерница о биографијама живих особа!'
		},
		dmca = {
			description = 'За странице заштићене од стране Задужбине Викимедија због захтева [[:en:Digital Millennium Copyright Act|Дигиталног миленијумског закона о ауторским правима]] за уклањањем',
			explanation = function (protectionObj, args)
				local ret = 'Сходно обавештењу о правима власника под Дигиталним миленијумским законом о ауторским правима (DMCA) везано за садржај у овом чланку, Задужбина Викимедија је деловала под применљивим законом и уклонила је и забранила садржај који је био споран.'
				if args.notice then
					ret = ret .. ' Копија примљеног обавештења може да се пронађе овде: ' .. args.notice .. '.'
				end
				ret = ret .. '&#32;За више информација, укључујући <span style="white-space:nowrap;">веб-сајтове</span> на којима се расправља како уложити жалбу на обавештење, молимо погледајте [[:en:Wikipedia:Office actions|ову страницу]] и садржај на страници за разговор (${TALKPAGE}) чланка. Не уклањајте овај шаблон из чланка док се ограничења не повуку.'
				return ret
			end,
			image = 'Padlock-black.svg'
		},
		dispute = {
			description = 'За странице заштићене због спорова око уређивања',
			text = function (protectionObj, args)
				-- Find the value of "disputes".
				local disputes
				if args.section then
					disputes = string.format(
						'&#32;[[%s:%s#%s|%s]]',
						mw.site.namespaces[protectionObj.title.namespace].talk.name,
						protectionObj.title.text,
						args.section,
						display
					)
				else
					disputes = ''
				end

				-- Make the blurb, depending on the expiry and the disputes value status (unchanged or changed).
				local msg
				if type(protectionObj.expiry) == 'number' then
					msg = '${INTROFRAGMENT} или док спорови око уређивања не буду решени.'
				else
					msg = '${INTROFRAGMENT} док спорови око уређивања не буду решени.'
				end
				return string.format(msg, disputes)
			end,
			explanation = 'Ова заштита није пуко инсистирање на ${CURRENTVERSION}. /${EXPLANATIONBLURB}/',
			tooltip = '${TOOLTIPFRAGMENT} због спорова око уређивања!'
		},
		ecp = {
			description = 'За чланке у тематским подручјима ауторизованим од стране [[:en:Wikipedia:Arbitration Committee|Арбитрарног комитета]] или у складу са критеријумима за употребу заједнице',
			tooltip = '${PAGETYPE} је под проширеним ограничењима за уређивање!',
			alt = '${PAGETYPE} је заштићен(а) проширеном заштитом!'
		},
		mainpage = {
			description = 'За странице заштићене пошто се приказују на [[Главна страна|Главној страници]]',
			text = 'Ова датотека је тренутно [[:en:Wikipedia:This page is protected|заштићена]] од уређивања зато што је тренутно или ће ускоро да буде приказана на [[Главна страна|Главној страници]].',
			explanation = 'Слике на Главној страници су заштићене због своје велике видљивости. Молимо да дискутујете о било каквим неопходним изменама на страници за разговор (${TALKPAGE}).<br /><span style="font-size:90%;">Администратори: Када ова слика дефинитивно буде уклоњена са Главне странице, молимо да скинете заштиту са ове датотеке или је смањите на полузаштиту, по потреби.</span>'
		},
		office = {
			description = 'За странице заштићене од стране Задужбине Викимедија',
			text = function (protectionObj, args)
				local ret = '${PAGETYPE} је тренутно под подложном ревизијом [[:en:Wikipedia:Office actions|Уреда Задужбине Викимедија]] и под заштитом је.'
				if protectionObj.protectionDate then
					ret = ret .. '&#32;Под заштитом је од датума: ${PROTECTIONDATE} г.'
				end
				return ret
			end,
			explanation = 'Ако можете да уређујете ову страницу, молимо да дискутујете о свим изменама и додавањима садржаја прво на страници за разговор (${TALKPAGE}). Не уклањајте заштиту са ове странице осим ако сте овлашћени од стране Задужбине Викимедија да то урадите.',
			image = 'Padlock-black.svg'
		},
		reset = {
			description = 'За странице заштићене од стране Задужбине Викимедија и „ресет” на тзв. скелетну верзију',
 			text = '${PAGETYPE} је тренутно под подложном ревизијом [[:en:Wikipedia:Office actions|Уреда Задужбине Викимедија]] и под заштитом је.',
			explanation = function (protectionObj, args)
				local ret = ''
				if protectionObj.protectionDate then
					ret = ret .. '${PAGETYPE} је ${PROTECTIONLEVEL}: ${PROTECTIONDATE} г.'
				end
				if ret == '' then
					ret = ret .. 'Страница је морало да буде сведена на упрошћену, „скелетну” верзију тако да се може у целости написати поново да би се испоштовале смернице о [[Википедија:Неутрална тачка гледишта|неутралној тачки гледишта]] и [[Википедија:Проверљивост|проверљивости]]. Стандардне Википедијине смернице ће да се примењују на поново написани текст&nbsp;— који ће у коначници да постане доступан за све уреднике&nbsp;— и исти ће да буде стриктно надгледан. ${PAGETYPE} је тренутно ${PROTECTIONLEVEL} док се текст поново пише. Било који унос материјала директно из верзија пре стављања заштите на ову страницу биће уклоњен, као и сваки материјал додат на страницу који није исправно референциран. Припадајуће странице за разговор су такође обрисане на исти датум. Ако можете да уређујете ову страницу, молимо да дискутујете о свим изменама и додавањима садржаја прво на страници за разговор (${TALKPAGE}). Не занемарујте претходно упозорење и не уклањајте заштиту са ове странице, осим ако сте овлашћени од стране Задужбине Викимедија да то урадите. Ниједан уредник не сме да уклони ово обавештење.'
				else
					ret = ret .. ' Страница је морало да буде сведена на упрошћену, „скелетну” верзију тако да се може у целости написати поново да би се испоштовале смернице о [[Википедија:Неутрална тачка гледишта|неутралној тачки гледишта]] и [[Википедија:Проверљивост|проверљивости]]. Стандардне Википедијине смернице ће да се примењују на поново написани текст&nbsp;— који ће у коначници да постане доступан за све уреднике&nbsp;— и исти ће да буде стриктно надгледан. ${PAGETYPE} је тренутно ${PROTECTIONLEVEL} док се текст поново пише. Било који унос материјала директно из верзија пре стављања заштите на ову страницу биће уклоњен, као и сваки материјал додат на страницу који није исправно референциран. Припадајуће странице за разговор су такође обрисане на исти датум. Ако можете да уређујете ову страницу, молимо да дискутујете о свим изменама и додавањима садржаја прво на страници за разговор (${TALKPAGE}). Не занемарујте претходно упозорење и не уклањајте заштиту са ове странице, осим ако сте овлашћени од стране Задужбине Викимедија да то урадите. Ниједан уредник не сме да уклони ово обавештење.'
				end
				return ret
			end,
			image = 'Padlock-black.svg'
		},
		sock = {
			description = 'За странице заштићене због [[Википедија:Лутак|лутака]]',
			text = '${INTROFRAGMENT} да би се спречили [[Википедија:Лутак|луци]] [[Википедија:Правила блокирања|блокираних]] или [[Википедија:Правила блокирања|банованих корисника]] од уређивања.',
			tooltip = '${TOOLTIPFRAGMENT} да би се спречили луци блокираних или банованих корисника од уређивања!'
		},
		template = {
			description = 'За [[:en:Wikipedia:High-risk templates|високоризичне]] шаблоне и Lua модуле',
			text = '${PAGETYPE} је трајно [[:en:Help:Protection|заштићен(а)]], зато што је уређивање истог [[:en:Wikipedia:High-risk templates|високоризично]].',
			explanation = 'Молимо да дискутујете о било каквим изменама на страници за разговор (${TALKPAGE}); можете ${EDITREQUEST} да бисте питали [[Википедија:Администратори|администратора]] или [[:en:Wikipedia:Template editor|уредника шаблона]] да направи измену ако је иста [[:en:Help:Minor edit#When to mark an edit as a minor edit|мања]] или у складу са [[Википедија:Консензус|концензусом]]. ${PAGETYPE} може да престане бити заштићен(а) ако се то [[:en:Wikipedia:Requests for page protection|захтева]].',
			tooltip = '${PAGETYPE} је високог ризика и трајно је заштићен(а)! да би се спречио вандализам!',
			alt = '${PAGETYPE} је трајно заштићен(а)!'
		},
		usertalk = {
			description = 'За странице заштићене од реметилачких измена од стране одређеног корисника',
			text = '${INTROFRAGMENT} да би се спречио ${VANDAL} од уношења реметилачких измена, као што је злоупотребљавање шаблона за &#123;&#123;[[Шаблон:Деблокирање|деблокирање]]&#125;&#125;.',
			explanation = 'Ако не можете да уређујете ову корисничку страницу за разговор и морате да направите измену или оставите поруку, можете [[:en:Wikipedia:Requests for page protection#Current requests for edits to a protected page|захтевати прављење измене]], [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати скидање заштите]], [[Special:Userlogin|пријавите се]], или [[Special:UserLogin/signup|направити налог]].'
		},
		vandalism = {
			description = 'За странице заштићене од [[Википедија:Вандализам|вандализма]]',
			text = '${INTROFRAGMENT} због [[Википедија:Вандализам|вандализма]].',
			explanation = function (protectionObj, args)
				local ret = ''
				if protectionObj.level == 'sysop' then
					ret = ret .. 'Ова заштита није пуко инсистирање на ${CURRENTVERSION}.&#32;'
				end
				return ret .. '${EXPLANATIONBLURB}'
			end,
			tooltip = '${TOOLTIPFRAGMENT} због вандализма!'
		}
	},
	move = {
		dispute = {
			description = 'За странице заштићене од премештања страница због спорова око имена странице',
			explanation = 'Ова заштита није пуко инсистирање на ${CURRENTVERSION}. /${EXPLANATIONBLURB}/',
			image = 'Padlock-olive.svg'
		},
		vandalism = {
			description = 'За странице заштићене од [[Википедија:Вандализам#Вандализовање преименовањем страница |вандализма премештањем страница]]'
		}
	},
	autoreview = {},
	upload = {}
},

--------------------------------------------------------------------------------
--
--                            GENERAL DATA TABLES
--
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
-- Protection blurbs
--------------------------------------------------------------------------------

-- This table produces the protection blurbs available with the
-- ${PROTECTIONBLURB} parameter. It is sorted by protection action and
-- protection level, and is checked by the module in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionBlurbs = {
	edit = {
		default = '${PAGETYPE} је тренутно [[:en:Help:Protection|под заштитом]] од уређивања.',
		autoconfirmed = '${PAGETYPE} је тренутно за [[Википедија:Нивои корисничког приступа#Нови корисници|нове]] или [[Википедија:Нивои корисничког приступа#Нерегистровани корисници|нерегистроване]] кориснике [[:en:Help:Protection|под заштитом]].',
		extendedconfirmed = '${PAGETYPE} је ${PROTECTIONLEVEL} као резултат извршења [[:en:Wikipedia:Arbitration Committee|Арбитрарног комитета]] или у складу са [[Википедија:Правила о заштити страница#Проширена заштита|критеријумима за употребу заједнице]].'
	},
	move = {
		default = '${PAGETYPE} је тренутно [[:en:Help:Protection|под заштитом]] од [[:en:Help:Moving a page|премештања страница]].'
	},
	autoreview = {
		autoconfirmed = '${PAGETYPE} и све припадајуће измене [[Википедија:Нивои корисничког приступа#Нови корисници|нових]] или [[Википедија:Нивои корисничког приступа#Нерегистровани корисници|нерегистрованих]] корисника су тренутно [[:en:Wikipedia:Pending changes|на чекању док их неко не означи као патролиране]].',
		default = '${PAGETYPE} и све припадајуће измене које нису измене [[:en:Wikipedia:Reviewing|патролера]] или [[:en:Wikipedia:Administrators|администратора]] су тренутно [[:en:Wikipedia:Pending changes|на чекању док их неко не означи као патролиране]].'
	},
	upload = {
		default = '${PAGETYPE} тренутно није могуће ажурирати (поставити нову верзију)...'
	}
},


--------------------------------------------------------------------------------
-- Explanation blurbs
--------------------------------------------------------------------------------

-- This table produces the explanation blurbs available with the
-- ${EXPLANATIONBLURB} parameter. It is sorted by protection action,
-- protection level, and whether the page is a talk page or not. If the page is
-- a talk page it will have a talk key of "talk"; otherwise it will have a talk
-- key of "subject". The table is checked in the following order:
-- 1. page's protection action, page's protection level, page's talk key
-- 2. page's protection action, page's protection level, default talk key
-- 3. page's protection action, default protection level, page's talk key
-- 4. page's protection action, default protection level, default talk key
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
explanationBlurbs = {
	edit = {
		autoconfirmed = {
			subject = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Ако не можете да уређујете ову страницу и желите да направите измену, можете ${EDITREQUEST}, дискутовати о изменама на страници за разговор (${TALKPAGE}), [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати скидање заштите]], [[Special:Userlogin|пријавити се]], или [[Special:UserLogin/signup|направити налог]].',
			default = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Ако не можете да уређујете ову страницу и желите да направите измену, можете [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати скидање заштите]], [[Special:Userlogin|пријавити се]], или [[Special:UserLogin/signup|направити налог]].'
		},
		extendedconfirmed = {
			default = 'Проширена заштиита спречава измене свих IP уредника и регистрованих корисника са мање од 30&nbsp;дана стажа и 500&nbsp;измена. [[Википедија:Правила о заштити страница#Проширена заштита|Смерница о употреби заједнице]] одређује да проширена заштита може да се примени у борби против ремећења, узев у обзир да се полузаштита показала неефективном. Молимо да дискутујете о било каквим изменама на страници за разговор (${TALKPAGE}); можете ${EDITREQUEST} да бисте захтевали неконверзијалне измене подржане [[Википедија:Концензус|концензусом]].'
		},
		default = {
			subject = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Молимо да дискутујете о било каквим изменама на страници за разговор (${TALKPAGE}); можете ${EDITREQUEST} да бисте питали [[Википедија:Администратори|администратора]] да направи измену ако је иста [[:en:Help:Minor edit#When to mark an edit as a minor edit|мања]] или у складу са [[Википедија:Консензус|концензусом]]. Можете такође [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати]] да се са странице скине заштита.',
			default = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Можете [[:en:Wikipedia:Requests for page protection#Current requests for edits to a protected page|захтевати измену]] ове странице, или [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|питати]] да се са исте скине заштита.'
		}
	},
	move = {
		default = {
			subject = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Страница и даље може да се уређује, али не може да се премешта док се заштита не скине. Молимо да дискутујете о било каквим предложеним премештањима на страници за разговор (${TALKPAGE}) или на [[:en:Wikipedia:Requested moves|Захтеваним премештањима]]. Можете такође [[:en:Wikipedia:Requests for page protection|захтевати]] да се са странице скине заштита.',
			default = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Страница и даље може да се уређује, али не може да се премешта док се заштита не скине. Молимо да дискутујете о било каквим предложеним премештањима на [[:en:Wikipedia:Requested moves|Захтеваним премештањима]]. Можете такође [[:en:Wikipedia:Requests for page protection|захтевати]] да се са странице скине заштита.'
		}
	},
	autoreview = {
		default = {
			reviewer = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. ${PAGETYPE} односно направљене измене неће да буду видљиве читаоцима док их не прихвати патролер или администратор. Да бисте избегли потребу за патролирањем Ваших измена, можете [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати скидање заштите]]. Искусни уредници могу такође захтевати [[:en:Wikipedia:Reviewing|корисничко право патролера]].',
			default = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. ${PAGETYPE} односно направљене измене нових и нерегистрованих корисника неће да буду видљиве читаоцима док их не прихвати патролер. Да бисте избегли потребу за патролирањем Ваших измена, можете [[:en:Wikipedia:Requests for page protection#Current requests for reduction in protection level|захтевати скидање заштите]], [[Special:Userlogin|пријавити се]], или [[Special:UserLogin/signup|направити налог]].'
		}
	},
	upload = {
		default = {
			default = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Страница и даље може да се уређује али нове верзије датотеке не могу да се поставе док се не скине заштита. Можете захтевати да се постави нова верзија користећи [[:en:Wikipedia:Edit requests|захтев за измену са заштитом]], или можете [[:en:Wikipedia:Requests for page protection|захтевати]] да са датотеке скине заштита.'
		}
	}
},

--------------------------------------------------------------------------------
-- Protection levels
--------------------------------------------------------------------------------

-- This table provides the data for the ${PROTECTIONLEVEL} parameter, which
-- produces a short label for different protection levels. It is sorted by
-- protection action and protection level, and is checked in the following
-- order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
protectionLevels = {
	edit = {
		default = 'под заштитом',
		templateeditor = 'под заштитом као шаблон',
		extendedconfirmed = 'под проширеном заштитом',
		autoconfirmed = 'под полузаштитом'
	},
	move = {
		default = 'под заштитом од премештања'
	},
	autoreview = {
	},
	upload = {
		default = 'под заштитом од ажурирања'
	}
},

--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------

-- This table lists different padlock images for each protection action and
-- protection level. It is used if an image is not specified in any of the
-- banner data tables, and if the page does not satisfy the conditions for using
-- the ['image-filename-indef'] image. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
images = {
	edit = {
		default = 'Padlock.svg',
		templateeditor = 'Padlock-pink.svg',
		extendedconfirmed = 'Padlock-blue.svg',
		autoconfirmed = 'Padlock-silver.svg'
	},
	move = {
		default = 'Padlock-olive.svg'
	},
	autoreview = {
		autoconfirmed = 'Padlock-silver-light.svg',
		default = 'Padlock-orange.svg'
	},
	upload = {
		default = 'Padlock-purple.svg'
	}
},

-- Pages with a reason specified in this table will show the special "indef"
-- padlock, defined in the 'image-filename-indef' message, if no expiry is set.
indefImageReasons = {
	template = true
},

--------------------------------------------------------------------------------
-- Image links
--------------------------------------------------------------------------------

-- This table provides the data for the ${IMAGELINK} parameter, which gets
-- the image link for small padlock icons based on the page's protection action
-- and protection level. It is checked in the following order:
-- 1. page's protection action, page's protection level
-- 2. page's protection action, default protection level
-- 3. "edit" protection action, default protection level
--
-- It is possible to use banner parameters inside this table.
-- *required* - this table needs edit, move, autoreview and upload subtables.
imageLinks = {
	edit = {
		default = 'Википедија:Правила о заштити страница#Потпуна заштита',
		templateeditor = 'Википедија:Правила о заштити страница#Шаблон',
		extendedconfirmed = 'Википедија:Правила о заштити страница#Проширена заштита',
		autoconfirmed = 'Википедија:Правила о заштити страница#Полузаштита'
	},
	move = {
		default = 'Википедија:Правила о заштити страница#Премештање'
	},
	autoreview = {
		autoconfirmed = 'Википедија:Правила о заштити страница#Измене на чекању 1',
		reviewer = 'Википедија:Правила о заштити страница#Измене на чекању 2'
	},
	upload = {
		default = 'Википедија:Правила о заштити страница#Постављање датотека'
	}
},

--------------------------------------------------------------------------------
-- Padlock indicator names
--------------------------------------------------------------------------------

-- This table provides the "name" attribute for the <indicator> extension tag
-- with which small padlock icons are generated. All indicator tags on a page
-- are displayed in alphabetical order based on this attribute, and with
-- indicator tags with duplicate names, the last tag on the page wins.
-- The attribute is chosen based on the protection action; table keys must be a
-- protection action name or the string "default".
padlockIndicatorNames = {
	autoreview = 'pp-autoreview',
	default = 'pp-default'
},

--------------------------------------------------------------------------------
-- Protection categories
--------------------------------------------------------------------------------

--[[
-- The protection categories are stored in the protectionCategories table.
-- Keys to this table are made up of the following strings:
--
-- 1. the expiry date
-- 2. the namespace
-- 3. the protection reason (e.g. "dispute" or "vandalism")
-- 4. the protection level (e.g. "sysop" or "autoconfirmed")
-- 5. the action (e.g. "edit" or "move")
-- 
-- When the module looks up a category in the table, first it will will check to
-- see a key exists that corresponds to all five parameters. For example, a
-- user page semi-protected from vandalism for two weeks would have the key
-- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module
-- changes the first part of the key to "all" and checks the table again. It
-- keeps checking increasingly generic key combinations until it finds the
-- field, or until it reaches the key "all-all-all-all-all".
--
-- The module uses a binary matrix to determine the order in which to search.
-- This is best demonstrated by a table. In this table, the "0" values
-- represent "all", and the "1" values represent the original data (e.g.
-- "indef" or "file" or "vandalism").
--
--        expiry    namespace reason   level     action
-- order
-- 1      1         1         1        1         1
-- 2      0         1         1        1         1
-- 3      1         0         1        1         1
-- 4      0         0         1        1         1
-- 5      1         1         0        1         1
-- 6      0         1         0        1         1
-- 7      1         0         0        1         1
-- 8      0         0         0        1         1
-- 9      1         1         1        0         1
-- 10     0         1         1        0         1
-- 11     1         0         1        0         1
-- 12     0         0         1        0         1
-- 13     1         1         0        0         1
-- 14     0         1         0        0         1
-- 15     1         0         0        0         1
-- 16     0         0         0        0         1
-- 17     1         1         1        1         0
-- 18     0         1         1        1         0
-- 19     1         0         1        1         0
-- 20     0         0         1        1         0
-- 21     1         1         0        1         0
-- 22     0         1         0        1         0
-- 23     1         0         0        1         0
-- 24     0         0         0        1         0
-- 25     1         1         1        0         0
-- 26     0         1         1        0         0
-- 27     1         0         1        0         0
-- 28     0         0         1        0         0
-- 29     1         1         0        0         0
-- 30     0         1         0        0         0
-- 31     1         0         0        0         0
-- 32     0         0         0        0         0
--
-- In this scheme the action has the highest priority, as it is the last
-- to change, and the expiry has the least priority, as it changes the most.
-- The priorities of the expiry, the protection level and the action are
-- fixed, but the priorities of the reason and the namespace can be swapped
-- through the use of the cfg.bannerDataNamespaceHasPriority table.
--]]

-- If the reason specified to the template is listed in this table,
-- namespace data will take priority over reason data in the protectionCategories
-- table.
reasonsWithNamespacePriority = {
	vandalism = true,
},

-- The string to use as a namespace key for the protectionCategories table for each
-- namespace number.
categoryNamespaceKeys = {
	[  2] = 'user',
	[  3] = 'user',
	[  4] = 'project',
	[  6] = 'file',
	[  8] = 'mediawiki',
	[ 10] = 'template',
	[ 12] = 'project',
	[ 14] = 'category',
	[100] = 'portal',
	[828] = 'module'
},

protectionCategories = {
	['all|all|all|all|all']                  = 'Википедијине заштићене странице',
	['all|all|office|all|all']               = 'Википедијине заштићене странице (Уред)',
	['all|all|reset|all|all']                = 'Википедијине заштићене странице (Уред)',
	['all|all|dmca|all|all']                 = 'Википедијине заштићене странице (Уред)',
	['all|all|mainpage|all|all']             = 'Википедијине потпуно заштићене датотеке за Главну страницу',
	['all|all|all|extendedconfirmed|all']    = 'Википедијине странице под 30—500 ограничењем за уређивање',
	['all|all|ecp|extendedconfirmed|all']    = 'Википедијине странице под 30—500 ограничењем за уређивање',
	['all|template|all|all|edit']            = 'Википедијини потпуно заштићени шаблони',
	['all|all|all|autoconfirmed|edit']       = 'Википедијине полузаштићене странице',
	['indef|all|all|autoconfirmed|edit']     = 'Википедијине трајно полузаштићене странице',
	['all|all|blp|autoconfirmed|edit']       = 'Википедијине трајно полузаштићене биографије живих особа',
	['temp|all|blp|autoconfirmed|edit']      = 'Википедијине привремено полузаштићене биографије живих особа',
	['all|all|dispute|autoconfirmed|edit']   = 'Википедијине странице полузаштићене због спора',
	['all|all|sock|autoconfirmed|edit']      = 'Википедијине странице полузаштићене од банованих корисника',
	['all|all|vandalism|autoconfirmed|edit'] = 'Википедијине странице полузаштићене против вандализма',
	['all|category|all|autoconfirmed|edit']  = 'Википедијине полузаштићене категорије',
	['all|file|all|autoconfirmed|edit']      = 'Википедијине полузаштићене датотеке',
	['all|portal|all|autoconfirmed|edit']    = 'Википедијини полузаштићени портали',
	['all|project|all|autoconfirmed|edit']   = 'Википедијине полузаштићене странице пројекта',
	['all|talk|all|autoconfirmed|edit']      = 'Википедијине полузаштићене странице за разговор',
	['all|template|all|autoconfirmed|edit']  = 'Википедијини полузаштићени шаблони',
	['all|user|all|autoconfirmed|edit']      = 'Википедијине полузаштићене корисничке странице и странице разговора са корисником',
	['all|template|all|templateeditor|edit'] = 'Википедијини шаблони са заштитом шаблона',
	['all|all|blp|sysop|edit']               = 'Википедијине трајно заштићене биографије живих особа',
	['temp|all|blp|sysop|edit']              = 'Википедијине привремено заштићене биографије живих особа',
	['all|all|dispute|sysop|edit']           = 'Википедијине странице заштићене због спора',
	['all|all|sock|sysop|edit']              = 'Википедијине странице заштићене од банованих корисника',
	['all|all|vandalism|sysop|edit']         = 'Википедијине странице заштићене против вандализма',
	['all|category|all|sysop|edit']          = 'Википедијине заштићене категорије',
	['all|file|all|sysop|edit']              = 'Википедијине потпуно заштићене датотеке',
	['all|project|all|sysop|edit']           = 'Википедијине потпуно заштићене странице пројекта',
	['all|talk|all|sysop|edit']              = 'Википедијине потпуно заштићене странице за разговор',
	['all|template|all|sysop|edit']          = 'Википедијини потпуно заштићени шаблони',
	['all|user|all|sysop|edit']              = 'Википедијине заштићене корисничке странице и странице разговора са корисником',
	['all|module|all|all|edit']              = 'Википедијини потпуно заштићени модули',
	['all|module|all|templateeditor|edit']   = 'Википедијини модули са заштитом шаблона',
	['all|module|all|autoconfirmed|edit']    = 'Википедијини полузаштићени модули',
	['all|all|all|sysop|move']               = 'Википедијине странице са заштитом премештања',
	['indef|all|all|sysop|move']             = 'Википедијине трајно заштићене странице са заштитом премештања',
	['all|all|dispute|sysop|move']           = 'Википедијине странице са заштитом премештања због спора',
	['all|all|vandalism|sysop|move']         = 'Википедијине странице са заштитом премештања против вандализма',
	['all|portal|all|sysop|move']            = 'Википедијини портали са заштитом премештања',
	['all|portal|all|sysop|move']            = 'Википедијини портали са заштитом премештања',
	['all|project|all|sysop|move']           = 'Википедијине странице пројекта са заштитом премештања',
	['all|talk|all|sysop|move']              = 'Википедијине странице за разговор са заштитом премештања',
	['all|template|all|sysop|move']          = 'Википедијини шаблони са заштитом премештања',
	['all|user|all|sysop|move']              = 'Википедијине корисничке странице и странице разговора са корисником са заштитом премештања',
	['all|all|all|autoconfirmed|autoreview'] = 'Википедијине странице заштићене због измена на чекању (ниво 1)',
	['all|all|all|reviewer|autoreview']      = 'Википедијине странице заштићене због измена на чекању (ниво 2)',
	['all|file|all|all|upload']              = 'Википедијине датотеке са заштитом ажурирања'
},

--------------------------------------------------------------------------------
-- Expiry category config
--------------------------------------------------------------------------------

-- This table configures the expiry category behaviour for each protection
-- action.
-- * If set to true, setting that action will always categorise the page if
--   an expiry parameter is not set.
-- * If set to false, setting that action will never categorise the page.
-- * If set to nil, the module will categorise the page if:
--   1) an expiry parameter is not set, and
--   2) a reason is provided, and
--   3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck
--      table.

expiryCheckActions = {
	edit = nil,
	move = false,
	autoreview = true,
	upload = false
},

reasonsWithoutExpiryCheck = {
	blp = true,
	template = true
},

--------------------------------------------------------------------------------
-- Pagetypes
--------------------------------------------------------------------------------

-- This table produces the page types available with the ${PAGETYPE} parameter.
-- Keys are namespace numbers, or the string "default" for the default value.
pagetypes = {
	[0] = 'Овај чланак',
	[6] = 'Ова датотека',
	[10] = 'Овај шаблон',
	[14] = 'Ова категорија',
	[828] = 'Овај модул',
	default = 'Ова страница'
},

--------------------------------------------------------------------------------
-- Strings marking indefinite protection
--------------------------------------------------------------------------------

-- This table contains values passed to the expiry parameter that mean the page
-- is protected indefinitely.
indefStrings = {
	['indef'] = true,
	['indefinite'] = true,
	['indefinitely'] = true,
	['infinite'] = true
},

--------------------------------------------------------------------------------
-- Group hierarchy
--------------------------------------------------------------------------------

-- This table maps each group to all groups that have a superset of the original
-- group's page editing permissions.
hierarchy = {
	sysop = {},
	reviewer = {'sysop'},
	filemover = {'sysop'},
	templateeditor = {'sysop'},
	extendedconfirmed = {'sysop'},
	autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'},
	user = {'autoconfirmed'},
	['*'] = {'user'}
},

--------------------------------------------------------------------------------
-- Wrapper templates and their default arguments
--------------------------------------------------------------------------------

-- This table contains wrapper templates used with the module, and their
-- default arguments. Templates specified in this table should contain the
-- following invocation, and no other template content:
--
-- {{#invoke:Protection banner|main}}
--
-- If other content is desired, it can be added between
-- <noinclude>...</noinclude> tags.
--
-- When a user calls one of these wrapper templates, they will use the
-- default arguments automatically. However, users can override any of the
-- arguments.
wrappers = {
	['Template:Pp']                         = {},
	['Template:Pp-30-500']                  = {'ecp'},
	['Template:Pp-blp']                     = {'blp'},
	-- we don't need Template:Pp-create
	['Template:Pp-dispute']                 = {'dispute'},
	['Template:Pp-main-page']               = {'mainpage'},
	['Template:Pp-move']                    = {action = 'move'},
	['Template:Pp-move-dispute']            = {'dispute', action = 'move'},
	-- we don't need Template:Pp-move-indef
	['Template:Pp-move-vandalism']          = {'vandalism', action = 'move'},
	['Template:Pp-office']                  = {'office'},
	['Template:Pp-office-dmca']             = {'dmca'},
	['Template:Pp-pc1']                     = {action = 'autoreview', small = true},
	['Template:Pp-pc2']                     = {action = 'autoreview', small = true},
	['Template:Pp-reset']                   = {'reset'},
	['Template:Pp-semi-indef']              = {small = true},
	['Template:Pp-sock']                    = {'sock'},
	['Template:Pp-template']                = {'template', small = true},
	['Template:Pp-upload']                  = {action = 'upload'},
	['Template:Pp-usertalk']                = {'usertalk'},
	['Template:Pp-vandalism']               = {'vandalism'}
},

--------------------------------------------------------------------------------
-- 
--                                 MESSAGES
-- 
--------------------------------------------------------------------------------

msg = {

--------------------------------------------------------------------------------
-- Intro blurb and intro fragment
--------------------------------------------------------------------------------

-- These messages specify what is produced by the ${INTROBLURB} and
-- ${INTROFRAGMENT} parameters. If the protection is temporary they use the
-- intro-blurb-expiry or intro-fragment-expiry, and if not they use
-- intro-blurb-noexpiry or intro-fragment-noexpiry.
-- It is possible to use banner parameters in these messages.
['intro-blurb-expiry'] = '${PROTECTIONBLURB} /до датума: ${EXPIRY} г./',
['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}',
['intro-fragment-expiry'] = '${PROTECTIONBLURB} /до датума: ${EXPIRY} г./',
['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}',

--------------------------------------------------------------------------------
-- Tooltip blurb
--------------------------------------------------------------------------------

-- These messages specify what is produced by the ${TOOLTIPBLURB} parameter.
-- If the protection is temporary the tooltip-blurb-expiry message is used, and
-- if not the tooltip-blurb-noexpiry message is used.
-- It is possible to use banner parameters in these messages.
['tooltip-blurb-expiry'] = '${PAGETYPE} је ${PROTECTIONLEVEL}! /до датума: ${EXPIRY} г./',
['tooltip-blurb-noexpiry'] = '${PAGETYPE} је ${PROTECTIONLEVEL}!',
['tooltip-fragment-expiry'] = '${PAGETYPE} је ${PROTECTIONLEVEL}! /до датума: ${EXPIRY} г./',
['tooltip-fragment-noexpiry'] = '${PAGETYPE} је ${PROTECTIONLEVEL}!',

--------------------------------------------------------------------------------
-- Special explanation blurb
--------------------------------------------------------------------------------

-- An explanation blurb for pages that cannot be unprotected, e.g. for pages
-- in the MediaWiki namespace.
-- It is possible to use banner parameters in this message.
['explanation-blurb-nounprotect'] = 'Погледајте [[Википедија:Правила о заштити страница|правила о заштити страница]] и ${PROTECTIONLOG} за више детаља. Молимо да дискутујете о било каквим изменама на страници за разговор (${TALKPAGE}); можете ${EDITREQUEST} да бисте питали [[Википедија:Администратори|администратора]] да направи измену ако је иста [[:en:Help:Minor edit#When to mark an edit as a minor edit|мања]] или у складу са [[Википедија:Консензус|концензусом]].',

--------------------------------------------------------------------------------
-- Protection log display values
--------------------------------------------------------------------------------

-- These messages determine the display values for the protection log link
-- or the pending changes log link produced by the ${PROTECTIONLOG} parameter.
-- It is possible to use banner parameters in these messages.
['protection-log-display'] = 'дневник заштите',
['pc-log-display'] = 'дневник измена на чекању',

--------------------------------------------------------------------------------
-- Current version display values
--------------------------------------------------------------------------------

-- These messages determine the display values for the page history link
-- or the move log link produced by the ${CURRENTVERSION} parameter.
-- It is possible to use banner parameters in these messages.
['current-version-move-display'] = 'тренутном наслову',
['current-version-edit-display'] = 'тренутној верзији',

--------------------------------------------------------------------------------
-- Talk page
--------------------------------------------------------------------------------

-- This message determines the display value of the talk page link produced
-- with the ${TALKPAGE} parameter.
-- It is possible to use banner parameters in this message.
['talk-page-link-display'] = 'страници за разговор',

--------------------------------------------------------------------------------
-- Edit requests
--------------------------------------------------------------------------------

-- This message determines the display value of the edit request link produced
-- with the ${EDITREQUEST} parameter.
-- It is possible to use banner parameters in this message.
['edit-request-display'] = 'поднети захтев за уређивање',

--------------------------------------------------------------------------------
-- Expiry date format
--------------------------------------------------------------------------------

-- This is the format for the blurb expiry date. It should be valid input for
-- the first parameter of the #time parser function.
['expiry-date-format'] = 'j. F. Y.',

--------------------------------------------------------------------------------
-- Tracking categories
--------------------------------------------------------------------------------

-- These messages determine which tracking categories the module outputs.
['tracking-category-incorrect'] = 'Странице Википедије са неисправним шаблонима за заштиту',
['tracking-category-template'] = 'Странице Википедије које су заштићене шаблоном и нису шаблони или модули',

--------------------------------------------------------------------------------
-- Images
--------------------------------------------------------------------------------

-- These are images that are not defined by their protection action and protection level.
['image-filename-indef'] = 'Padlock.svg',
['image-filename-default'] = 'Transparent.gif'

--------------------------------------------------------------------------------
-- End messages
--------------------------------------------------------------------------------
}

--------------------------------------------------------------------------------
-- End configuration
--------------------------------------------------------------------------------
}