Jump to content

User:Alexis Jazz/MVattrib

From Wikipedia, the free encyclopedia
MVattrib
DescriptionAppends contents of the author+permission parameter of the information template and contents of the license section to the attribution in MediaViewer when there is a FoP template or MediaViewer is suspected to be triggering phab:T68606
Author(s)User:Alexis Jazz
StatusIt works but prolly buggy
UpdatedJanuary 23, 2022; 2 years ago (2022-01-23)
SourceUser:Alexis Jazz/MVattrib.js

Appends contents of the author+permission parameter of the information template and contents of the license section to the attribution in MediaViewer when there is a FoP template or MediaViewer is suspected to be triggering phab:T68606. Works only for files that are hosted on Commons.

Expect bugs.

Test gallery.

MVattrib in action

How to install

[edit]

Add this to m:Special:MyPage/global.js to load the script globally:

mw.loader.load('//wiki.riteme.site/w/index.php?title=User:Alexis_Jazz/MVattrib.js&action=raw&ctype=text/javascript');

To load the script on a specific Wikimedia project, add the line to Special:MyPage/common.js on the project in question instead.