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>
+
{| style="#if:{{{width|}}}|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>
 +
|-
 +
|
 +
{|cellpadding=0 cellspacing=0<!--
  
</noinclude>
 
  
{| style="text-align:center; width:200px; background:#333333; color:white; border:1px solid orange" align="{{{align}}}"
+
*Image 1*
| style="color:orange" | '''{{{name}}}'''
+
|-
+
| style="font-size:80%; color:#dddddd" |{{#if:{{{title|}}}|{{{title}}}}}
+
|-
+
| {{#if:{{{avatar|}}}|[[Image:{{{avatar}}}|120]]}}
+
|-
+
| style="font-size:80%; color:orange"| {{#if: {{{extraFilesMember|}}}|[[Image:ExtraFilesGray.gif]] Extra Files Member|<BR>}}<!--
+
  
 
-->
 
-->
| {{#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%">
+
|<includeonly>{{#if:{{{image1|}}}|<!--
{{{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><!--
<noinclude>
+
{{LAHMemberBox
+
|name=UserName
+
|title=Example Angel
+
|avatar=Example_Avvy.png
+
|extraFilesMember=yes
+
|date=Example
+
|age=Example
+
|sex=Example
+
|location=Example
+
|interests=*Example
+
*Example
+
|occupation=Example
+
|custom1title=Custom 1
+
|custom1data=Example
+
|custom2title=Custom 2
+
|custom2data=Example
+
|custom3title=Custom 3
+
|custom3data=Example
+
}}
+
  
This is a user box for LAH members.  It is designed to resemble the member's sidebar when posting in [http://littleangelshentai.net/forum/index.php the forum]. It uses four fields.
 
  
* '''align''' - optional.  This is where the box will align itself on the page, such as right, left or middle.
+
*Image 4*
* '''name''' - Your LAH screen name
+
* '''title''' - Your LAH title
+
* '''avatar''' - The file name of you avatar, which you must [[Special:Upload|upload]] to the LAH Wiki server. The <nowiki>[[Image:]]</nowiki> tag is not necessary, and the template will resize the image to 120px wide.  This template isn't designed for avatars of dimensions other than 120x120.  If you have an avatar that isn't this size, you may request a custom Member Box on the talk page.
+
* '''extraFilesMember''' - if you are an Extra Files member, enter anything in this field and your star will appear. If you are not a member, please leave it blank.
+
  
The code to use, replacing the UserValues with your info, is :
+
-->
 +
|<includeonly>{{#if:{{{image4|}}}|<!--
  
<pre>{{LAHMembersBox
+
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image4}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
|align=UserValue
+
</td></tr><tr><td>{{#if:{{{caption4|}}}|{{{caption4}}}}}</td></tr></table>}}</includeonly><!--
|name=Uservalue
+
 
|title=UserValue
+
--><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><!--
|avatar=UserValue
+
 
|extraFilesMember=
+
 
 +
*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>
 +
==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>
 
}}</pre>
 +
 +
[[Category:Formatting templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 14:33, 4 October 2007

Personal tools