Jump to content

Topic on Project:Support desk

Agatnor (talkcontribs)

Hello guys,

I don't really know how to insert licenses or author information into a Mediawiki project so that they are recognized and displayed by the Mediaviewer. To give an example for my problem: If you look at an image in Wikipdia (or Mediawiki) in the media viewer, you can scroll down and see the author information and license information. Unfortunately, this is not the case in my Mediawiki project, I would be very happy to receive an answer!

TheDJ (talkcontribs)

All this is done with custom templates, placed on the wikitext filedescription, which are then being scraped by and extension.

The way the Information and license templates on Commons provide this data is documented on https://commons.wikimedia.org/wiki/Commons:Machine-readable_data and it happens with classes and ids applied to the templates.

The extension reading out this information is Extension:CommonsMetadata

The results of that extension then provided additional information in the image info API, which is read by MultimediaViewer. This is all VERY cumbersome because it was not an intentional design.

Reply to "Licenses"