Difference between revisions of "Template:Lead/GalleryItemNoCaption"

From Species-ID
Jump to: navigation, search
m (http://offene-naturfuehrer.de/w/index.php?title=Vorlage:Lead/GalleryItemNoCaption&oldid=45302)
 
Line 1: Line 1:
<includeonly><td style="padding:0">{{
+
<includeonly>
#if:{{{label}}}|<div class="overlaywrapper" style="position:relative;">
+
<td style="padding:0">
}}[[{{Trim| {{{image|File:MissingImage.jpg}}} }} ||center|{{{width}}}x{{{height}}}px|<!--
+
{{#if: {{{label}}}
-->{{{caption}}}]]{{
+
  |<div class="overlaywrapper" style="position:relative;">
#if:{{{label}}}|<div class="overlaylabel">{{{label}}}</div></div>
+
}}<!--
}}</td>
+
  image file:
 +
-->[[<!--
 +
  -->{{#if:alwaystrue-to-trim| {{{image|File:MissingImage.jpg}}} }}|center|{{{width}}}x{{{height}}}px|<!--
 +
    caption
 +
-->{{{caption}}}<!--
 +
-->]]
 +
{{#if:{{{label}}}
 +
  |<div class="overlaylabel">{{{label}}}</div></div>
 +
}}
 +
</td>
 
</includeonly><noinclude>VERSION 3.4
 
</includeonly><noinclude>VERSION 3.4
 
A variant of [[Template:Lead/GalleryItem]], used for the image side bar (right of leads) that is always displayed. Here there is no caption below the image, and a fixed table cell (td) is created instead of a floated table. The cells of this template are always side-by-side.
 
A variant of [[Template:Lead/GalleryItem]], used for the image side bar (right of leads) that is always displayed. Here there is no caption below the image, and a fixed table cell (td) is created instead of a floated table. The cells of this template are always side-by-side.

Latest revision as of 15:51, 14 March 2016

VERSION 3.4 A variant of Template:Lead/GalleryItem, used for the image side bar (right of leads) that is always displayed. Here there is no caption below the image, and a fixed table cell (td) is created instead of a floated table. The cells of this template are always side-by-side.

Note: Called by the Lead and Decision/Decision horizontal templates, which guarantees that "caption", "label" parameters are always present (although possibly empty), and "width" and "height" are actually filled with values.