Difference between revisions of "Template:Lead/Inner"

From Species-ID
Jump to: navigation, search
Line 108: Line 108:
 
// At least one larger, non-hide-able image below (image j/k):
 
// At least one larger, non-hide-able image below (image j/k):
 
   THEN-->|<table class="nested"><tr  style="vertical-align:top;">{{
 
   THEN-->|<table class="nested"><tr  style="vertical-align:top;">{{
#if:{{{image j}}}|<td style="padding:1em 1em 1em 0">[[{{Trim| {{{image j|File:MissingImage.jpg}}} }} |center|{{{image j width}}}x{{{image j height}}}px]]<br />{{#if:{{{label j}}}|'''{{{label j}}}: '''}}{{{caption j}}}</td>}}{{
+
#if:{{{image j}}}|<td style="padding:1em 1em 1em 0">[[{{Trim| {{{image j|File:ImageNA.svg}}} }} |center|{{{image j width}}}x{{{image j height}}}px]]<br />{{#if:{{{label j}}}|'''{{{label j}}}: '''}}{{{caption j}}}</td>}}{{
#if:{{{image k}}}|<td style="padding:1em 1em 0 1em">[[{{Trim| {{{image k|File:MissingImage.jpg}}} }} |center|{{{image k width}}}x{{{image k height}}}px]]<br />{{#if:{{{label k}}}|'''{{{label k}}}: '''}}{{{caption k}}}</td>}}
+
#if:{{{image k}}}|<td style="padding:1em 1em 0 1em">[[{{Trim| {{{image k|File:ImageNA.svg}}} }} |center|{{{image k width}}}x{{{image k height}}}px]]<br />{{#if:{{{label k}}}|'''{{{label k}}}: '''}}{{{caption k}}}</td>}}
 
</tr></table><!-- end always-on image below:
 
</tr></table><!-- end always-on image below:
 
-->}}</td><td>{{
 
-->}}</td><td>{{
Line 117: Line 117:
 
// up to 5 images, non-wrapping, Lead/GalleryItemNoCaption creates td!
 
// up to 5 images, non-wrapping, Lead/GalleryItemNoCaption creates td!
 
// image a - e,  caption a - e
 
// image a - e,  caption a - e
// image a - e width, primary images width (for all)
+
// image a - e width, primary images width and image a - e height, primary images height (both for all images)
// image a - e height, primary images height (for all)
+
 
THEN-->|<table style="border:none; margin-top:0.1em;margin-left:1em;"><tr><!--
 
THEN-->|<table style="border:none; margin-top:0.1em;margin-left:1em;"><tr><!--
image a
+
-->{{#if: {{{image a}}}|{{Lead/GalleryItemNoCaption|image={{{image a}}}|caption={{{caption a}}}|label={{{label a}}}|width={{{image a width}}}|height={{{image a height}}}}}}}<!--
-->{{#if: {{{image a}}}|{{Lead/GalleryItemNoCaption|image={{{image a}}}|caption={{{caption a}}}|label={{{label a}}}|width={{{image a width}}}|height={{{image a height}}}}} }}<!--
+
-->{{#if: {{{image b}}}|{{Lead/GalleryItemNoCaption|image={{{image b}}}|caption={{{caption b}}}|label={{{label b}}}|width={{{image b width}}}|height={{{image b height}}}}}}}<!--
  image a: add an optional break
+
-->{{#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{{image c width}}}|height={{{image c height}}}}}}}<!--
-->{{#ifeq: {{{image columns|}}} | n×1 | </tr><!-- n×1 --><tr>}}<!--
+
-->{{#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{{image d width}}}|height={{{image d height}}}}}}}<!--
image b
+
-->{{#if: {{{image e}}}|{{Lead/GalleryItemNoCaption|image={{{image e}}}|caption={{{caption e}}}|label={{{label e}}}|width={{{image e width}}}|height={{{image e height}}}}}}}<!--
-->{{#if: {{{image b}}}|{{Lead/GalleryItemNoCaption|image={{{image b}}}|caption={{{caption b}}}|label={{{label b}}}|width={{{image b width}}}|height={{{image b height}}}}} }}<!--
+
--></tr></table>
  image b: add an optional break
+
-->{{#switch: {{{image columns|}}} | n×1 = </tr><!-- n×1 --><tr> | n×2 = </tr><!-- n×2 --><tr> | test = test funktioniert }}<!--
+
image c
+
-->{{#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{{image c width}}}|height={{{image c height}}}}} }}<!--
+
  image c: add an optional break
+
-->{{#switch: {{{image columns|}}} | n×1 = </tr><!-- n×1 --><tr> | n×3 = </tr><!-- n×3 --><tr> }}<!--
+
image d
+
-->{{#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{{image d width}}}|height={{{image d height}}}}} }}<!--
+
  image d: add an optional break
+
-->{{#switch: {{{image columns|}}} | n×1 = </tr><!-- n×1 --><tr> | n×2 = </tr><!-- n×2 --><tr>  }}<!--
+
image e
+
-->{{#if: {{{image e}}}|{{Lead/GalleryItemNoCaption|image={{{image e}}}|caption={{{caption e}}}|label={{{label e}}}|width={{{image e width}}}|height={{{image e height}}}}} }}
+
</tr></table>
+
 
}}</td></tr></includeonly>
 
}}</td></tr></includeonly>

Revision as of 22:55, 1 June 2010

Version 3.6. NEW: length estimate based on resulttext instead of resultlink (for empty result!!!)

Previous changes:
a) nested works now on parents with backlinks and alternatives (1 and 1*, 1 and 1'). 1 and 1- NEEDS TESTING!
b) result text+ empty result supported (non-linking result).
d) nowrap on result/qualifier reworked!
d) result=http:... now works.
e) Nested subkey ok. Resultqualifier no longer in ()

See Key Start for the main documentation.