• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Wide image

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 9,400 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
This template uses Lua:
  • Module:Check for unknown parameters (sandbox)
  • Module:Wide image (sandbox)

Contents

  • 1 Usage
  • 2 Example
    • 2.1 Without caption
      • 2.1.1 smaller
    • 2.2 With caption
    • 2.3 Right aligned
    • 2.4 Left aligned
    • 2.5 Center aligned 75% width
    • 2.6 No alignment
    • 2.7 Scroll right to left
    • 2.8 Dark mode
  • 3 TemplateData
  • 4 Tracking category
  • 5 See also

This template allows you to easily include a panorama image. If the image is too wide, scrollbars will be added. If you do not want the image to use a thumbnail frame, you can use |border=no.

Usage

{{Wide image|name|image width|caption|box width|alignment|alt=alt text}}

  • An image width option is required. This specifies the full width at which the image will be displayed, and is distinct from box width (the width of the box on the page).
  • A caption option is optional, and an image frame will be used if a caption is supplied. If the caption contains an equal sign, use the parameter |3=caption in the place of |caption. If the caption supplied is exactly equal to image syntax such as thumb, the image's tooltip will no longer display the caption, but instead default to the name of the image.
  • The box width option is optional, and if given a value in pixels followed by "px", or a value in percent followed by "%", will set the width of the box to that amount. For example, 45% would use 45% of the text section width, (not a percentage of the image width).
  • The alignment option is also optional but requires box width to be defined. If given a value of right or left, the entire wide image will float to the right or left. If given a value of none the image will not float.
  • The alt text describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details.

To change the scroll direction from left-to-right to right-to-left, use |dir=rtl.

To align the caption, use |align-cap=.

To remove the outer border, use |border=no.

Example

Without caption

{{wide image|Helsinki z00.jpg|1800px|
|alt=Panorama of city with mixture of five to ten story buildings}}
Panorama of city with mixture of five to ten story buildings

smaller

{{wide image|Helsinki z00.jpg|400px|
|alt=Panorama of city with mixture of five to ten story buildings}}
Panorama of city with mixture of five to ten story buildings

With caption

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama
|alt=Panorama of city with mixture of five to ten story buildings}}
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

Right aligned

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|right
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. [[Lorem ipsum]] dolor sit amet...
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Left aligned

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|left
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Center aligned 75% width

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|75%|center
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

No alignment

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama|45%|none
|alt=Panorama of city with mixture of five to ten story buildings}}
This text goes after the ''wide image'' template. Lorem ipsum dolor sit amet...
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

This text goes after the wide image template. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Scroll right to left

{{wide image|Helsinki z00.jpg|1800px|[[Helsinki]] panorama
|alt=Panorama of city with mixture of five to ten story buildings
|dir=rtl}}
Panorama of city with mixture of five to ten story buildings
Helsinki panorama

Dark mode

Some images, like vectors and charts, may look better in dark mode with the skin-invert-image CSS class. This can be done by wrapping around a div, as shown in this example:

<div class="skin-invert-image">{{Wide image|Elements_abundance-bars.svg|1000px|Estimated abundances of the chemical elements in the Solar System (logarithmic scale)}}</div>
Estimated abundances of the chemical elements in the Solar System (logarithmic scale)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Wide image in articles based on its TemplateData.

TemplateData for Wide image

Allows you to easily include a panorama image. If the image is too wide, scrollbars will be added.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Filename1 image

Name of the file to display. Example: Helsinki z00.jpg

Filerequired
Image width2

Give the width in pixels (like: 1600px) that you want the included image to be

Stringrequired
Caption3 caption

A caption for the image that will be shown below image

Stringoptional
Width of frame4 width

Limit the width of the frame enclosing the picture. Example: "400px" or "40%"

Stringoptional
Frame alignment5 align

Either of: left, right, center or none. When specified also requires you to set the "Width of frame" option

Suggested values
left right center none
Default
center
Stringoptional
Picture alignmentdir

Use the value 'rtl' to make the right side of the image the initial visible portion inside the scroll frame

