Template:Wide image
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Display an wide image with automatic horizontal scroll bars
Usage
{{Wide image |1= |2= |3= |alt= }}
{{wide image|name|width|description|box width|alignment}}
Template parameters
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
oruseTemplateData=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 TemplateData • Commons-specific information
Template parameters[Edit template data]
This template prefers inline formatting of parameters.
Parameter | Description | Type | Status |
---|
file | 1 image |
Name of the image without "File:" prefix
| File | required |
---|
image width | 2 |
The width the image should be displayed in (e.g.: 1200px). To specify the height instead of the width, prefix the parameter with x, e.g. x200px.
| Line | required |
---|
description | 3 caption |
A description which will be displayed below the image
| Content | optional |
---|
box width | 4 width |
What fraction of the page the image should consume, as a percentage (use %) or in pixels (use px)
-
Default
-
auto
| Line | optional |
---|
align | 5 align |
"left" to float image left, "right" to float right, or "none" (the default) to disable floating
-
Default
-
none
| Line | optional |
---|
caption align | align-cap |
Alignment of caption, by default same as the text direction (i.e. left in left-to-right contexts and right in right-to-left contexts)
| Line | optional |
---|
alternative text | alt |
Describe the image's visual appearance to visually disabled readers.
| Line | optional |
---|
bordered | border |
Whether to keep the outer border ("yes" or "no")
-
Default
-
yes
| Line | optional |
---|
scroll direction | dir |
Specify the scroll direction; use the value 'rtl' can make the right side of the image the initial visible portion inside the scroll frame (or 'ltr' the left side in right-to-left contexts)
-
Default
-
none
| Line | optional |
---|
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
Example
{{Wide image|Passau Panorama 080420 1.jpg|1200px|Panorama of Passau}}
renders as:
See also
Localization
This template is not intended to be localized.
Retrieved from "https://commons.wikimedia.org/w/index.php?title=Template:Wide_image&oldid=637766121"
Categories:
●Lua-based templates
●Templates using TemplateData
●Templates not requiring internationalization
●Formatting templates
Navigation menu
●English
●Not logged in
●Talk
●Contributions
●Create account
●Log in
●Template
●Discussion
●View
●Edit
●History
Search
●Main page
●Welcome
●Community portal
●Village pump
●Help center
●Upload file
●Recent changes
●Latest files
●Random file
●Contact us
●What links here
●Related changes
●Special pages
●Permanent link
●Page information
●Get shortened URL
●Download QR code
●Wikidata item
●Download as PDF
●Printable version
●MediaWiki
●Meta-Wiki
●Wikibooks
●Wikidata
●Wikinews
●Wikipedia
●Wikisource
●Wikiversity
●Afrikaans
●Alemannisch
●العربية
●الدارجة
●مصرى
●অসমীয়া
●Asturianu
●Авар
●Aymar aru
●Azərbaycanca
●تۆرکجه
●Башҡортса
●Basa Bali
●Boarisch
●Беларуская
●Беларуская (тарашкевіца)
●Български
●भोजपुरी
●ပအိုဝ်ႏဘာႏသာႏ
●বাংলা
●Brezhoneg
●Bosanski
●Буряад
●Català
●閩東語 / Mìng-dĕ̤ng-ngṳ̄
●Нохчийн
●کوردی
●Corsu
●Čeština
●Чӑвашла
●Cymraeg
●Dansk
●Deutsch
●Zazaki
●Dolnoserbski
●Ελληνικά
●English
●Esperanto
●Español
●Eesti
●Euskara
●فارسی
●Suomi
●Français
●Nordfriisk
●Frysk
●Gaeilge
●Galego
●Avañe'ẽ
●ગુજરાતી
●Hausa
●客家語/Hak-kâ-ngî
●Hawaiʻi
●עברית
●हिन्दी
●Hrvatski
●Hornjoserbsce
●Magyar
●Հայերեն
●Bahasa Indonesia
●Ilokano
●Íslenska
●Italiano
●日本語
●Jawa
●ქართული
●Адыгэбзэ
●Қазақша
●ភាសាខ្មែរ
●ಕನ್ನಡ
●한국어
●Kurdî
●Kernowek
●Кыргызча
●Latina
●Лезги
●Ladin
●Lombard
●Lietuvių
●Latgaļu
●Latviešu
●मैथिली
●Македонски
●മലയാളം
●Монгол
●ဘာသာမန်
●मराठी
●Bahasa Melayu
●Malti
●မြန်မာဘာသာ
●مازِرونی
●Napulitano
●Plattdüütsch
●नेपाली
●नेपाल भाषा
●Nederlands
●Norsk nynorsk
●Norsk bokmål
●Occitan
●ଓଡ଼ିଆ
●Ирон
●ਪੰਜਾਬੀ
●Polski
●پښتو
●Português
●Rumantsch
●Română
●Русский
●Русиньскый
●संस्कृतम्
●Саха тыла
●Sardu
●Scots
●سنڌي
●Davvisámegiella
●Srpskohrvatski / српскохрватски
●ၽႃႇသႃႇတႆး
●සිංහල
●Simple English
●Slovenčina
●Slovenščina
●Anarâškielâ
●Shqip
●Српски / srpski
●Seeltersk
●Sunda
●Svenska
●Kiswahili
●தமிழ்
●తెలుగు
●Тоҷикӣ
●ไทย
●Türkmençe
●Tagalog
●Türkçe
●Татарча / tatarça
●Удмурт
●Українська
●اردو
●Oʻzbekcha / ўзбекча
●Vèneto
●Tiếng Việt
●Volapük
●吴语
●მარგალური
●ייִדיש
●中文
●文言
●閩南語 / Bân-lâm-gú
●粵語
Edit links
●This page was last edited on 12 March 2022, at 07:52.
●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
●About Wikimedia Commons
●Disclaimers
●Code of Conduct
●Developers
●Statistics
●Cookie statement
●Mobile view