Jump to content
MediaWiki

Manual:$wgEnableImageWhitelist/ko

From mediawiki.org
This page is a translated version of the page Manual:$wgEnableImageWhitelist and the translation is 6% complete.
Parser: $wgEnableImageWhitelist
Enables an on-wiki external image whitelist
이 변수가 소개된 버전:1.14.0 (r40310)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(boolean)
기본값:false (1.32+)
true (1.14-1.31)
기타 설정: 알파벳 순 | 기능별 순

Usage

If $wgAllowExternalImages is false, enabling this will turn on an on-wiki external image whitelist at MediaWiki:External image whitelist (a page on the wiki). Items on this whitelist page are regular expression fragments that are each matched when an external image is being parsed. Items that match a whitelist entry will be displayed, those that do not match will be linked.

Lines on the whitelist starting with # and blank lines are not used to find a match

This setting may be used concurrently with $wgAllowExternalImagesFrom without any issues.

The following code snippets show how to enable and disable this feature, respectively.

// Enable the [[MediaWiki:External image whitelist]] page
$wgAllowExternalImages = false;
$wgEnableImageWhitelist = true;
// Disable the page
$wgEnableImageWhitelist = false;
#This line is a comment. The part below allows all images from commons
^http://upload\.wikimedia\.org/
#Allow Photobucket
^http://.*?\.photobucket\.com/

같이 보기

AltStyle によって変換されたページ (->オリジナル) /