모듈:Protection banner/config

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

return {

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

--[[
-- 배너 데이터는 총 6개의 부분으로 구성되어 있습니다.
-- * text - 보호 배너 상단에 표시되는 주요 문구
-- * explanation - 주요 문구 하단에 나타나는 보호에 대한 상세한 설명
-- * tooltip - 작은 자물쇠 아이콘에 마우스를 올리면 확인할 수 있는 툴팁 텍스트
-- * link - 작은 자물쇠 아이콘이 연결하는 문서 링크
-- * alt - 작은 자물쇠 아이콘의 alt 텍스트. 큰 보호 배너에서의 툴팁 텍스트로도
--   이용됩니다
-- * image - 보호 배너와 작은 자물쇠 아이콘에서 모두 사용하는 자물쇠 그림
--
-- 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.
-- * link - the page that the small padlock icon links to.
-- * alt - the alt text for the small padlock icon. This is also used as tooltip
--   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".
-- Also, ${PAGETYPEGA}/${PAGETYPEI}, ${PAGETYPEEUL}/${PAGETYPEREUL}, and ${PAGETYPEEUN}/${PAGETYPENEUN} (조사 처리를 위해 한국어판에만 추가)
-- 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)
--
--                                 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} 중인 ${PAGETYPE}'
},

