Template:Licensed files

 category= notcategory=Unknown copyright notcategory=Copyright violations namespace=File imagewidth=120 addfirstcategorydate=false galleryshowfilename=yes mode=gallery gallerycaption= license ordermethod=categorysortkey order=ascending suppresserrors = true 

The template creates a gallery of files with the relevant license.

Usage
creates:

If no licence number is given then the default mediawiki license CC-BY-SA-3.5 is used instead

Unclear license categories
Any files in the Category:Media uploaded without a license or Category:Copyright violations categories will not be displayed.