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>
 
<noinclude>{| align=right
 
|__ToC__
 
|}</noinclude>
 
<TABLE style="width:240px; border:1px solid dimgray" align=<includeonly>{{#if: {{{align|}}}|{{{align}}}|right}}</includeonly>><TR><TD>
 
  
<includeonly>{{#if:{{{test1|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Name'''</TD> <TD style="width:67%"> <includeonly>
+
*Image 1*
{{{test1}}} </includeonly> <noinclude>Example</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly>
+
  
<includeonly>{{#if:{{{test2|}}}| </includeonly><table style="width:100%; border:1px dotted dimgray; background:black"> <TR> <TD style="width:40%; text-align:center">'''Loli?'''</TD> <TD style="width:67%"> <includeonly>
+
-->
{{{test2}}} </includeonly> <noinclude>Yes/No</noinclude></TD> </TR> </TABLE> <includeonly>}}</includeonly></TD></TR></TABLE><noinclude>
+
|<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><!--
 +
 
 +
 
 +
*Image 2*
 +
 
 +
-->
 +
|<includeonly>{{#if:{{{image2|}}}|<!--
 +
 
 +
--> <table align=left text-align=center cellpadding=3 style="background:black; border:1px dotted gray"><tr><td>[[Image:{{{image2}}}|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|100px}}]]
 +
</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><!--
 +
 
 +
 
 +
*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>
 
==Usage==
 
==Usage==
This is a template for including a character profile in a standard way. The following fields may be filled in, and any may be omitted, with the exception of the header and imageFile.
+
This is a template for including a gallery of images within an article. It can include up to 5 images, with or without captions
  
{{TwoColumnList|width=100%
+
*'''width''' - the width of the gallery
|Col1=
+
*'''align''' - how the gallery aligns on the page.  if left blank, will default to center
* '''header''' - the template header, usually the character's name
+
*'''imagewidth''' - the width of each image.  if left blank, will default to 100px
* '''align''' - Where the template aligns itself on the page.  Right is standard, but it can also be aligned left or center. If left blank, it will default to right.
+
*'''heading''' - the heading for the  
* '''imageFile''' - the file name of the image.  The <nowiki>[[Image:]]</nowiki> code is unnecessary, and the template will resize the image to fit.
+
*'''image1''' - the first image
* '''caption''' - a caption for the image
+
*'''caption1''' - the caption for the first image
* '''name''' - the name of the character
+
*'''image2''' - the second image
* '''loli''' - is the character a loli? (yes, no, debatable) (leave blank if male)
+
*'''caption2''' - the caption for the second image
* '''shota''' - is the character a shota? (yes, no, debatable) (leave blank if female)
+
*'''image3''' - the third image
* '''height''' - the height of the character, in both standard and metric if possible.
+
*'''caption3''' - the caption for the third image
* '''weight''' - the weight of the character, in both standard and metric if possible.
+
*'''image4''' - the fourth image
* '''measurements''' - the character's bust, waist and hip measurements
+
*'''caption4''' - the caption for the fourth image
* '''eyes''' - the color of the character's eyes
+
*'''image5''' - the fourth image
* '''hair''' - the color of the chracters's hair
+
*'''caption5''' - the caption for the fourth image
* '''realHair''' - some girls do dye their hair, you know . . .
+
* '''age''' - age of the character
+
* '''birthdate''' - the date of the character's birth
+
|Col2=
+
* '''origin''' - the character's place of origin
+
* '''mother''' - the name of the character's mother
+
* '''father''' - the name of the character's fother
+
* '''custom1title''' - a costom field for in-universe character-specific info
+
* '''custom1data''' - the data for costum1title
+
* '''custom2title''' - a costom field for in-universe character-specific info
+
* '''custom2data''' - the data for costum1title
+
* '''custom3title''' - a costom field for in-universe character-specific info
+
* '''custom3data''' - the data for costum1title
+
* '''custom4title''' - a costom field for in-universe character-specific info
+
* '''custom4data''' - the data for costum1title
+
* '''series''' - the series in which the character appears
+
* '''actor''' - the actor who voiced the character
+
* '''relatedCharacters''' - characters related to the character (preferably limited to those who have an article on LAH Wiki
+
* '''creator''' - the name of the creator or creators of the character
+
* '''custom5title''' - a costom field for out-of-universe character-specific info
+
* '''custom5data''' - the data for costum1title
+
* '''custom6title''' - a costom field for out-of-universe character-specific info
+
* '''custom6data''' - the data for costum1title
+
}}
+
  
 
==Code==
 
==Code==
The code to use, omitting any fields not used, is:
+
Copy this code into the article and fill in the appropriate fields.
 
<pre>
 
<pre>
{{CharacterInfobox
+
{{Gallery
 +
|width=
 
|align=
 
|align=
|header=
+
|heading=
|imageFile=
+
|imagewidth=
|caption=
+
|image1=
|name=
+
|caption1=
|loli=
+
|image2=
|shota=
+
|caption2=
|height=
+
|image3=
|weight=
+
|caption3=
|measurements=
+
|image4=
|eyes=
+
|caption4=
|hair=
+
|image5=
|realhair=
+
|caption5=
|age=
+
}}</pre>
|birthdate=
+
 
|origin=
+
|father=
+
|mother=
+
|costom1title=
+
|costom1data=
+
|costom2title=
+
|costom2data=
+
|costom3title=
+
|costom3data=
+
|costom4title=
+
|costom4data=
+
|series=
+
|actor=
+
|relatedCharacters=
+
|creator=
+
|costom5title=
+
|costom5data=
+
|costom6title=
+
|costom6data=
+
}}
+
</pre>
+
 
[[Category:Formatting templates]]
 
[[Category:Formatting templates]]
[[Category:Infoboxes]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 14:33, 4 October 2007

Personal tools