Get our free book (in Spanish or English) on rainwater now - To Catch the Rain.

Difference between revisions of "Template:Gallery/aux"

From Appropedia
Jump to navigation Jump to search
(parameterized padding @ 5px)
(test for lines=0)
Line 3: Line 3:
 
<tr><td style="height:{{#expr:{{{height|180}}}+{{{padding|5}}}*2}}px; border:1px solid #CCCCCC; padding:0px;">[[{{{1|File:Default.png}}}|center|border|{{{width|180}}}x{{{height|180}}}px|alt={{{alt}}}|{{{2}}}]]</td></tr>
 
<tr><td style="height:{{#expr:{{{height|180}}}+{{{padding|5}}}*2}}px; border:1px solid #CCCCCC; padding:0px;">[[{{{1|File:Default.png}}}|center|border|{{{width|180}}}x{{{height|180}}}px|alt={{{alt}}}|{{{2}}}]]</td></tr>
  
<tr style="border-right:1px solid #F0F0F0; border-bottom:1px solid #f0f0f0; border-left:1px solid #f0f0f0; vertical-align:top;">
+
{{#if: {{{lines|}}}
 +
|{{#ifeq: {{{lines|0}}} | 0
 +
  |<tr><td></td></tr> |<tr style="border-right:1px solid #F0F0F0; border-bottom:1px solid #f0f0f0; border-left:1px solid #f0f0f0; vertical-align:top;">
 
<td style="display:block; font-size:1em; height:{{#expr:0.2+1.5*{{{lines|2}}}}}em; padding:0px;">
 
<td style="display:block; font-size:1em; height:{{#expr:0.2+1.5*{{{lines|2}}}}}em; padding:0px;">
 
<div class="gallerytext" style="height:{{#expr:0.1+1.5*{{{lines|2}}}}}em; width:{{#expr:{{{width|180}}}-10+{{{padding|5}}}*2}}px; line-height:1.3em; padding:2px 5px 1px 5px; overflow-y:auto; margin:0px; border:none; border-width:0px;">{{{2|}}}&nbsp;</div></td></tr>
 
<div class="gallerytext" style="height:{{#expr:0.1+1.5*{{{lines|2}}}}}em; width:{{#expr:{{{width|180}}}-10+{{{padding|5}}}*2}}px; line-height:1.3em; padding:2px 5px 1px 5px; overflow-y:auto; margin:0px; border:none; border-width:0px;">{{{2|}}}&nbsp;</div></td></tr>
 +
  }}
 +
|<tr style="border-right:1px solid #F0F0F0; border-bottom:1px solid #f0f0f0; border-left:1px solid #f0f0f0; vertical-align:top;">
 +
<td style="display:block; font-size:1em; height:{{#expr:0.2+1.5*{{{lines|2}}}}}em; padding:0px;">
 +
<div class="gallerytext" style="height:{{#expr:0.1+1.5*{{{lines|2}}}}}em; width:{{#expr:{{{width|180}}}-10+{{{padding|5}}}*2}}px; line-height:1.3em; padding:2px 5px 1px 5px; overflow-y:auto; margin:0px; border:none; border-width:0px;">{{{2|}}}&nbsp;</div></td></tr>
 +
}}
  
 
</table><noinclude>
 
</table><noinclude>

Revision as of 16:15, 11 September 2011

{{{alt}}}
 


Wikipedia
This page or section includes content from Wikipedia. The original article was at Template:Gallery/aux. The list of authors can be seen in the history for that page. As with Appropedia, the text of Wikipedia is available under the CC-BY-SA.