Difference between revisions of "MediaWiki:External image whitelist"
Jump to navigation
Jump to search
m |
m |
||
Line 8: | Line 8: | ||
#Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked | #Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked | ||
^https?://en\.wikipedia\.org/upload/b/bc/Wiki\.png$ | ^https?://en\.wikipedia\.org/upload/b/bc/Wiki\.png$ | ||
− | |||
− | |||
#This line is a comment. The part below allows all images from commons | #This line is a comment. The part below allows all images from commons | ||
Line 15: | Line 13: | ||
#Allow Photobucket | #Allow Photobucket | ||
^http://.*?\.photobucket\.com/ | ^http://.*?\.photobucket\.com/ | ||
+ | |||
+ | |||
+ | #Put all regex fragments above this line. Leave this line exactly as it is</pre> |
Latest revision as of 10:18, 13 November 2013
#Leave this line exactly as it is
#Put regular expression fragments (just the part that goes between the //) below #These will be matched with the URLs of external (hotlinked) images #Those that match will be displayed as images, otherwise only a link to the image will be shown #Lines beginning with # are treated as comments #This is case-insensitive #Used on [[Manual:$wgAllowExternalImages]] to show an example, so it'd be nice if said example worked ^https?://en\.wikipedia\.org/upload/b/bc/Wiki\.png$ #This line is a comment. The part below allows all images from commons ^http://upload\.wikimedia\.org/ #Allow Photobucket ^http://.*?\.photobucket\.com/ #Put all regex fragments above this line. Leave this line exactly as it is