-- 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 = {
		default = {
			alt = '변경된 판의 검토가 필요한 보호 문서',
			tooltip = '신규 또는 미등록 사용자의 모든 편집은 검토자에 의해 승인되기 전까지 표시되지 않습니다.',
			image = 'Pending-protection-shackle.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 = '[[디지털 밀레니엄 저작권법]]에 따른 요청으로 위키미디어 재단에 의해 보호된 문서',
			explanation = function (protectionObj, args)
				local ret = '해당 문서의 일부 내용에 대해 [[디지털 밀레니엄 저작권법]](DMCA)에 따른 권리자의 요청으로, 위키미디어 재단이 관련 법령에 따라 문서의 내용 일부분을 제한하였습니다.'
				if args.notice then
					ret = ret .. ' 관련된 요청 사항은 다음에서 확인할 수 있습니다. '
						.. args.notice .. '.'
				end
				ret = ret .. " 자세한 사항은 [[위키백과:공적 행위]] 및 문서의 ${TALKPAGE}를 참고하세요."
					.. " '''해당 제한이 철회되기 이전에는 이 틀을 제거하지 말아주세요.'''"
				return ret
			end,
			image = 'Office-protection-shackle.svg',
			link = '위키백과:보호 정책#공적 행위',
		},
		dispute = {
			description = '편집 분쟁으로 인해 보호된 문서',
			text = function (protectionObj, args)
				-- Find the value of "disputes".
				local display = '분쟁'
				local disputes
				if args.section then
					disputes = string.format(
						'[[%s:%s#%s|%s]]',
						mw.site.namespaces[protectionObj.title.namespace].talk.name,
						protectionObj.title.text,
						args.section,
						display
					)
				else
					disputes = display
				end

				-- Make the blurb, depending on the expiry.
				local msg
				if type(protectionObj.expiry) == 'number' then
					msg = '편집 %s이 해결되기 전까지 또는 ${INTROFRAGMENT}'
				else
					msg = '편집 %s이 해결되기 전까지 ${INTROFRAGMENT}'
				end
				return string.format(msg, disputes)
			end,
			explanation = "이러한 보호는 ${CURRENTVERSION}의 내용을 지지하는 것이 '''아닙니다'''. ${EXPLANATIONBLURB}",
			tooltip = '편집 분쟁으로 인해 ${TOOLTIPFRAGMENT}',
		},
		ecp = {
			description = '[[위키백과:중재위원회|중재위원회]]의 중재 대상 문서',
			tooltip = '이 ${PAGETYPEEUN} ${PROTECTIONLEVEL} 중입니다.',
			alt = '장기보호된 ${PAGETYPE}',
		},
		mainpage = {
			description = '[[대문]]에 사용되기 때문에 보호된 문서',
			text = '이 파일은 현재 [[대문]]에 사용하거나, 사용될 예정이므로 편집이 제한되어 있습니다.',
			explanation = '대문에 사용하는 파일은 매우 많이 노출되므로 보호되어 있습니다. 편집이 필요한 경우 ${TALKPAGE}에 의견을 남겨주세요.'
				.. ' <br /><span style="font-size:90%;">'
				.. " '''관리자에게:''' 이 파일이 대문에 더 이상 표시되지 않는 경우, 파일의 보호를 해제하거나 준보호로 변경해 주세요.</span>",
		},
		office = {
			description = '위키미디어 재단에 의해 보호된 문서',
			text = function (protectionObj, args)
				local ret = '이 ${PAGETYPEEUN} 현재 [[위키백과:공적 행위|위키미디어 재단]]의 면밀한 조사가 진행 중이며 일반 사용자의 [[위키백과:보호 정책|편집이 제한]]되어 있습니다.'
				if protectionObj.protectionDate then
					ret = ret .. ' ${PROTECTIONDATE}부터 보호되어 있습니다.'
				end
				return ret
			end,
			explanation = "이 ${PAGETYPEEUN} 편집할 수 있다면, 모든 변경과 추가사항에 대해서는 ${TALKPAGE}에서 먼저 논의해 주세요."
				.. " '''위키미디어 재단의 승인받기 전까지는 보호를 해제해서는 안 됩니다.'''",
			image = 'Office-protection-shackle.svg',
			link = '위키백과:보호 정책#공적 행위',
		},
		reset = {
			description = '위키미디어 재단에 의해 보호 및 초기 버전으로 "초기화"된 문서',
 			text = '이 ${PAGETYPEEUN} 현재 [[위키백과:공적 행위|위키미디어 재단]]의 면밀한 조사가 진행 중이며 일반 사용자의 [[위키백과:보호 정책|편집이 제한]]되어 있습니다.',
			explanation = function (protectionObj, args)
				local ret = ''
				if protectionObj.protectionDate then
					ret = ret .. '${PROTECTIONDATE}에 이 ${PAGETYPEEUN}'
				else
					ret = ret .. '이 ${PAGETYPEEUN}'
				end
				ret = ret .. ' [[위키백과:중립적 시각|중립적 시각]]과 [[위키백과:확인 가능]] 정책을 준수하기 위해 재작성이 필요하여 기초적인 내용만을 남기고 초기 버전으로 되돌려졌습니다.'
				.. ' 위키백과의 표준 정책이 적용되며, 이후 모든 편집자들이 편집이 가능하도록 보호가 해제될 예정입니다.'
				.. ' 이 ${PAGETYPEEUN} 재작성 되는 동안 ${PROTECTIONLEVEL}됩니다.\n\n'
				.. ' 이전 버전에 포함된 내용을 복사하여 붙여넣거나, 출처가 불분명한 내용은 예고 없이 삭제됩니다.'
				.. ' 관련된 토론 문서 또한 같은 날짜에 삭제되었습니다.\n\n'
				.. "이 ${PAGETYPEEUN} 편집할 수 있다면, 모든 변경과 추가사항에 대해서는 ${TALKPAGE}에서 먼저 논의해 주세요."
				.. " '''이 편집을 덮어씌우거나, 위키미디어 재단의 승인받기 전까지는 보호를 해제해서는 안 됩니다.'''"

				return ret
			end,
			image = 'Office-protection-shackle.svg',
			link = '위키백과:보호 정책#office',
		},
		sock = {
			description = '[[위키백과:다중 계정|다중 계정]]으로 인해 보호된 문서',
			text = '[[위키백과:차단 정책|차단]] 또는 [[위키백과:제한 정책|제한된 사용자]]의 [[위키백과:다중 계정]]으로부터의 편집을 막기 위해 ${INTROFRAGMENT}.',
			tooltip = '차단 또는 제한된 사용자의 다중 계정으로부터의 편집을 막기 위해 ${TOOLTIPFRAGMENT}',
		},
		template = {
			description = '[[위키백과:위험한 틀|위험성이 높아]] 보호된 틀 및 루아 모듈',
			text = '이 ${PAGETYPEEUN} [[위키백과:위험한 틀|위험성이 높아]] [[위키백과:보호 정책|편집이 제한]]되어 있습니다.',
			explanation = '고칠 내용이 있으나 편집할 수 없는 경우, 우선 ${TALKPAGE}에 의견을 남겨주세요.'
				.. ' [[도움말:사소한 편집|사소한 편집]]이거나 토론을 거쳐 [[위키백과:총의|총의]]가 모아졌다면 [[위키백과:관리자]] 등에게 ${EDITREQUEST}을 해주세요.'
				.. ' 보호 이유가 사라졌다면 [[위키백과:문서 관리 요청|보호 해제 요청]]을 남겨주세요.',
			tooltip = '위험성이 높은 이 ${PAGETYPEEUN} ${PROTECTIONLEVEL}',
			alt = '영구 보호된 ${PAGETYPE}',
		},
		usertalk = {
			description = '특정 사용자의 방해 편집을 막기 위해 보호된 문서',
			text = '&#123;&#123;[[틀:차단 재검토 요청|차단 재검토 요청]]&#125;&#125; 등을 남용하는 등 ${VANDAL}의 방해 편집을 막기 위해 ${INTROFRAGMENT}',
			explanation = '고칠 내용이 있거나 남기실 의견이 있는 경우 [[위키백과:문서 관리 요청|문서 관리 요청]]에서'
				.. ' 편집 요청이나 문서 보호 해제 요청을 해주세요. [[특수:로그인|로그인]]하거나 [[특수:계정만들기|계정을 만들면]] 편집이 가능할 수도 있습니다.',
		},
		vandalism = {
			description = '[[위키백과:문서 훼손|훼손]]으로 인해 보호된 ${PAGETYPE}',
			text = '계속되는 [[위키백과:문서 훼손|문서 훼손]] 행위 때문에 ${INTROFRAGMENT}',
			explanation = function (protectionObj, args)
				local ret = ''
				if protectionObj.level == 'sysop' then
					ret = ret .. "This protection is '''not''' an endorsement of the"
						.. ' ${CURRENTVERSION}. '
				end
				return ret .. '${EXPLANATIONBLURB}'
			end,
			tooltip = '훼손으로 인해 ${TOOLTIPFRAGMENT}',
		}
	},
	move = {
		dispute = {
			description = '내용 혹은 문서 이름에 대한 논쟁이나 사용자 간의 편집 분쟁 때문에 이동이 제한된 ${PAGETYPE}',
			explanation = "이러한 보호는 ${CURRENTVERSION}의 내용을 지지하는 것이 '''아닙니다'''. ${EXPLANATIONBLURB}",
			image = 'Move-protection-shackle.svg'
		},
		vandalism = {
			description = '[[위키백과:문서 훼손|훼손]]으로 인해 보호된 ${PAGETYPE}'
		}
	},
	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 = '이 ${PAGETYPEEUN} 현재 [[위키백과:보호 정책|편집이 제한]]되어 있습니다',
		autoconfirmed = '이 ${PAGETYPEEUN} [[위키백과:사용자 권한#자동인증|신규 사용자]]나 [[위키백과:사용자 권한#익명|비등록 사용자]]의 [[위키백과:보호 정책|편집이 제한]]되어 있습니다',
		extendedconfirmed = '이 ${PAGETYPEEUN} [[위키백과:사용자 권한#장기인증|장기인증]]되지 않은 사용자의 [[위키백과:보호 정책|편집이 제한]]되어 있습니다'
	},
	move = {
		default = '이 ${PAGETYPEEUN} 현재 [[위키백과:문서 이동|문서 이동]]이 [[위키백과:보호 정책|제한]]되어 있습니다'
	},
	autoreview = {
		default = '[[위키백과:사용자 권한#자동인증|신규 사용자]]나 [[위키백과:사용자 권한#익명|비등록 사용자]]에 의해 이루어진 ${PAGETYPE}의 모든 편집은 현재 [[위키백과:검토된 판|검토 대상]]입니다'
	},
	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}을 살펴보세요.'
				.. ' 고칠 내용이 있으나 편집할 수 없는 경우, 우선 ${TALKPAGE}에 의견을 남겨주세요.'
				.. ' [[도움말:사소한 편집|사소한 편집]]이거나 토론을 거쳐 [[위키백과:총의|총의]]가 모아졌다면, 관리자 등에게 ${EDITREQUEST}을 해주세요.'
				.. ' 보호 이유가 사라졌다면 [[위키백과:문서 관리 요청|보호 해제 요청]]을 남겨주세요.'
				.. ' [[특수:로그인|로그인]]하거나 [[특수:계정만들기|계정을 만들면]] 편집이 가능할 수도 있습니다.',
			default = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 고칠 내용이 있으나 편집할 수 없는 경우, [[위키백과:문서 관리 요청|보호 해제 요청]]을 남겨주세요.'
				.. ' [[특수:로그인|로그인]]하거나 [[특수:계정만들기|계정을 만들면]] 편집이 가능할 수도 있습니다.',
		},
		extendedconfirmed = {
			default = '[[위키백과:보호_정책#장기인증보호|장기인증보호]]는 모든 비등록 사용자나 등록 후 30일이 경과하지 않았거나 500번 미만의 편집을 한 등록 사용자의 편집을 제한합니다.'
				.. ' 문서 훼손을 방지하는데 준보호 조치가 부적절한 경우에 사용할 수 있습니다.<!-- 또한 [[위키백과:중재위원회|중재위원회]]의 결정에 따라 시행될 수도 있습니다.-->'
				.. ' 고칠 내용이 있으나 편집할 수 없는 경우, 우선 ${TALKPAGE}에 의견을 남겨주세요.'
				.. ' 토론을 거쳐 [[위키백과:총의|총의]]가 모아졌다면, 관리자 등에게 ${EDITREQUEST}을 해주세요.'
		},
		default = {
			subject = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 고칠 내용이 있으나 편집할 수 없는 경우, 우선 ${TALKPAGE}에 의견을 남겨주세요.'
				.. ' [[도움말:사소한 편집|사소한 편집]]이거나 토론을 거쳐 [[위키백과:총의|총의]]가 모아졌다면, 관리자 등에게 ${EDITREQUEST}을 해주세요.'
				.. ' 보호 이유가 사라졌다면 [[위키백과:문서 관리 요청|보호 해제 요청]]을 남겨주세요.',
			default = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 고칠 내용이 있으나 편집할 수 없는 경우, [[위키백과:문서 관리 요청|문서 관리 요청]]에서 보호 편집이나 보호 해제 요청을 남겨주세요.'
		}
	},
	move = {
		default = {
			subject = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 이 ${PAGETYPEEUN} 고칠 수 있지만 이름을 바꿀 수는 없습니다.'
				.. ' 이동을 원하는 경우 ${TALKPAGE}에 의견을 남기거나 [[위키백과:문서 이동 요청|문서 이동 요청]]을 남겨주세요.'
				.. ' 필요한 경우 [[위키백과:문서 관리 요청|문서 해제 요청]]을 남길 수도 있습니다.',
			default = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 이 ${PAGETYPEEUN} 고칠 수 있지만 이름을 바꿀 수는 없습니다.'
				.. ' 이동을 원하는 경우 [[위키백과:문서 이동 요청|문서 이동 요청]]을 남겨주세요.'
				.. ' 필요한 경우 [[위키백과:문서 관리 요청|문서 해제 요청]]을 남길 수도 있습니다.'
		}
	},
	autoreview = {
		default = {
			default = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 이 ${PAGETYPE}의 신규 또는 미등록 사용자의 편집은 검토자에 의해 승인되기 전까지 표시되지 않습니다.'
				.. ' 필요한 경우 [[위키백과:문서 관리 요청|문서 해제 요청]]을 남길 수도 있습니다.'
				.. ' [[특수:로그인|로그인]]하거나 [[특수:계정만들기|계정을 만들면]] 이 절차를 생략할 수도 있습니다.'
		},
	},
	upload = {
		default = {
			default = '더 자세한 설명은 [[위키백과:보호 정책|보호 정책]]과 ${PROTECTIONLOG}을 살펴보세요.'
				.. ' 이 파일의 설명은 고칠 수는 있지만, 새로운 버전을 올릴 수는 없습니다.'
				.. ' 필요한 경우 [[위키백과:파일 업로드 요청|파일 업로드 요청]]을 남기거나, [[위키백과:문서 관리 요청|문서 해제 요청]]을 남길 수도 있습니다.'
		}
	}
},

