MediaWiki:External image whitelist: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Allowed images from openfarmtech.org, commons and Photobucket)
 
(Added support for Youtube thumbnails)
Line 7: Line 7:
# This is case-insensitive
# This is case-insensitive
openfarmtech\.org/
openfarmtech\.org/
opensourceecology\.org/


# Images from commons
# Images from commons
Line 13: Line 14:
# Photobucket
# Photobucket
.*?\.photobucket\.com/
.*?\.photobucket\.com/
# Youtube thumbnails
# See [[Template:YoutubePopup]]
# See http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
img\.youtube\.com/


#Put all regex fragments above this line. Leave this line exactly as it is</pre>
#Put all regex fragments above this line. Leave this line exactly as it is</pre>

Revision as of 04:28, 21 September 2011

#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
openfarmtech\.org/
opensourceecology\.org/

# Images from commons
upload\.wikimedia\.org/

# Photobucket
.*?\.photobucket\.com/

# Youtube thumbnails
# See [[Template:YoutubePopup]]
# See http://stackoverflow.com/questions/2068344/how-to-get-thumbnail-of-youtube-video-link-using-youtube-api
img\.youtube\.com/

#Put all regex fragments above this line. Leave this line exactly as it is