Difference between revisions of "Template:TEST"

From LAH Wiki
Jump to: navigation, search
 
Line 1: Line 1:
{| style="text-align:center; width:200px; background:#333333; color:white; border:1px solid orange" align="{{{align}}}"
+
{| style="#if:{{{width|}}}|width:{{{width}}}}; border:1px solid dimgray; text-align:center; valign:center" align={{#if:{{{align|}}}|{{{align}}}|center}}
| style="color:orange" | '''{{{name}}}'''
+
|colspan=10|<includeonly>{{#if:{{{heading|}}}|{{{heading}}}}}</includeonly><noinclude>'''Heading'''</noinclude>
|-
+
| style="font-size:80%; color:#dddddd" |{{#if:{{{title|}}}|{{{title}}}}}
+
 
|-
 
|-
| {{#if:{{{avatar|}}}|[[Image:{{{avatar}}}|120]]}}
+
|
|-
+
{|cellpadding=0 cellspacing=0<!--
| style="font-size:80%; color:orange"| {{#if: {{{extraFilesMember|}}}|[[Image:ExtraFilesGray.gif]] Extra Files Member|<BR>}}<!--
+
 
 +
 
 +
*Image 1*
  
 
-->
 
-->
|-
+
|<includeonly>{{#if:{{{image1|}}}|<!--
| {{#if: {{{date|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">Joined LAH</td><td style="width:60%">
+
{{{date}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
  
-->{{#if: {{{age|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width40%">Age</td><td style="width:60%">
+
--><table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image1}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
{{{age}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
</td></tr><tr><td>{{#if:{{{caption1|}}}|{{{caption1}}}}}</td></tr></table>}}</includeonly><!--
  
-->{{#if: {{{sex|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width40%">Sex</td><td style="width:60%">
+
--><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><!--
{{{sex}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
  
-->{{#if: {{{location|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">Location</td><td style="width:60%">
 
{{{location}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
 
  
-->{{#if: {{{interests|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">Interests</td><td style="width:60%">
+
*Image 2*
{{{interests}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
  
-->{{#if: {{{sex|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">Sex</td><td style="width:60%">
+
-->
{{{sex}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
|<includeonly>{{#if:{{{image2|}}}|<!--
  
-->{{#if: {{{custom1title|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">{{{custom1title}}}</td><td style="width:60%">
+
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image2}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
{{{custom1data}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
</td></tr><tr><td>{{#if:{{{caption2|}}}|{{{caption2}}}}}</td></tr></table>}}</includeonly><!--
  
-->{{#if: {{{custom2title|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">{{{custom2title}}}</td><td style="width:60%">
+
--><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><!--
{{{custom2data}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
  
-->{{#if: {{{custom3title|}}}|<table style="background:black; width:100%"><tr style="border:1px solid dimgray" cellpadding=2><td style="width:40%">{{{custom3title}}}</td><td style="width:60%">
+
 
{{{custom3data}}}</td></tr></table><table style="height:2px; background=transparent><TR><TD></TD></TR></TABLE>}}<!--
+
*Image 3*
  
 
-->
 
-->
 +
|<includeonly>{{#if:{{{image3|}}}|<!--
 +
 +
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image3}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
 +
</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><!--
 +
 +
 +
*Image 4*
 +
 +
-->
 +
|<includeonly>{{#if:{{{image4|}}}|<!--
 +
 +
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image4}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
 +
</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><!--
 +
 +
 +
*Image 5*
 +
 +
-->
 +
|<includeonly>{{#if:{{{image5|}}}|<!--
 +
 +
--> <table align=left text-align=center cellpadding=3  style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image5}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
 +
</td></tr><tr><td>{{#if:{{{caption5|}}}|{{{caption5}}}}}</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>
 
<noinclude>
{{TEST
+
==Usage==
|name=UserName
+
This is a template for including a gallery of images within an article.  It can include up to 5 images, with or without captions
|title=Example Angel
+
 
|avatar=ExampleAvvy.png
+
*'''width''' - the width of the gallery
|extraFilesMember=yes
+
*'''align''' - how the gallery aligns on the page.  if left blank, will default to center
|date=Example
+
*'''imagewidth''' - the width of each image.  if left blank, will default to 100px
|age=Example
+
*'''heading''' - the heading for the
|sex=Example
+
*'''image1''' - the first image
|location=Example
+
*'''caption1''' - the caption for the first image
|interests=*Example
+
*'''image2''' - the second image
*Example
+
*'''caption2''' - the caption for the second image
|occupation=Example
+
*'''image3''' - the third image
|custom1title=Custom 1
+
*'''caption3''' - the caption for the third image
|custom1data=Example
+
*'''image4''' - the fourth image
|custom2title=Custom 2
+
*'''caption4''' - the caption for the fourth image
|custom2data=Example
+
*'''image5''' - the fourth image
|custom3title=Custom 3
+
*'''caption5''' - the caption for the fourth image
|custom3data=Example
+
 
}}
+
==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>
 
</noinclude>

Latest revision as of 14:33, 4 October 2007

Personal tools