Template:File caption
Jump to navigation
Jump to search
This documentation is transcluded from Template:File caption/doc.
Uses Lua: |
Provide file caption stored in Structured Data on Commons. This function is used by {{Information}} to provide file description in case it is not provided in the template but is available in SDC. Language parameter "lang" works well if there is a caption in that language, than looks for captions in fallback languages including English. If none are found than random language is returned.
Usage
{{File caption |mid= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
mid | mid | entity ID of the SDC page. For a given file can be looked up by:
| Entity ID of the current page | optional |
lang | lang | desired language | user's language | optional |
icon | icon | Should an pen icon be displayed linking back to the field where once can edit the caption? | true | optional |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Examples
{{File caption|mid=M4184419 |lang=en |icon=0}}
gives "English: A five year old hanging around bouldering wall in Sportrock climbing gym in Alexandria, Virginia, USA"{{File caption|mid=M3050001 |lang=pl |icon=1}}
gives " "{{File caption|mid=M3050001 |lang=en |icon=1}}
gives " "