mediamediawikicategoriesmediawiki-extensions

MediaWiki - How to use all images from a Category in a gallery


I have set a description on the file:

{{Information
  |description = A cheeky description
}}

I have tried to use this CategoryGallery successfully, but I cannot get the descriptions to work:

enter image description here

I have also used the required extra extension, they talk about short_summary, however this does not exist as far as i can see in Information template

<catgallery cat="Aubry" bpdcaption="short_summary" />

So how do I use category images in a gallery with MediaWiki?


Solution

  • Cargo may be overkill for this (you didn't mention that you are saving any metadata for all the images).

    I personally uses DPL, which allows you do to some cool tricks with categories, you can check the manual, but as for your case:

    {{#dpl:
    category=all_photos
    |mode=gallery
    }}
    

    that very simple example, but you can control the output format within the query (read at the manual i've mentioned).

    DPL is built for this scenarios.