Template:LicenseReviewMenu

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Flickr

YouTube

Ipernity

Lemill Web Albums

OpenPhoto

iNaturalist

Scanned books, documents and ephemra


Other reviews

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:LicenseReviewMenu/doc.

No description yet available.

Usage

{{LicenseReviewMenu |lang= |collapsed= }}

Template parameters

ParameterDescriptionDefaultStatus
langlanguageThe language to use for the template. Use {{PAGELANGUAGE}} on Commons-namespace pages translated using the Translate extension, put the language code (en, fr, de etc.) on Commons-namespace pages translated without the extension, leave empty on categories, user pages etc. so that the template uses the user interface language.{{int:lang}}optional
collapsedcollapsedSpecify as “Yes”, “yes”, “Y” or “y” to collapse the template on non-category pages. On category pages, the template is always collapsed.emptyoptional
floatfloatWhere to float the template (right, left or none), by default the “opposite” side, i.e. the right on pages with left-to-right page language (like English) and left on pages with right-to-left page language (e.g. Arabic).emptyoptional
bg-headheader background colorCSS background color of the header (hexa triplet without the leading #)eeffeeoptional
bg-bodybody background colorCSS background color of the body (hexa triplet without the leading #)c9f5c9optional
Template data
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
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.

Discussion
There is an ongoing discussion about that matter. Feel invited to comment if you are experienced in either way, your time permits and if you like to share your opinion or to make a suggestion.


Wikipedia's help about TemplateDataCommons-specific information

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
body background colorbg-body

CSS background color of the body (hexa triplet without the leading #)

Default
c9f5c9
Lineoptional
header background colorbg-head

CSS background color of the header (hexa triplet without the leading #)

Default
eeffee
Lineoptional
collapsedcollapsed

Specify as “Yes”, “yes”, “Y” or “y” to collapse the template on non-category pages. On category pages, the template is always collapsed.

Lineoptional
floatfloat

Where to float the template (right, left or none), by default the “opposite” side, i.e. the right on pages with left-to-right page language (like English) and left on pages with right-to-left page language (e.g. Arabic).

Lineoptional
languagelang

The language to use for the template. Use {{PAGELANGUAGE}} on Commons-namespace pages translated using the Translate extension, put the language code (en, fr, de etc.) on Commons-namespace pages translated without the extension, leave empty on categories, user pages etc. so that the template uses the user interface language.

Default
{{int:lang}}
Lineoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

Localization

العربية  বাংলা  dansk  Deutsch  English  español  فارسی  français  galego  עברית  magyar  italiano  日本語  한국어  Lëtzebuergesch  македонски  मराठी  Nederlands  polski  português  русский  svenska  Türkçe  українська  Tiếng Việt  中文

This template makes use of {{Autotranslate}} and the translate extension.