Help:Extension:ExternalImage
This page provides help for the ExternalImage extension, which allows you to embed external images in your wiki pages.
Basic Usage
To add an external image to your page, use the <img>
tag with the src
attribute:
<img src="https://example.com/image.jpg" />
Examples
Simple Image
<img src="https://example.com/image.jpg" alt="A sample image" />
Image with Fixed Size
<img src="https://example.com/image.jpg" width="500" height="300" />
Image with Percentage Size
<img src="https://example.com/image.jpg" width="50%" />
Clickable Image
<img src="https://example.com/image.jpg" href="https://example.com" newtab="true" />
Tips
- Always include meaningful alt text for accessibility
- Use percentage dimension of 50% to specify the image is "high dpi" or "retina" resolution
- When linking images, consider whether opening in a new tab (newtab="true") is appropriate for your users
- For SVG images, the extension provides special handling of width and height attributes
Troubleshooting
Common Issues
- Image not displaying: Verify the src URL is correct and accessible
- Size not working: For percentage sizes, ensure the source image is accessible for dimension calculation
- Link not working: Check the href URL format and ensure newtab is properly set to "true" if needed
See Also
- ExternalImage Extension - Technical documentation
- Working with Images in MediaWiki