Template:External image/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:External image. It contains usage information, categories and other content or metadata that is not part of the original template. |
Usage
This template includes external images to the wiki and allows basic formatting.
Parameter | Description | Type | Status | |
---|---|---|---|---|
alignment | alignment | alignment of the image and caption on wiki page
| String | optional |
caption | caption | caption of the image
| Unbalanced wikitext | optional |
link | link | link in case someone clicks on the image
| URL | optional |
URL | URL | URL of the image
| URL | required |
Application
{{external image|URL=http://josm.openstreetmap.de/export/15255/josm/trunk/images/bug.png}}
{{external image|URL=http://josm.openstreetmap.de/export/15255/josm/trunk/images/bug.png|alignment=right}}
{{external image|URL=http://josm.openstreetmap.de/export/15255/josm/trunk/images/bug.png|caption=a nice bug icon}}
a nice bug icon |
{{external image|URL=https://tile.openstreetmap.org/15/17875/11359.png|alignment=center|link=https://openstreetmap.org}}
{{external image|URL=http://josm.openstreetmap.de/export/15255/josm/trunk/images/audio-prev.svg}}
{{button|{{external image|URL=http://josm.openstreetmap.de/export/15255/josm/trunk/images/audio-prev.svg}}}}
Getting the URL of a JOSM icon
Navigate to https://josm.openstreetmap.de/browser/josm/trunk/images. Click on the desired image. In the center of the page, click on Download in other formats and right click on Original Format > Copy link address. Paste the copied URL into the template.
See also
- https://www.mediawiki.org/wiki/Manual:$wgAllowExternalImages
- MediaWiki configuration info
- https://github.com/openstreetmap/chef/blob/40836bb2a0d4d9462d746c78d5084e1c9379bae9/cookbooks/mediawiki/templates/default/LocalSettings.php.erb#L248
- Setup for all OSM wikis