Difference between revisions of "Template:QuickProfile"
From LAH Wiki
Line 1: | Line 1: | ||
− | {| style=" | + | {| style="border:1px solid transparent; background:transparent; width:{{#if: {{{width|}}}|{{{width}}}|100%}}" align={{{align}}} |
| | | | ||
− | {| style="text-align:left; border:1px solid dimgray | + | {| 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}}]] |
− | + | |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% | ||
− | *'''imageFile''' - the image file. The <nowiki>[[Image:]]</nowiki> code is not necesary, and the template will resize it | + | *'''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. | ||
*'''body''' - The text to accompany the image. | *'''body''' - The text to accompany the image. | ||
Line 22: | Line 26: | ||
{{QuickProfile | {{QuickProfile | ||
|align= | |align= | ||
+ | |valign= | ||
|width= | |width= | ||
+ | |imagewidth= | ||
|imageFile= | |imageFile= | ||
+ | |name= | ||
|body= | |body= | ||
}} | }} |