Vorlage:ImageSwitch

Aus Offene Naturführer
Wechseln zu: Navigation, Suche
[Bearbeiten] [Aktualisieren] Template-info.svg Dokumentation der Vorlage

Inhaltsverzeichnis

Usage

This template creates a gallery using image links to “click & go”. It is intended to use in main keys with clear intuitive images. It's parameters follow template: Lead.

{{ImageSwitch | caption lines=2
 | image 1        = File:Bufo_viridis_female_quadrat.jpg 
   |result text 1 = Frösche/Kröten/Unken
   |lead 1        = springend mit 4 Beinen 
   |result 1      = Froschlurche – Anura
 | image 2        = File:Amphibienlaich und Larven Schlüsseleinstieg.jpg 
   |result text 2 = Amphibien-<br />larven und -laich
   |lead 2        = Bestimmung von Kaulquappen und Froschlaich
   |result 2      = Bestimmungshilfe für Amphibienlaich und -larven (Philipp Meinecke)
 | image 3        = File:Caudata quadratic.png 
   |result text 3 = Salamander/Molche
   |lead 3        = an feuchten Orten oder im Wasser lebend
   |result 3      = Schwanzlurche – Caudata
 | image 4        = Datei:Reptilia.jpg 
   |result text 4 = Reptilien
   |lead 4        = Haut aus hornigen Schuppen oder Schilden
   |result 4      = Bestimmungsschlüssel für Reptilien in Deutschland
}}

gives…

springend mit 4 Beinen
Bestimmung von Kaulquappen und Froschlaich
an feuchten Orten oder im Wasser lebend
Haut aus hornigen Schuppen oder Schilden


The often used default parameters 1=, 2= are not allowed.

Ablage/Notiz Template for copying

{{ImageSwitch | caption lines=2
 | image 1        = File:
   |result text 1 = 
   |lead 1        = 
   |result 1      = 
}}

Parameter

  • title = optional title
  • image width = 150 → width of all images (default = 150)
  • caption lines = 1 → number of text lines (default =1)
  • image framestyle=... → frame style of the image
  • caption style=... → caption's style
  • style=... → the whole gallery

Specified parameters image …, result text …, lead … and result … must be used to set a linked image:

  • image 1 = … | result text 1 = … | result 1 = … | lead 1 = …
  • image 30= … | result text 30= … | result 30= … | lead 30= …

Technical notes

class="GalleryImageLink" is used to setup the format.

See also

The german cunterpart of this template is template: Bildweiche Flag icon de.png. Template: Gallery creates also image galleries but with image zoom when clicked.

Quelle: http://offene-naturfuehrer.de/web/Vorlage:ImageSwitch
Meine Werkzeuge
Namensräume
Varianten
Aktionen
Navigation
Portale
Mitarbeit
Werkzeuge
Schwesterprojekte