Commons:파일 이름 변경/전역 교체

This page is a translated version of a page Commons:File renaming/Global replace and the translation is 45% complete. Changes to the translation template, respectively the source language can be submitted through Commons:File renaming/Global replace and have to be approved by a translation administrator.

Shortcuts: GR • COM:GR

아마 편집 요약의 링크를 따라서 여기 오셨을 겁니다. 부디 명심해 주세요. 해당 편집은 봇이 한 게 아닙니다. 해당 편집은 위키미디어 공용의 모든 사용자가 기본적으로 사용 가능한 스크립트를 통해 이루어진 것입니다. 해당 전역 대체를 공용의 정책에 따라 파일 이동자나 관리자 (verify)가 했다면, 이 사용자를 프로젝트에서 차단하지 말아주세요. 차단을 한다고 해서 파일의 이름 변경을 막을 수는 없고, 사용자가 파일 링크를 업데이트하는 것만 불가능해질 뿐입니다. 봇이 아닌 사용자 계정으로 파일 링크가 대체되는 것을 원치 않을 경우 편집 필터로 막을 수도 있습니다. 개별 사용자가 옳지 못한 행동을 하거나 잘못된 파일로 파일을 대체하고 있는 경우 당연히 차단이 가능합니다. 논란이 생길 수 있는 파일 이름 변경에 대해서는 공용에 보고 및 이의를 제기할 수 있습니다.

'더 보기' 칸에서 접근할 수 있는 기본적인 "이동" 링크는 공용 소도구를 통해 "Move & Replace"로 교체되었습니다. 위키미디어 공용에서 파일 이름이 변경된 후에는 사용자의 브라우저에서 작동하는 자바스크립트 소도구를 통해 파일을 사용하고 있는 모든 위키미디어 위키에서 파일 이름이 대체될 것입니다. 파일 이름을 사용하고 있는 모든 문서가 보고되며, 문서의 소스 코드에서 File:Old name.extFile:New name.ext로 대체됩니다. 편집은 관리자파일 이동자의 사용자 계정을 통해 이루어집니다. 2013년부터 모든 파일 이동자와 관리자에게 이 확장 기능이 기본적으로 활성화되었습니다. 사용하는 문서가 많거나, 편집이 실패했거나, 연결이 느려서 대체 작업이 실행 불가능한 경우 이전처럼 CommonsDelinker가 대체 작업을 수행할 것입니다.

Why we implemented the JavaScript replacement under individual user accounts

We believe that every file mover and administrator is solely responsible for their own actions; and if they rename a file, they must also justify all edits that are caused by renaming a media file. Additionally, we occasionally encountered technical issues with our replacement bot, CommonsDelinker and not updating file usage is dangerous as, as soon as files are moved twice, there are chances of double redirects which are not resolved by MediaWiki and file usage could break, if not curated like this.

Also file renaming should bear some improvements to file names that we would like to share with our users.


Opting out an entire Wiki
If you are an Abuse Filter editor of a Wikimedia Wiki, or you are administrator (a user belonging to the sysop user group), you most likely have necessary permission for creating an Abuse Filter to prevent Commons Global Replace edits submitted by individual user accounts. You might have various reasons for doing so, for example to prevent edits that are not automatically patrolled. In case these edits are prevented, Commons Global Replace system will instruct CommonsDelinker (a global bot) which will then carry out the edit. It would be kind, though, if you would notify Wikimedia Commons about such opt-outs (and the reasons), as this will help us to understand our Media file's users better and we can design our software more efficiently and intelligently.

How to create a new filter

Convenience way

Navigate to Special:AbuseFilter/import on your wiki, insert the following text and press 데이터 가져오기:

{"row":{"af_id":"148","af_pattern":"(action === 'edit')\r\n\u0026 !('autopatrol' in user_rights)\r\n\u0026 (summary rlike '^\\(\\[\\[c\\:GR\\|GR\\]\\]\\)')","af_user":"16603","af_user_text":"Rillke","af_timestamp":"20150201145938","af_enabled":"1","af_comments":"Prevent non-autopatrolled users from replacing files on this wiki.\r\nReference: https://commons.wikimedia.org/wiki/Commons:File_renaming/Global_replace/Abuse_Filter","af_public_comments":"Disallow Commons Global Replace","af_hidden":"0","af_hit_count":"2","af_throttled":"0","af_deleted":"0","af_actions":"disallow","af_global":"0","af_group":"default"},"actions":{"disallow":{"action":"disallow","parameters":[""]}}}
Ex manus

Navigate to Special:AbuseFilter/new on your wiki. Fill-in the following values:

  • 설명:
(공개됨) Disallow Commons Global Replace
  • Conditions:
    (action === 'edit')
    & !('autopatrol' in user_rights)
    & (summary rlike '^\(\[\[c\:GR\|GR\]\]\)')
    
  • 주석:
    Prevent non-autopatrolled users from replacing files on this wiki.
    Reference: https://commons.wikimedia.org/wiki/Commons:File_renaming/Global_replace/Abuse_Filter
    
  • ☑ 이 필터 활성화하기
  • ☑ 문제가 되는 동작을 사용자가 수행하지 못하도록 막기
Troubleshooting

You are a file mover or administrator and nothing is replaced with your user account? Then, it is likely that your browser or a browser add-on are the cause. A common issue is that cookies from third party sites are disabled (Firefox, Chrome, Internet Explorer).

While this is good for blocking advertising and enhances privacy, it prevents you from getting logged-in on all Wikimedia projects, which in turn is required for Global replace to work correctly. You may work around this by adding exceptions. However, note that the added exceptions may not be persistent in anonymous/private browsing mode and when website preferences are deleted, the list of exceptions is usually deleted as well. Some browsers are configured to delete website preferences as soon as they're closed.

List of domains you should allow cookies from:

https://en.wikipedia.org
https://login.wikimedia.org
https://meta.wikimedia.org
https://en.wiktionary.org
https://en.wikibooks.org
https://en.wikiquote.org
https://en.wikisource.org
https://en.wikinews.org
https://en.wikiversity.org
https://www.mediawiki.org
https://www.wikidata.org
https://species.wikimedia.org
https://incubator.wikimedia.org
https://en.wikivoyage.org

Opting out as a Commons file mover or administrator

window.aqdCORSOptOut = true;
Gadget
Click on “Global replace” in the dropdown menu

If you have filemover right and you want to use the functionality manually, you can use this script with some extra options:

importScript('User:Perhelion/justReplace.js');

You may not use it for possible controversial replacements.

See also: Help:QuickDelete.