--------------------------------------------------------------------------------
-- 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 = 'Full-protection-shackle.svg',
		templateeditor = 'Template-protection-shackle.svg',
		extendedconfirmed = 'Extended-protection-shackle.svg',
		autoconfirmed = 'Semi-protection-shackle.svg'
	},
	move = {
		default = 'Move-protection-shackle.svg',
	},
	autoreview = {
		default = 'Pending-protection-shackle.svg'
	},
	upload = {
		default = 'Upload-protection-shackle.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 = {
		default = '위키백과:보호 정책#검토'
	},
	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']       = '위키백과 장기인증보호 중인 문서',
	['all|all|ecp|extendedconfirmed|all']       = '위키백과 장기인증보호 중인 문서',
	['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|all|all|templateeditor|move']         = '위키백과 틀이나 모듈 이외에 틀 보호된 문서',
	['all|all|all|templateeditor|edit']         = '위키백과 틀이나 모듈 이외에 틀 보호된 문서',
--	['all|template|all|templateeditor|edit']    = '위키백과 틀보호된 틀',
--	['all|template|all|templateeditor|move']    = '위키백과 틀보호된 틀', -- move-protected templates 이동보호된 틀
	['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|extendedconfirmed|edit'] = '위키백과 장기인증보호 중인 틀',
	['all|template|all|sysop|edit']             = '위키백과 완전 보호 중인 틀',
	['all|user|all|sysop|edit']                 = '위키백과 완전 보호 중인 사용자 및 사용자토론 문서',
	['all|module|all|all|edit']                 = '위키백과 완전 보호 중인 모듈',
