Template:Gallery: Difference between revisions

no edit summary
(add if)
No edit summary
Line 134: Line 134:
== Image Gallery ==
== Image Gallery ==


{| class="wikitable" style="width:100%; text-align:center;"
{| class="wikitable" style="width:100%; text-align:center; background-color:#f9f9f9;"
! colspan="4" | Image Gallery
! colspan="4" | Image Gallery
|-
|-
| {{#if: {{{GalleryImage1|}}} | [[File:{{{GalleryImage1}}}|thumb|220px|center|{{{GalleryTitle1|}}}]] }}
| {{#if: {{{GalleryImage1|}}} |  
| {{#if: {{{GalleryImage2|}}} | [[File:{{{GalleryImage2}}}|thumb|220px|center|{{{GalleryTitle2|}}}]] }}
    [[File:{{{GalleryImage1}}}|thumb|220px|center|{{{GalleryTitle1|}}}]] |
| {{#if: {{{GalleryImage3|}}} | [[File:{{{GalleryImage3}}}|thumb|220px|center|{{{GalleryTitle3|}}}]] }}
    <div style="padding:40px; color:#666; font-style:italic;">No image yet — use the form to add the first photo</div>
| {{#if: {{{GalleryImage4|}}} | [[File:{{{GalleryImage4}}}|thumb|220px|center|{{{GalleryTitle4|}}}]] }}
}}
| {{#if: {{{GalleryImage2|}}} |  
    [[File:{{{GalleryImage2}}}|thumb|220px|center|{{{GalleryTitle2|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
| {{#if: {{{GalleryImage3|}}} |  
    [[File:{{{GalleryImage3}}}|thumb|220px|center|{{{GalleryTitle3|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
| {{#if: {{{GalleryImage4|}}} |  
    [[File:{{{GalleryImage4}}}|thumb|220px|center|{{{GalleryTitle4|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
|-
|-
| {{#if: {{{GalleryImage5|}}} | [[File:{{{GalleryImage5}}}|thumb|220px|center|{{{GalleryTitle5|}}}]] }}
| {{#if: {{{GalleryImage5|}}} |  
| {{#if: {{{GalleryImage6|}}} | [[File:{{{GalleryImage6}}}|thumb|220px|center|{{{GalleryTitle6|}}}]] }}
    [[File:{{{GalleryImage5}}}|thumb|220px|center|{{{GalleryTitle5|}}}]] |
| {{#if: {{{GalleryImage7|}}} | [[File:{{{GalleryImage7}}}|thumb|220px|center|{{{GalleryTitle7|}}}]] }}
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
| {{#if: {{{GalleryImage8|}}} | [[File:{{{GalleryImage8}}}|thumb|220px|center|{{{GalleryTitle8|}}}]] }}
}}
| {{#if: {{{GalleryImage6|}}} |  
    [[File:{{{GalleryImage6}}}|thumb|220px|center|{{{GalleryTitle6|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
| {{#if: {{{GalleryImage7|}}} |  
    [[File:{{{GalleryImage7}}}|thumb|220px|center|{{{GalleryTitle7|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
| {{#if: {{{GalleryImage8|}}} |  
    [[File:{{{GalleryImage8}}}|thumb|220px|center|{{{GalleryImage8|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
|-
|-
| {{#if: {{{GalleryImage9|}}} | [[File:{{{GalleryImage9}}}|thumb|220px|center|{{{GalleryTitle9|}}}]] }}
| {{#if: {{{GalleryImage9|}}} |  
| {{#if: {{{GalleryImage10|}}} | [[File:{{{GalleryImage10}}}|thumb|220px|center|{{{GalleryTitle10|}}}]] }}
    [[File:{{{GalleryImage9}}}|thumb|220px|center|{{{GalleryTitle9|}}}]] |
|}
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
 
}}
[[Category:Galleries]]
| {{#if: {{{GalleryImage10|}}} |  
    [[File:{{{GalleryImage10}}}|thumb|220px|center|{{{GalleryTitle10|}}}]] |
    <div style="padding:40px; color:#666; font-style:italic;">No additional image — use the form to add more photos</div>
}}
|}[[Category:Galleries]]
</includeonly>
</includeonly>