LinkPreview shows article preview on link hover. Inspired by mw:extension:Popups.
Settings
Available through window.pPreview
:
- csize : 100 - cache size.
- debug : false - debug mode, verbose output.
- defimage : - default image source (before article image loaded).
- delay : 100 - hover reaction delay.
- dock : '#mw-content-text' - article container.
- noimage : - image-not-found source.
- scale : {r: '?', t: '/scale-to-width-down/350?'} - replace r to t in the img src (vignette-based scaling). Use scale=false if no scaling nedeed.
- tlen : 1000 - max text length.
- RegExp.iimages : [] - array of RegExp or plain text. Ignored images, will not be used to build preview.
- RegExp.ipages : [] - array of RegExp or plain text. Ignored pages, preview will not show up.
- RegExp.ilinks : [] - array of RegExp or plain text. Ignored links, will have not preview on it.
Addons
- newpages.js
- adds preview button to Special:NewPages elements. Preview will shown up on the upper-left corner.
Installation
Template:Script Install/ImportJS