Difference between revisions of "Template:TEST"

From LAH Wiki
Jump to: navigation, search
 
Line 1: Line 1:
<noinclude><center>''This is a template for testing new templates and experimenting with template coding.  Please ignore it.''</center></noinclude>
+
{| style="#if:{{{width|}}}|width:{{{width}}}}; border:1px solid dimgray; text-align:center; valign:center" align={{#if:{{{align|}}}|{{{align}}}|center}}  
{| style="width:{{{width}}}; border:1px solid dimgray; text-align:center; valign:center" align={{#if:{{{align|}}}|{{{align}}}|center}}
+
|colspan=10|<includeonly>{{#if:{{{heading|}}}|{{{heading}}}}}</includeonly><noinclude>'''Heading'''</noinclude>
|colspan=5|<includeonly>{{#if:{{{heading|}}}|{{{heading}}}}}</includeonly><noinclude>'''Heading'''</noinclude>
+
 
|-
 
|-
 
|
 
|
<table style="background:transparent; border:0px solid transparent"><tr><includeonly>{{#if:{{{image1|}}}|<!--
+
{|cellpadding=0 cellspacing=0<!--
 +
 
  
 
*Image 1*
 
*Image 1*
  
--><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:{{{image1}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</td></tr>
+
-->
<tr><td>{{#if:{{{caption1|}}}|{{{caption1}}}}}</td></tr></table>}}</includeonly><!--
+
|<includeonly>{{#if:{{{image1|}}}|<!--
 +
 
 +
--><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image1}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
 +
</td></tr><tr><td>{{#if:{{{caption1|}}}|{{{caption1}}}}}</td></tr></table>}}</includeonly><!--
 +
 
 +
--><noinclude><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></noinclude><!--
  
--><noinclude><td><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></td></noinclude><!--
 
  
 
*Image 2*
 
*Image 2*
  
--><includeonly>{{#if:{{{image2|}}}|<!--
+
-->
 +
|<includeonly>{{#if:{{{image2|}}}|<!--
  
--><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:{{{image2}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</td></tr>
+
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image2}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
<tr><td>{{#if:{{{caption2|}}}|{{{caption2}}}}}</td></tr></table>}}</includeonly><!--
+
</td></tr><tr><td>{{#if:{{{caption2|}}}|{{{caption2}}}}}</td></tr></table>}}</includeonly><!--
 +
 
 +
--><noinclude><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></noinclude><!--
  
--><noinclude><td><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></td></noinclude><!--
 
  
 
*Image 3*
 
*Image 3*
  
--><includeonly>{{#if:{{{image3|}}}|<!--
+
-->
 +
|<includeonly>{{#if:{{{image3|}}}|<!--
  
--><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:{{{image3}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</td></tr>
+
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image3}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
<tr><td>{{#if:{{{caption3|}}}|{{{caption3}}}}}</td></tr></table>}}</includeonly><!--
+
</td></tr><tr><td>{{#if:{{{caption3|}}}|{{{caption3}}}}}</td></tr></table>}}</includeonly><!--
 +
 
 +
--><noinclude><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></noinclude><!--
  
--><noinclude><td><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></td></noinclude><!--
 
  
 
*Image 4*
 
*Image 4*
  
--><includeonly>{{#if:{{{image4|}}}|<!--
+
-->
 +
|<includeonly>{{#if:{{{image4|}}}|<!--
  
--><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:{{{image4}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</td></tr>
+
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image4}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
<tr><td>{{#if:{{{caption4|}}}|{{{caption4}}}}}</td></tr></table>}}</includeonly><!--
+
</td></tr><tr><td>{{#if:{{{caption4|}}}|{{{caption4}}}}}</td></tr></table>}}</includeonly><!--
 +
 
 +
--><noinclude><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></noinclude><!--
  
--><noinclude><td><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></td></noinclude><!--
 
  
 
*Image 5*
 
*Image 5*
  
--><includeonly>{{#if:{{{image5|}}}|<!--
+
-->
 +
|<includeonly>{{#if:{{{image5|}}}|<!--
  
--><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:{{{image5}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]</td></tr>
+
--> <table align=left text-align=center cellpadding=3  style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image5}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
<tr><td>{{#if:{{{caption5|}}}|{{{caption5}}}}}</td></tr></table>}}</includeonly><!--
+
</td></tr><tr><td>{{#if:{{{caption5|}}}|{{{caption5}}}}}</td></tr></table>}}</includeonly><!--
  
--><noinclude><td><table style="width:25%; border:1px dotted dimgray; background:black"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></td></noinclude><!--
+
--><noinclude><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:ExampleAvvy.png|100px]]</td></tr><tr><td>Caption</td></tr></table></noinclude>
 
+
--></tr></table>
+
 
|}
 
|}
 +
|}
 +
<noinclude>
 +
==Usage==
 +
This is a template for including a gallery of images within an article.  It can include up to 5 images, with or without captions
 +
 +
*'''width''' - the width of the gallery
 +
*'''align''' - how the gallery aligns on the page.  if left blank, will default to center
 +
*'''imagewidth''' - the width of each image.  if left blank, will default to 100px
 +
*'''heading''' - the heading for the
 +
*'''image1''' - the first image
 +
*'''caption1''' - the caption for the first image
 +
*'''image2''' - the second image
 +
*'''caption2''' - the caption for the second image
 +
*'''image3''' - the third image
 +
*'''caption3''' - the caption for the third image
 +
*'''image4''' - the fourth image
 +
*'''caption4''' - the caption for the fourth image
 +
*'''image5''' - the fourth image
 +
*'''caption5''' - the caption for the fourth image
 +
 +
==Code==
 +
Copy this code into the article and fill in the appropriate fields.
 +
<pre>
 +
{{Gallery
 +
|width=
 +
|align=
 +
|heading=
 +
|imagewidth=
 +
|image1=
 +
|caption1=
 +
|image2=
 +
|caption2=
 +
|image3=
 +
|caption3=
 +
|image4=
 +
|caption4=
 +
|image5=
 +
|caption5=
 +
}}</pre>
 +
 +
[[Category:Formatting templates]]
 +
</noinclude>

Latest revision as of 14:33, 4 October 2007

Personal tools