Manual:$wgAllowExternalImagesFrom/zh

Category:MediaWiki configuration settings/zh#AllowExternalImagesFromCategory:MediaWiki configuration settings introduced in version 1.6.0/zh#AllowExternalImagesFromCategory:MediaWiki configuration settings still in use/zh#AllowExternalImagesFromCategory:Parser variables/zh#AllowExternalImagesFrom
解析器: $wgAllowExternalImagesFrom
If $wgAllowExternalImages is false, you can specify exceptions here.
引进版本:1.6.0 (r11531)
移除版本:仍在使用
允许的值:(array) (1.14+)
(string) (1.6-1.13)
''

详情

If $wgAllowExternalImages is false, you can specify an exception here. Image URLs that start with this string are then rendered, while all others are not. You can use this to set up a trusted, simple repository of images. As of r40310 (1.14.0), this may be an array of strings.

$wgAllowExternalImagesFrom = 'http://127.0.0.1/';
$wgAllowExternalImagesFrom = [
    'http://127.0.0.1/',
    'https://www.example.com/'
];

參見

Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.6.0/zh Category:MediaWiki configuration settings still in use/zh Category:Parser variables/zh