Help:Linking to files/de

This page is a translated version of the page Help:Linking to files and the translation is 32% complete.
PD Hinweis: Wenn Du diese Seite bearbeitest, stimmst Du zu, dass Dein Beitrag unter der [CC0] veröffentlicht wird. Mehr Informationen findest du auf der Public Domain Hilfeseite. PD
Für linking from files to other pages siehe: Help:Images#Altering the default link target.

Lerne zuerst

Bevor Du Dateien verlinken kannst, benötigst du die Grundlagen von:

Nicht das gleiche wie Einbetten

Diese Hilfeseite behandelt das Verlinken zu Dateien. Verwechsle das nicht mit dem Einbetten einer Bilddatei in eine Seite. Obwohl es sich um beide Arten der Verwendung von Dateien handelt, sind sie nicht identisch.

Das Einbetten einer Bilddatei kann beispielsweise bedeuten, dass das Bild einer Person neben dem Text auf einer Seite über diese Person angezeigt wird. Für Informationen, wie ein Bild auf einer Seite eingebettet werden kann, siehe Hilfe:Bilder .

Warum verlinken?

In some situations, you don't want the file to be embedded in another page. You want a link on the page to take you to the file description page of a particular file. Or you may want the link to take you to the file itself. Here are some examples where you likely want to link rather than embed:

  • a file of a type that cannot be embedded in a page (for example, a spreadsheet -- assuming the wiki allows such file types to be uploaded at all).
  • a file may be an image that is so large it's only useful on its own page (for example a detailed map).
  • you want to refer the readers to where they can download or replace the file.

Link to a file description page

You can create a link to a file's file description page by using a colon (:) before File::

File:Example.jpg

[[:File:Example.jpg]]

Sunflowers

[[:File:Example.jpg|Sunflowers]]

Note that if you forget to use the initial colon, you will instead be embedding an image.

Link to actual file

You can use the pseudo-namespace "Media" to link to the actual file on MediaWiki pages. The link will not take you to the file description page, but instead will deliver the file itself.

Media:Example.jpg

[[Media:Example.jpg]]

Sunflowers

[[Media:Example.jpg|Sunflowers]]

(If the above pattern actually produces a text link to the file description page, instead of the expected link to the actual file, it may be that your wiki's namespaces are configured out of compliance with this feature.)

Direct links from external sites

Another possibility is to use the Special:Redirect/file page (or its alias Special:Filepath). Unlike the above example, you can link to it from external websites as well as from MediaWiki pages.

[[Special:Redirect/file/Wikipedia.png]]

The parameters height and width can also be added to return a specific size of the image. The image aspect ratio is always preserved.

https://www.mediawiki.org/w/index.php?title=Special:Redirect/file/Wikipedia.png&width=100&height=100