Difference between revisions of "Template:QuickProfile"

From LAH Wiki
Jump to: navigation, search
 
Line 1: Line 1:
 
{| style="border:1px solid transparent; background:transparent; width:{{#if: {{{width|}}}|{{{width}}}|100%}}" align={{{align}}}
 
{| style="border:1px solid transparent; background:transparent; width:{{#if: {{{width|}}}|{{{width}}}|100%}}" align={{{align}}}
 
|
 
|
{| style="width:100%; text-align:left; border:1px solid dimgray; v-align:top"
+
{| style="width:100%; text-align:left; border:1px solid dimgray"
 
|style="width:1px"|[[Image:<includeonly>{{{imageFile}}}</includeonly><noinclude>ExampleAvvy.png</noinclude>|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|120px}}]]
 
|style="width:1px"|[[Image:<includeonly>{{{imageFile}}}</includeonly><noinclude>ExampleAvvy.png</noinclude>|{{#if:{{{imagewidth|}}}|{{{imagewidth}}}|120px}}]]
|<includeonly>{{{body}}}</includeonly><noinclude>Example</noinclude>
+
|valign="{{#if:{{{valign|}}}|{{{valign}}}|top}}"|{{#if:{{{name|}}}|<h5>{{{name}}}</h5>}}<noinclude><h5>Name</h5></noinclude>
 +
<includeonly>{{{body}}}</includeonly><noinclude>Body</noinclude>
 
|}
 
|}
 
|}<noinclude>
 
|}<noinclude>
Line 12: Line 13:
 
The template uses the following parameters.  
 
The template uses the following parameters.  
 
*'''align''' - how the template aligns to the page.
 
*'''align''' - how the template aligns to the page.
 +
*'''valign''' - how the text will align vertically to the box. defaults to top.
 
*'''width''' - the width of the template; if left blank, will default to 100%
 
*'''width''' - the width of the template; if left blank, will default to 100%
 
*'''imagewidth''' - the width of the image.  Smaller is probably better.  If left blank, will default to 120px.
 
*'''imagewidth''' - the width of the image.  Smaller is probably better.  If left blank, will default to 120px.
 +
*'''name''' - the character's or person's name, or a header appropriate to the subject. Will also add this to the pages table of contents, so leave this blank if you don't want it t be listed there.
 
*'''imageFile''' - the image file. The <nowiki>[[Image:]]</nowiki> code is not necesary, and the template will resize it.
 
*'''imageFile''' - the image file. The <nowiki>[[Image:]]</nowiki> code is not necesary, and the template will resize it.
 
*'''body''' - The text to accompany the image.
 
*'''body''' - The text to accompany the image.
Line 23: Line 26:
 
{{QuickProfile
 
{{QuickProfile
 
|align=
 
|align=
 +
|valign=
 
|width=
 
|width=
 
|imagewidth=
 
|imagewidth=
 
|imageFile=
 
|imageFile=
 +
|name=
 
|body=
 
|body=
 
}}
 
}}

Latest revision as of 16:44, 21 July 2007

Personal tools