Template:InlineImageAnnotations

From electowiki
Template documentation[view] [edit] [history] [purge]

This template can be used to restrict the display of image annotations in articles where the image appears. The template can be placed on a file description page to specify how notes on the file should be displayed when the image is used in articles. It does not activate display if notes are switched off for a given group of users or images in the site-wide configuration.

Usage

{{InlineImageAnnotations |inline= |thumb= }}

Template parameters

ParameterDescriptionDefaultStatus
inline
control inline imagesshowoptional
thumb
control thumbnail imagesshowoptional
Lua error in Module:Autotranslate at line 72: No fallback page found for autotranslate (base=Template:TemplateDataInfo/i18n, lang=⧼lang⧽).

This template can be used to restrict the display of image annotations in articles where the image appears. The template can be placed on a file description page to specify how notes on the file should be displayed when the image is used in articles. It does not activate display if notes are switched off for a given group of users or images in the site-wide configuration.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
control inline imagesinline

One of “show”, “hide”, and “icon”. “Show” means showing inline (not thumbnail) images’ notes in the articles, “hide” means hiding them completely, and “icon” means not showing the notes themselves, but only an icon suggesting the reader can find notes on the description page. If this parameter is set to “hide”, the other parameter has no effect, thumbnails’ notes are also hidden.

Default
show
Stringoptional
control thumbnail imagesthumb

One of “show”, “hide”, and “icon” (see explanations at the other parameter). This parameter controls thumbnail images’ notes.

Default
show
Stringoptional

Additional information

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

The template is intended to be used by the following user groups: all users

Localization

This template is not intended to be localized.

Examples

To allow display of notes only for inline images, but to show only an icon on thumbnails, use

{{InlineImageAnnotations|inline=show|thumb=icon}}

or just

{{InlineImageAnnotations|thumb=icon}}

To only show icons on all images, use

{{InlineImageAnnotations|inline=icon|thumb=icon}}

To not show notes on thumbnails at all, but to show them for inlined uses of the image, use

{{InlineImageAnnotations|thumb=hide}}