--	['all|module|all|templateeditor|edit']      = '위키백과 틀보호 중인 모듈',
	['all|module|all|extendedconfirmed|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|project|all|sysop|move']              = '위키백과 이동보호 중인 프로젝트 문서',
	['all|talk|all|sysop|move']                 = '위키백과 이동보호 중인 토론 문서',
	['all|template|all|sysop|move']             = '위키백과 이동보호 중인 틀',
	['all|user|all|sysop|move']                 = '위키백과 이동보호 중인 사용자 및 사용자토론 문서',
--	['all|all|all|autoconfirmed|autoreview']    = '위키백과 검토보호 중인 문서',
--	['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,
	['편집'] = nil,
	['이동'] = false,
	['자동검토'] = true,
	['올리기'] = false
},

reasonsWithoutExpiryCheck = {
	blp = true,
	template = true,
	['인물'] = true,
	['틀'] = 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 = '문서'
},

pageEuntypes = {
	[0] = '문서는',
	[6] = '파일은',
	[10] = '틀은',
	[14] = '분류는',
	[828] = '모듈은',
	default = '문서는'
},

pageEultypes = {
	[0] = '문서를',
	[6] = '파일을',
	[10] = '틀을',
	[14] = '분류를',
	[828] = '모듈을',
	default = '문서를'
},

