Other languages:
Bahasa Indonesia British EnglishDeutsch English català corsudansk español français italianopolski português românăбеларуская (тарашкевіца) русский中文 日本語
This page is considered an official guideline on Wikimedia Commons. It illustrates standards or behaviors which most editors agree with in principle and generally follow. Feel free to update the page as needed, but please use the discussion page to propose major changes.
Galleries (gallery pages) exist to present readers with a structured and meaningful collection of the media found here on Wikimedia Commons.
Usually, they are created to give a sample or overview of all the media on a given topic.
Galleries of images (which are often used in gallery pages, but are a different thing) can be generated using the <gallery> tag, or as well with the support of special templates.
Starting a gallery
When creating a new gallery, a few things should typically be included:
1. For a simple gallery, the gallery tag to hold media (<gallery></gallery>), see meta:Help:Images and other uploaded files#Gallery. For more complex gallery pages, there may be several <gallery> tags under separate headings. Wide images are usually better handled with {{Wide image}} than with <gallery>, though certain attributes for the <gallery> tag, such as <gallery mode="packed">, can give a good presentation for some wide images.
2. Obviously: Media! (images, sounds, video)
3. A brief description of the subject (if necessary)
4. Categories
Every gallery should be categorized. Add the gallery to the category with the same name, or if there is none, to relevant categories (see Commons:Categories​).
5.Category linking
6. Interwiki links to Wikipedia articles
7. Infoboxes
If you want an infobox, then link the gallery to the relevant Wikidata item (under 'Multilingual sites', and add {{Wikidata Infobox}}. This will display the content from Wikidata multilingually, including a link to the other sister projects where relevant. You may want to set "autocat=no" as a parameter to avoid it from adding the gallery to categories (see Commons:Categories#Over-categorization​).
Galleries are created in the same way as Articles are created in Wikipedia. Enter the name in the Wikimedia Commons "search" box and click "go". If no such gallery exists yet, it will offer the choice of creating one. Click on the red name, edit the page (marking it as gallery page on the very top) by putting in the gallery tag and the pictures. Then add the [[Category:xyz]]. A gallery can have any name, but it is usual to follow the category name. Finally click on the button Show preview, make final changes, and if you like your work, click on Save page.
Other things to include
Depending on the subject, there are other things you may want to include in a gallery. This may be a navigation bar, a taxonomy box, links to sister projects besides Wikipedia, among other things specific to the topic.
Certain topics have their own WikiProject devoted specially to that area of Commons, such as Commons:WikiProject Tree of Life. They may have their own set of guidelines for galleries related to their field of interest.
Styling a gallery
The <gallery> tag does not accept CSS, but certain styles can be added to it, such as:
Naming conventions
See also: Commons:Language policy.
Unlike naming categories, where English is almost always used, galleries should be named in language most associated with the subject. This applies to people, places, art, culture, etc. For general subjects and ones not tied to any specific language, the name most likely to be searched for (usually English) should be used. An exception to this rule is the naming of galleries of organisms and subjects where Latin names are considered universal. These follow the same guidelines as categories and should share the same name.
When to create a gallery
Not every subject should have its own gallery even if it has its own category. Likewise, not every subject should have its own category even if it has its own gallery. Galleries should not be created if they merely duplicate the purpose of a category. However, this does not mean they should be deleted or "merged". Categories will always be categories, but galleries can turn into something much more.
Commons does not have an equivalent to Wikipedia's "stub" articles. Our goal is not to simply have a gallery on every notable or noteworthy subject. They should be created with a specific purpose. Galleries with only a single image are permitted if they highlight an image which has been elected by the community as a featured picture, quality image, or valued image.
It is recommended to create redirects from names in other languages, especially if a gallery's name is not English. Redirects from the plural form and other variations may also be useful.
See also Commons:Redirect.
Redirect aids
Galleries vs. categories
The biggest issue concerning galleries is their relationship with categories. Many times these two systems appear to be redundant with each other. This isn't (or shouldn't) be the case. They can co-exist. Galleries and categories may both accomplish the same goal—to help users find media—but in very different ways. Categories should contain all files related to the subject while galleries should contain a sample of files related to the subject. Ideally, galleries should contain the best of what we have. All files should be in at least one category, but not all files should be in a gallery.
The benefits of galleries
Galleries can do a few things that categories don't. They can show captions and information regarding each image, and group images into sections. Images in a gallery can be arranged in chronological, geographical, thematic or other informative order. Galleries can exclude poorer quality and redundant images that fill some categories and impede users who simply are looking for a good image, say, to illustrate a Wikipedia article. A gallery corresponding to a relatively high-level category can bring together images that are dispersed among numerous subcategories. Galleries can also be very strong as an internal tool, to aid visual identification of future images (species within a genus or varieties within a species; the many places of worship in a particular city; the piers on a waterfront; the buildings of a World's Fair; etc.).
The disadvantages of galleries
Adding new images to categories is quicker and easier than adding them to galleries. The user doesn't even have to leave the image's page in order to include it in a category. The right categories are more likely to already exist than the right gallery. Files can be added to non-existent categories but not to non-existent galleries. Categories group all related images together which aids in the creation of galleries, but this doesn't work as well the other way around if galleries only include the best images. Also, for users seeking a very specific image, the wider selection usually included in a category may be very welcome.
As of January 2019, there were:
115,798 galleries[1] (without redirects, compare to 7,345,227 categories[2])
Older statistics
In the three months from July to September 2013, there were approx.:
in gallery namespace.
SQL to check is available here.
See also
  1. without redirects, Number of galleries on Wikimedia Commons
  2. Number of categories, Number of galleries on Wikimedia Commons
  3. With zero images, Number of galleries on Wikimedia Commons
  4. With just one or two images, Number of galleries on Wikimedia Commons
  5. With 5 images or less, Number of galleries on Wikimedia Commons
  6. Being edited since January 2018, Number of galleries on Wikimedia Commons
Last edited on 15 December 2021, at 15:01
Files are available under licenses specified on their description page. All structured data from the file namespace is available under the Creative Commons CC0 License; all unstructured text is available under the Creative Commons Attribution-ShareAlike License; additional terms may apply. By using this site, you agree to the Terms of Use and the Privacy Policy.
Privacy policy
Terms of Use
HomeRandom Nearby Log in Settings DonateAbout Wikimedia CommonsDisclaimers