Template:ItemGallery/doc/de

Aus Palia Wiki
Zur Navigation springen Zur Suche springen
Diese Seite ist eine übersetzte Version der Seite Template:ItemGallery/doc und die Übersetzung ist zu 100 % abgeschlossen sowie aktuell.

Verwendung

Die {{ItemGallery/doc}}-Vorlage soll für die Galerie auf jeder Seite eines Gegenstands verwendet werden.

Die Vorlage holt und prüft automatisch drei Bilder für jede Seite:

  • UntranslatedPagename.png (Icon)
  • UntranslatedPagename Ingame.png (Gegenstand im Spiel)

Hinweis: Falls die Datei nicht existiert, erscheint kein Bild, sondern ein kaputter Link.

Syntax

{{ItemGallery<!-- Platziere jedes Bild in einer neuen Zeile, die mit "|File:" beginnt. Füge "|"  und weiteren Text hinzu, um eine Bildunterschrift hinzuzufügen. -->
|File: |
}}<!-- Ende der Galerie, NICHT LÖSCHEN -->

Beispiele

Wenn die Galerie auf der Seite platziert wird: Holzlagertruhe

Image Properties

Additional Image properties can be added to each image along with the Galleries description, however due to Template syntax additional care must be used to escape special characters (To prevent weird formatting problems).

  • Each image property following the Description should be separated by {{!}}, which will convert into a pipe character (|)
  • Typing an equal sign (=) will cause the attribute to be treated as a named template parameter. {{=}} should be used in it's place.

Added Alt Text

The alternative text can be overridden in situations where an image fails to load, or a user is making use of a screen reader to assist in reading the page.

{{ItemGallery/doc
 |File:image1.png|Description 1{{!}}alt{{=}}Alternative image text
 |File:image2.png|Description 2{{!}}alt{{=}}More alternative text
}}

Added Page Link

Images by default will link to their image page, such as [[:File:image1.png]], this behavior can be overridden by providing a link= to another page.

{{ItemGallery/doc
 |File:image1.png|Description 1{{!}}link{{=}}[[Some Other Page]]
 |File:image2.png|Description 2{{!}}link{{=}}[[Also Another Page]]
}}

Weiteres