Template:Gallery page
A message is to be placed at the top of gallery pages. It helps users to find the parent category of the gallery more easily, and explains that the gallery only contains a selection.
Usage
{{Gallery page |1= }}
Template parameters
- TemplateData
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.
Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either useTemplateData=1
or useTemplateData=only
on the /doc
subpage and transcluding it with {{Documentation}} into the template. <nowiki>
-tags can be wrapped around the arguments, if required, to avoid templates being expanded.
Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw <templatedata>
-tags into the Wikitext of the template, as described in various Wikipediae.
Wikipedia's help about TemplateData • Commons-specific information
A message is to be placed at the top of gallery pages. It helps users to find the parent category of the gallery more easily, and explains that the gallery only contains a selection.
Parameter | Description | Type | Status | |
---|---|---|---|---|
category name | 1 | Name of the corresponding category, without the “Category:” prefix
| Line | optional |
Additional information
The template is intended to be used in the following namespaces: the main or gallery namespace (unprefixed)
The template is intended to be used by the following user groups: all users
Example
{{Gallery page|CATEGORYNAME}}
renders as:
See also
Templates linking contents
"1-N" means from one to many.
- Upwards links
- – "Main gallery" link from gallery or category to 1-N main galleries.
- – "Main category" link from gallery or category to 1-N main categories.
- – (box) Alternative "See category" boxed link from gallery to parent category, with explanation of the role of a gallery page.
- Downwards links
- – "Further information" link to 1-N detailed galleries or categories.
- Sideways page links
- – (box or inline) "See also" link to 1-N related pages.
- – "For" a single alternative page with explanation.
- - "For" 1-N alternative pages with one or more explanations.
- – As "For2" with an explanation of the current page.
- - As "For multi" with an explanation of the current page.
- – "Not to be confused with" link to 1-N related pages.
- – (box) Internationalized "See also" (or other caption) to related images.
- – (box) Internationalized with icon-links to related images of the same (medical) case.
- – "See" link from gallery to gallery.
- Sideways category links
- – (box or inline) "See also Categories" link to 1-N related categories.
- – (box or inline) "Not to be confused with categories" link from category with ambiguous names to 1-N unrelated categories.
- Interproject links
- – "Main Wikipedia article" link to 1 article (don't forget the purpose of interwiki links).
- – "See also Wikipedia article" link to 1-N articles (don't forget the purpose of interwiki links).
- Template:Multilingual link – allows to indicate names of versions of same Wikipedia article in many languages and displays one link in interface language.
Localization
العربية ∙ български ∙ català ∙ Deutsch ∙ English ∙ español ∙ français ∙ hrvatski ∙ magyar ∙ Bahasa Indonesia ∙ italiano ∙ 日本語 ∙ македонски ∙ Nederlands ∙ polski ∙ português do Brasil ∙ русский ∙ slovenščina ∙ svenska ∙ 中文
This template makes use of {{Autotranslate}} and the translate extension. The layout of the template can be found under Template:Gallery page/layout.