Topic on Extension talk:MultimediaViewer

Display summary of image

6
86.124.80.209 (talkcontribs)

Hello,

I installed this very nice extension and also CommonsMetadata.

Problem is I want to display under the image the contents of the summary field. Right now it displays the file name.

Can you please explain like for dummies how can I change this?

Thank you very much,

Cristian

Tgr (WMF) (talkcontribs)

The fallback chain for the main text is image caption -> file description page summary -> file name. If both caption and summary exist, the summary will be displayed below the main text.

If you see the file name, either CommonsMetadata is not working or it does not recognize the template. Test the API directly.

86.124.80.209 (talkcontribs)

Hello,

Thank you for your feedback! Indeed if I disable CommonsMetadata I get the same result.

Now I begin to understand a little bit (at least I hope). CommonsMetadata is designed to parse information on media files using the template which is used in Wikimedia Commons.

The problem I have my wiki is a simple, basic installation and the image files I uploaded have a simple text in the summary field.

I have no clue how to make a template for that, where the templates are installed (?) or what it means to test the API directly.

Thank you very much,

Cristian

86.124.80.209 (talkcontribs)

Aha

Somehow I understood (hopefully) how to test the API directly. This is what I get for an image

{
    "batchcomplete": "",
    "query": {
        "normalized": [
            {
                "from": "File:MICRO_FEINMECHANIK_00078_3_ebay_silvanadebego.JPG",
                "to": "File:MICRO FEINMECHANIK 00078 3 ebay silvanadebego.JPG"
            }
        ],
        "pages": {
            "410": {
                "pageid": 410,
                "ns": 6,
                "title": "File:MICRO FEINMECHANIK 00078 3 ebay silvanadebego.JPG",
                "imagerepository": "local",
                "imageinfo": [
                    {
                        "timestamp": "2016-10-02T12:40:43Z",
                        "user": "Cristian.buru@gmail.com"
                    }
                ]
            }
        }
    }
}

Still, no trace of the summary field information...

Tgr (WMF) (talkcontribs)
86.124.80.209 (talkcontribs)

Hello,

Yes it worked! Thank you very much for your help! In the end I simplified to something like this:

DESCRIPTION
SOURCE
AUTHOR
Reply to "Display summary of image"