Difference between revisions of "Template:Lead/Inner"
From Species-ID
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: | + | #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: | + | #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 | + | // image a - e width, primary images width and image a - e height, primary images height (both for all images) |
− | + | ||
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><!-- | ||
− | + | -->{{#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}}}}}}}<!-- |
− | + | -->{{#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{{image c width}}}|height={{{image c height}}}}}}}<!-- | |
− | + | -->{{#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{{image d width}}}|height={{{image d height}}}}}}}<!-- | |
− | + | -->{{#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> |
− | + | ||
− | + | ||
− | + | ||
− | -->{{#if: {{{image c}}}|{{Lead/GalleryItemNoCaption|image={{{image c}}}|caption={{{caption c}}}|label={{{label c}}}|width={{{image c width}}}|height={{{image c height}}}}} }}<!-- | + | |
− | + | ||
− | + | ||
− | + | ||
− | -->{{#if: {{{image d}}}|{{Lead/GalleryItemNoCaption|image={{{image d}}}|caption={{{caption d}}}|label={{{label d}}}|width={{{image d width}}}|height={{{image d height}}}}} }}<!-- | + | |
− | + | ||
− | + | ||
− | + | ||
− | -->{{#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.