NewImages
Description
Script made for restoring the old 'New Photos' module, removed from the rail a long time ago.
Updated
November 16, 2022
English (en) العربية (ar) беларуская (be) Deutsch (de) Ελληνικά (el) español (es) suomi (fi) français (fr) हिन्दी (hi) magyar (hu) Bahasa Indonesia (id) italiano (it) 日本語 (ja) 한국어 (ko) polski (pl) português do Brasil (pt-br) русский (ru) Türkçe (tr) українська (uk) 中文(简体) (zh-hans) 中文(繁體) (zh-hant) 中文(香港) (zh-hk) Translate! [
View ]
NewImages restores the old module with recently uploaded images to the wiki. Limit for images in the module is 10.
Installation
Add this to MediaWiki:ImportJS :
dev:NewImages.js
importArticles
:
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:NewImages.js' , ] });
Local:
Special:MyPage/common.js
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account. If the script requires configuration through MediaWiki:Common.js for sitewide use, don't forget to contact Fandom Staff to get it enabled on your wiki, if it isn't already enabled.
Usage
By default, the module will be added to the rail. If you wish to move it somewhere to the article or the mainpage, use <div>
with class PhotoModule
. Example:
< div class = "PhotoModule" ></ div >
Text above can be found
here (edit )