pageGatypes = {
	[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,
	['무기한'] = true,
},

blpStrings = {
	['blp'] = true,
	['인물'] = true,
},

disputeStrings = {
	['dispute'] = true,
	['분쟁'] = 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 = {
	['틀:보호']								= {},
	['틀:Pp']								= {},
	['틀:보호-장기']						= {'ecp'},
	['틀:Pp-extended']						= {'ecp'},
	['틀:보호-인물']						= {'ecp'},
	['틀:Pp-blp']							= {'blp'},
	-- we don't need Template:Pp-create / 틀:보호-생성
	['틀:보호-논쟁']						= {'dispute'},
	['틀:Pp-dispute']						= {'dispute'},
--  ['틀:보호-대문']						= {'mainpage'},
--	['틀:Pp-main-page']						= {'mainpage'},
	['틀:이동보호']							= {['권한'] = 'move', ['분류만'] = 'yes'},
	['틀:Pp-move']							= {['권한'] = 'move', ['분류만'] = 'yes'},
	['틀:이동보호-논쟁']					= {'dispute', ['권한'] = 'move', ['분류만'] = 'yes'},
	['틀:Pp-move-dispute']					= {'dispute', ['권한'] = 'move', ['분류만'] = 'yes'},
	-- we don't need Template:Pp-move-indef	/ 틀:이동보호-무기한
	['틀:이동보호-훼손']					= {'vandalism', ['권한'] = 'move', ['분류만'] = 'yes'},
	['틀:Pp-move-vandalism']				= {'vandalism', ['권한'] = 'move', ['분류만'] = 'yes'},
	['틀:보호-재단']						= {'office'},
	['틀:Pp-office']						= {'office'},
--	['틀:Pp-office-dmca']					= {'dmca'}, -- 영어판에서 삭제된 틀
--	['틀:Pp-pc']							= {['권한'] = 'autoreview', ['작게'] = true},
--	['틀:Pp-pc1']							= {['권한'] = 'autoreview', ['작게'] = true},
--	['틀:Pp-reset']							= {'reset'}, -- 영어판에서 삭제된 틀
	['틀:준보호-무기한']					= {['작게'] = true},
	['틀:Pp-semi-indef']					= {['작게'] = true},
--	['틀:보호-다중']						= {'sock'},
--	['틀:Pp-sock']							= {'sock'},
	['틀:보호-틀']							= {'template', ['작게'] = true},
	['틀:Pp-template']						= {'template', ['작게'] = true},
--	['틀:보호-업로드']						= {['권한'] = 'upload'},
--	['틀:Pp-upload']						= {['권한'] = 'upload'},
	['틀:보호-사용자토론']					= {'usertalk'},
	['틀:Pp-usertalk']						= {'usertalk'},
	['틀:보호-훼손']						= {'vandalism'},
	['틀: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'] = '${EXPIRY}까지 ${PROTECTIONBLURB}.',
['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.',
['intro-fragment-expiry'] = '${EXPIRY}까지 ${PROTECTIONBLURB}',
['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'] = '이 ${PAGETYPEEUN} ${EXPIRY}까지 ${PROTECTIONLEVEL} 중입니다.',
['tooltip-blurb-noexpiry'] = '이 ${PAGETYPEEUN} ${PROTECTIONLEVEL} 중입니다.',
['tooltip-fragment-expiry'] = '이 ${PAGETYPEEUN} ${EXPIRY}까지 ${PROTECTIONLEVEL} 중입니다.',
['tooltip-fragment-noexpiry'] = '이 ${PAGETYPEEUN} ${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}을 남겨주세요.'
	.. ' 필요한 경우 [[위키백과:문서 관리 요청|문서 관리 요청]]에서 보호 해제를 요청할 수도 있습니다.',

--------------------------------------------------------------------------------
-- 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'] = 'Y"년" F j"일" H:i',

--------------------------------------------------------------------------------
-- 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'] = 'Full-protection-shackle.svg',
['image-filename-default'] = 'Transparent.gif',

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

--------------------------------------------------------------------------------
-- End configuration
--------------------------------------------------------------------------------
}
Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia

Kembali kehalaman sebelumnya