Commons:User scripts

From Wikimedia Commons, the free media repository
Jump to: navigation, search
[update]

MediaWiki: 1.28.0-wmf.15 (a49b181)
jQuery: 1.11.3 / UI: 1.9.2

Hi, interested in scripting? We need help, so do not hesitate to ask what you can do. We recommend start testing in your user-namespace (new users see basic instructions here).

We have a JavaScript styleguide, but it is a guide, not a policy. Nevertheless, consider reading the MediaWiki manual.

TO DO[edit]

  • Clarify the copyright situation of user-scripts.
  • standardize scripts' i18n methods → Gadgets 2.0 (mw.msg; example; explanation)
  • Search & Detecting security vulnerable
  • (urgent) Fix script affected by changes in the default continuation

To create[edit]

These are just suggestions. Feel free to comment in the talk-section.

  • A script to get a formatted list of uploads, category-members, …
  • A plugin to install scripts loaded with &withJS= - URL parameter to the user's common or skin.js
  • A script-installer which is invokable by a template (URL-params maybe) with a step-by-step wizard (done for gadgets → Template:ActivateGadget)
  • A global-user-page and settings wizard allowing to create and update the userpage on several wikis.
  • A slideshow-framework using templates and script like Image Annotator or {{ImageStack}} with customizable caption-boxes, slide-effects, drag&slide, preview thumb-bar, …
  • Integrate code for VIC and FPC nomination in MediaWiki:Gadget-QInominator.js.
  • An autotranslate-template creation wizard
  • Refractor MediaWiki:Gadget-LanguageSelect.js: Multiple language-preferences, showing a (+) like HotCat allowing to add a translation (create an input on-the-fly) to push i18n forward
  • Script to show 1-3 file examples in parent categories from their child categories (Special:Permalink/84246834#Galleries in Categories)
  • Rewrite DerivativeFX as a JavaScript application
  • A tool to visually explore Flickr-Images from streams/sets/… before uploading and allowing to unselect some of them by given criteria

Scripts without il8n[edit]

Other[edit]

Under construction[edit]

General Talk[edit]

/talk

Tech News: 2015-51[edit]

17:42, 14 December 2015 (UTC)

Tech News: 2016-33[edit]

19:37, 15 August 2016 (UTC)


Users with script experience that may help[edit]

Wiki-tech-logo.svg This user develops
user scripts;
{{User script developer}}

See also: Category:Commons JavaScript coders

See also[edit]

Learning[edit]

Testing[edit]

You can test any script by running it from your console or put the code in a Special:MyPage/test.js and hit "preview".

Validating and styling[edit]

Tools[edit]

Troubleshooting[edit]


Commons[edit]