Vorlage:Lead/GalleryItem: Unterschied zwischen den Versionen
Aus Offene Naturführer
Zeile 2: | Zeile 2: | ||
<tr><td style="height:{{#expr:{{{height}}}+4}}px; border:none; border-width:0px; padding:0px;"><!-- | <tr><td style="height:{{#expr:{{{height}}}+4}}px; border:none; border-width:0px; padding:0px;"><!-- | ||
// TOPCELLCONTENT:-->[[{{Trim| {{{image|File:MissingImage.jpg}}} }} |link={{ | // TOPCELLCONTENT:-->[[{{Trim| {{{image|File:MissingImage.jpg}}} }} |link={{ | ||
− | #if:{{{next | + | #if:{{{next}}}|<!-- |
then-->{{FULLPAGENAME}}#L{{{keyID}}}{{Trim| {{{next}}} }}|<!-- | then-->{{FULLPAGENAME}}#L{{{keyID}}}{{Trim| {{{next}}} }}|<!-- | ||
else-->{{{resultpage}}}<!-- | else-->{{{resultpage}}}<!-- | ||
Zeile 8: | Zeile 8: | ||
#ifeq: {{{resize}}}| 1|<!-- | #ifeq: {{{resize}}}| 1|<!-- | ||
then resize-->{{{width}}}x{{{height}}}px{{!}}<!-- | then resize-->{{{width}}}x{{{height}}}px{{!}}<!-- | ||
− | -->}}{{Trim| {{{caption | + | -->}}{{Trim| {{{caption}}} }} (click to follow the corresponding lead)]]</td></tr><!-- |
// CAPTION ROW and DIV:--><tr style="vertical-align:top;"><td style="display:block; height:{{#expr:0.1+1.15*{{{lines|2}}}}}em; padding:0px;"><div style="height:{{#expr:0.1+1.15*{{{lines|2}}}}}em; width:{{#expr:{{{width}}}+7}}px; line-height:1.15em; text-align:center; padding 2px 3px 1px 3px; overflow-y:auto; margin:0px; border:none; border-width:0px;"><!-- | // CAPTION ROW and DIV:--><tr style="vertical-align:top;"><td style="display:block; height:{{#expr:0.1+1.15*{{{lines|2}}}}}em; padding:0px;"><div style="height:{{#expr:0.1+1.15*{{{lines|2}}}}}em; width:{{#expr:{{{width}}}+7}}px; line-height:1.15em; text-align:center; padding 2px 3px 1px 3px; overflow-y:auto; margin:0px; border:none; border-width:0px;"><!-- | ||
// CAPTIONCELL:-->[[File:Magnify-clip-tiny.png|right|link={{{image|File:MissingImage.jpg}}} |Creator, Copyright, etc. and larger version (if available)]] {{ | // CAPTIONCELL:-->[[File:Magnify-clip-tiny.png|right|link={{{image|File:MissingImage.jpg}}} |Creator, Copyright, etc. and larger version (if available)]] {{ | ||
#if:{{{label}}}|'''{{{label}}}:<nowiki> </nowiki>''' | #if:{{{label}}}|'''{{{label}}}:<nowiki> </nowiki>''' | ||
− | }}{{Trim| {{{caption | + | }}{{Trim| {{{caption}}} }}</div> |
</td></tr></table></includeonly><noinclude> | </td></tr></table></includeonly><noinclude> | ||
Note: Called by the Lead template, which guarantees that "resize" (0 or 1), "width" and "height" parameters, and one of "next" and "resultpage" are always present. | Note: Called by the Lead template, which guarantees that "resize" (0 or 1), "width" and "height" parameters, and one of "next" and "resultpage" are always present. | ||
[[Category:Single-access key templates]]</noinclude> | [[Category:Single-access key templates]]</noinclude> |
Version vom 6. August 2009, 10:46 Uhr
Note: Called by the Lead template, which guarantees that "resize" (0 or 1), "width" and "height" parameters, and one of "next" and "resultpage" are always present.