Suggested values
ltr rtl
Default
ltr (left to right)
Stringoptional
Alt textalt

Describes the image's visual appearance to visually disabled readers. Please see WP:ALT for details

Stringoptional
Borderborder

Set to "no" to remove the thumbnail frame

Suggested values
yes no
Stringoptional

Tracking category

  • Category:Pages using wide image with unknown parameters (0)

See also

Wikimedia Commons has media related to Template:Wide image.
  • {{Panorama}} – with an option to set the height
  • {{Scalable image}}
  • {{Tall image}}
  • {{Scrollable}}
The above documentation is transcluded from Template:Wide image/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wide_image&oldid=1040496159"
Last edited on 24 August 2021, at 22:18

Languages

    • Адыгэбзэ
    • Afrikaans
    • Alemannisch
    • Anarâškielâ
    • العربية
    • অসমীয়া
    • Asturianu
    • Avañe'ẽ
    • Авар
    • Aymar aru
    • Azərbaycanca
    • تۆرکجه
    • Basa Bali
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Башҡортса
    • Беларуская
    • Беларуская (тарашкевіца)
    • भोजपुरी
    • Български
    • Boarisch
    • Bosanski
    • Brezhoneg
    • Буряад
    • Català
    • Чӑвашла
    • Čeština
    • Corsu
    • Cymraeg
    • Dansk
    • الدارجة
    • Davvisámegiella
    • Deutsch
    • Dolnoserbski
    • Eesti
    • Ελληνικά
    • Español
    • Esperanto
    • Euskara
    • فارسی
    • Français
    • Frysk
    • Gaeilge
    • Galego
    • ગુજરાતી
    • 客家語 / Hak-kâ-ngî
    • 한국어
    • Hausa
    • Hawaiʻi
    • Հայերեն
    • हिन्दी
    • Hornjoserbsce
    • Hrvatski
    • Ilokano
    • Bahasa Indonesia
    • Ирон
    • Íslenska
    • Italiano
    • עברית
    • Jawa
    • ಕನ್ನಡ
    • ქართული
    • Қазақша
    • Kernowek
    • Ikinyarwanda
    • Kiswahili
    • Kurdî
    • Кыргызча
    • Ladin
    • Latgaļu
    • Latina
    • Latviešu
    • Лезги
    • Lietuvių
    • Lombard
    • Magyar
    • मैथिली
    • Македонски
    • മലയാളം
    • Malti
    • मराठी
    • მარგალური
    • مصرى
    • ဘာသာမန်
    • مازِرونی
    • Bahasa Melayu
    • 閩東語 / Mìng-dĕ̤ng-ngṳ̄
    • Монгол
    • မြန်မာဘာသာ
    • Nederlands
    • नेपाली
    • नेपाल भाषा
    • 日本語
    • Napulitano
    • Нохчийн
    • Nordfriisk
    • Norsk bokmål
    • Norsk nynorsk
    • Occitan
    • ଓଡ଼ିଆ
    • Oʻzbekcha / ўзбекча
    • ਪੰਜਾਬੀ
    • ပအိုဝ်ႏဘာႏသာႏ
    • پښتو
    • ភាសាខ្មែរ
    • Plattdüütsch
    • Polski
    • Português
    • Română
    • Rumantsch
    • Русиньскый
    • Русский
    • Саха тыла
    • संस्कृतम्
    • سرائیکی
    • Sardu
    • Scots
    • Seeltersk
    • Shqip
    • සිංහල
    • Simple English
    • سنڌي
    • Slovenčina
    • Slovenščina
    • کوردی
    • Српски / srpski
    • Srpskohrvatski / српскохрватски
    • Sunda
    • Suomi
    • Svenska
    • Tagalog
    • தமிழ்
    • Татарча / tatarça
    • တႆး
    • తెలుగు
    • ไทย
    • Тоҷикӣ
    • Türkçe
    • Türkmençe
    • Удмурт
    • Українська
    • اردو
    • Vèneto
    • Tiếng Việt
    • Volapük
    • 文言
    • 吴语
    • ייִדיש
    • 粵語
    • Zazaki
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 24 August 2021, at 22:18 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop