Extension:TitleBlacklist/ko

문서 제목 블랙리스트 확장 기능은 정규 표현식을 이용하여 특정한 규칙을 가진 문서의 생성이나 사용자명 가입을 막을 수 있는 장치입니다.

설치
By default it only affects non-sysop users. To make it default for all use.

Configuration

 * Array of title blacklist sources.
 * Should be in array( name => source description ) format.
 * Should be in array( name => source description ) format.


 * Sets the sources which may work as a username filter.
 * '*' is for all; false disables all.
 * If you want to limit it to particular sources, use array( source name 1, source name 2 ). This may be useful when you have shared account creation system in order to avoid blacklist fragmentation.
 * If you want to limit it to particular sources, use array( source name 1, source name 2 ). This may be useful when you have shared account creation system in order to avoid blacklist fragmentation.


 * : Hide "titleblacklist" from Special:Log
 * : Disable the filtering of autocreation
 * : Disable the filtering of autocreation

생성 제한 규칙 가져오기
Title blacklist can be gathered from multiple sources except local message. For configuring blacklist sources use code as described below:


 * 위키 내부에 있는 문서를 사용하려면 type에 TBLSRC_LOCALPAGE를 넣어 주세요.
 * 다른 URL 문서를 사용하려면 type에 TBLSRC_URL을 넣어 주세요.
 * 파일을 사용하려면 type에 TBLSRC_FILE을 넣어 주세요.

Multiple blacklist sources (MW ≥ 1.26)
Title blacklist can be gathered from multiple sources except local message. For configuring blacklist sources use code as described below:

The reason is that the  constants are no longer defined when using the new extension registration! See issue T113864 for further information.

생성 제한 규칙 편집하기
기본적으로 생성 제한 규칙은 MediaWiki:Titleblacklist 문서를 통해 관리됩니다.

문서의 각 줄에는 정규식을 적고, 뒤에 추가적인 옵션을 적어 주면 됩니다. 예를 들어서,

 Foo  [Bb]ar #No one should create article about it

정규식 뒤에는 로 추가적인 규칙을 정해줄 수 있습니다. 각 옵션은 로 붙여 주고, 각 옵션의 효과는 다음과 같습니다.


 * autoconfirmed - 가입한지 일정 기간이 된 사용자만이 문서 생성/이동 및 파일 업로드를 할 수 있도록 제한합니다.
 * casesensitive - 규칙에 대소문자를 구별하지 않도록 합니다.
 * noedit - 생성뿐만이 아니라 편집도 불가능하도록 잠급니다.
 * moveonly - 문서 이동만 금지하고, 생성은 허용합니다. (35163)
 * newaccountonly - 계정 생성만 금지하고, 문서 생성은 허용합니다. (38977)
 * reupload - 이미 존재하는 파일을 다시 업로드하는 것은 허용합니다. (33656)
 * errmsg - 사용자에게 원래 안내 메시지 대신 다른 메시지를 출력해줍니다.

What is referred to here as regular expressions are not proper regular expressions, but rather subpatterns that are inserted into a hard-coded regular expression. i.e. the subpattern Foo from above would create a regular expression like /^Foo$/usi.

Underscores ("_") in regular expressions will be converted to spaces by the extension, because titles are matched against its text form ("Page title" instead of "Page_title").

허용 목록
금지 목록에 포함되더라도 예외적으로 허용할 경우를 추가할 수 있습니다. 이 목록은 MediaWiki:Titlewhitelist에서 관리되며, 동일한 문법을 사용합니다.

안내 메시지 바꾸기
문서 생성 등에 제한이 걸린 경우, 사용자에게 다음의 안내 메시지가 표시됩니다.
 * MediaWiki:Titleblacklist-forbidden-edit: 문서 생성/편집 제한
 * MediaWiki:Titleblacklist-forbidden-move: 문서 이동 제한
 * MediaWiki:Titleblacklist-forbidden-upload: 파일 올리기 제한
 * MediaWiki:Titleblacklist-forbidden-new-account: 가입 제한

특정 규칙에 대해서는 다른 메시지를 표시하도록 할 수 있습니다. 문서 앞쪽의 errmsg 도움말을 참고해주세요.

Conceptual overview
The username for new accounts will be regarded by Titleblacklist differently to the way it regards new articles. Titleblacklist will prepend "User:" (or its localized equivalent) to the string that a user enters at  on the create account page. So when Titleblacklist is performing matches with your Regex's, as found on MediaWiki:Titleblacklist or MediaWiki:Titlewhitelist, it will match against "User:" +.

For example, imagine you want to block "jill" as a new user. Imagine you had a blacklist regex "jill.* " and a user enters "jill" as the username on the create account page. This will pass as the comparison Titleblacklist will make will be between "jill.*" (the regex) and "User:jill" (the constructed input string). These don't match and so "jill" is allowed (and you probably didn't intend this). To effect the intended block use a regex like ".*jill.* " or "User:jill.* " on MediaWiki:Titleblacklist.

If you want to block all users except for all those that do match a regex then block all users in MediaWiki:Titleblacklist and write the permissible regex in the MediaWiki:Titlewhitelist.

A working example
If you would like to force all usernames, during account creation, to consist of exactly two names, space separated, with each name capitalized then do the following:

1. Install TitleBlacklist.

2. Add the following to your LocalSettings.php

3. In https://www.example.com/mywiki/MediaWiki:Titleblacklist add

4. In https://www.example.com/mywiki/MediaWiki:Titlewhitelist add

5. In https://www.example.com/mywiki/MediaWiki:Titleblacklist-forbidden-new-account edit

 The user name "$2" has been blocked from creation. It matches the following blacklist entry:.

Please use a real name for the user name. User names need to be comprised of two names separated by a space. Each name must be capitalized.

E.g.:
 * "Mary Smith". OK.
 * "MarySmith". Invalid.
 * "Mary smith". Invalid.
 * "marysmith". Invalid.

User name creation (and article creation) blocking rules are controlled by MediaWiki:Titleblacklist and MediaWiki:Titlewhitelist. This message can be customized at MediaWiki:Titleblacklist-forbidden-new-account

Testing for matches
If Scribunto is installed, TitleBlacklist allows for testing if particular titles and actions will match an entry in the blacklist using the  function. If a match is found, the details for the matched entry are returned.

For example, if the blacklist contained the filter:

.*(.)\1{10}.*  # Disallows eleven or more of the same character repeated in usernames

running the function:

would return the following table containing details about the matched entry:

Resources on regular expressions

 * Brief Introduction to Regular Expressions
 * https://web.archive.org/web/20050213032350/http://etext.lib.virginia.edu/services/helpsheets/unix/regex.html
 * The 30 Minute Regex. Tutorial
 * http://www.codeproject.com/Articles/9099/The-Minute-Regex-Tutorial
 * PHP: PCRE regex syntax, the syntax of regular expressions used by PHP &mdash; and therefore this extension
 * http://php.net/manual/en/reference.pcre.pattern.syntax.php