Manual:Linked images/de

This page is a translated version of the page Manual:Linked images and the translation is 5% complete.

Images on a MediaWiki wiki will by default, link to the description page, so that licensing information, upload history, contributors, and full resolution versions are immediately available to the user when they click an image.

However, there are several ways to override this link:

link= syntax

Direct internal or external links from images are possible using the syntax documented at Hilfe:Bilder .

In your wikicode:


This will make a 50px width picture with a link to the page MediaWiki:

If you put the link empty, the image will no longer be clickable.


External image syntax

If you enable $wgAllowExternalImages (which allows external images from any domain) or $wgAllowExternalImagesFrom (which restricts the list of domains), anyone can then easily create an "external" link to an "external" image. External simply means: using the full URL rather than a local link, so you can link locally, but you need to use the full URL. The plainlinks class is used to remove the "external link" icon:

After enabling $wgAllowExternalImages , you can also embed an image by simply typing the URL of the image.

For example,
will display the image on screen.
<span class="plainlinks">[https://linktopage https://linktoimage]</span>

So for example, were external images allowed here, you could link to the main page with using wikicode like:

<span class="plainlinks">[{{fullurl:MediaWiki}}]</span>

This has the disadvantage of not registering the link, or the image use, as well as not being easily portable to forks and mirrors.


If you enable $wgRawHtml , you can use ‎<img> tags freely, but this method is highly insecure. On newer MediaWiki you can use the Handbuch:$wgAllowImageTag (veraltet in 1.35) option which allows <img> and is more secure than raw html.

There are, however, some extensions to make it safer, see Handbuch:$wgRawHtml for details.

ImageMap extension

Erweiterung:ImageMap can be deployed to enable more advanced customization of where an image links to, such as specific pixels pointing to specific places.

Siehe auch