Template:User: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
mNo edit summary
No edit summary
Line 1: Line 1:
<table border="0" cellspacing="0" cellpadding="0" style="float:right; clear:right; margin: 0 0 .5em 1em; width:250px; background:#ffffff; border-collapse:collapse; border:1px solid #999999; font-size:smaller; line-height:1.5;">
<table border="0" cellspacing="0" cellpadding="0" class="infobox">
<tr><td colspan="2"><div id="infoboxinternal">
<tr><td colspan="2"><div id="infoboxinternal">
<table border="0" cellspacing="0" cellpadding="4" style="float:right; margin:0 0 0 0; width:100%; background:#ffffff; border-collapse:collapse;">
<table border="0" cellspacing="0" cellpadding="4" class="internal">
<tr style="text-align:center;"><td colspan="2" style="padding:0; background:{{{c2|#D6F0F5}}};">{{{image|}}}</td></tr>
<tr style="text-align:center;"><td colspan="2" class="image" style="background:{{{c2|#D6F0F5}}};">{{{image|}}}</td></tr>
<tr style="text-align:center; color:#ffffff; background:{{{c1|#94C7D1}}}; font-size:larger;"><th colspan="2">{{{name}}}</th></tr>
<tr style="background:{{{c1|#94C7D1}}};" class="name"><th colspan="2">{{{name}}}</th></tr>
{{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#D6F0F5}}};">'''Biographical information'''</th></tr>}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Birth date</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
{{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="background:{{{c2|#D6F0F5}}};" class="head">'''Biographical information'''</th></tr>}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Birth date</td><td class="infoboxcell">
{{{birth|}}}
{{{birth|}}}
</td></tr>|1{{{birth|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Birthplace</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{birth|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Birthplace</td><td class="infoboxcell">
{{{birthplace|}}}
{{{birthplace|}}}
</td></tr>|1{{{birthplace|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Residence</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{birthplace|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Residence</td><td class="infoboxcell">
{{{residence|}}}
{{{residence|}}}
</td></tr>|1{{{residence|}}}=}}{{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#D6F0F5}}};">'''Physical description'''</th></tr>}}
</td></tr>|1{{{residence|}}}=}}{{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="background:{{{c2|#D6F0F5}}};" class="head">'''Physical description'''</th></tr>}}
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Gender</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Gender</td><td class="infoboxcell">
{{{gender|}}}
{{{gender|}}}
</td></tr>|1{{{gender|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Skin color</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{gender|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Skin color</td><td class="infoboxcell">
{{{skin|}}}
{{{skin|}}}
</td></tr>|1{{{skin|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Height</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{skin|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Height</td><td class="infoboxcell">
{{{height|}}}
{{{height|}}}
</td></tr>|1{{{height|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Weight</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{height|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Weight</td><td class="infoboxcell">
{{{weight|}}}
{{{weight|}}}
</td></tr>|1{{{weight|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Hair color</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{weight|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Hair color</td><td class="infoboxcell">
{{{hair|}}}
{{{hair|}}}
</td></tr>|1{{{hair|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Eye color</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{hair|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Eye color</td><td class="infoboxcell">
{{{eyes|}}}
{{{eyes|}}}
</td></tr>|1{{{eyes|}}}=}}{{t|1=|1{{{hideg|}}}=<tr><th colspan="2" style="text-align:left; font-weight:normal; background:{{{c2|#D6F0F5}}};">'''General information'''</th></tr>}}
</td></tr>|1{{{eyes|}}}=}}{{t|1=|1{{{hideg|}}}=<tr><th colspan="2" style="background:{{{c2|#D6F0F5}}};" class="head">'''General information'''</th></tr>}}
{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Occupation</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Occupation</td><td class="infoboxcell">
{{{occupation|}}}
{{{occupation|}}}
</td></tr>|1{{{occupation|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Hobbies</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{occupation|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Hobbies</td><td class="infoboxcell">
{{{hobbies|}}}
{{{hobbies|}}}
</td></tr>|1{{{hobbies|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom: 0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">Canon contributions</td><td class="infoboxcell" style="border-top: 1px solid #999999; border-bottom: 1px solid #999999;">
</td></tr>|1{{{hobbies|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#f0f0f0}}};"><td>Canon contributions</td><td class="infoboxcell">
{{{contribs|}}}
{{{contribs|}}}
</td></tr>|1{{{contribs|}}}=}}{{t|1=<tr style="spacing-top: 0px; spacing-bottom:0px; vertical-align: middle; background: {{{c3|#f0f0f0}}};"><td colspan="2" style="padding:0; border-top:1px solid #999999; border-bottom:1px solid #999999;">
</td></tr>|1{{{contribs|}}}=}}{{t|1=<tr style="background: {{{c3|#f0f0f0}}};" class="data userboxes"><td colspan="2">
{{{userboxes|}}}
{{{userboxes|}}}
</td></tr>|1{{{userboxes|}}}=}}</table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:center; width:49%;"></td><td style="text-align:left; width:51%;">[[Template:User infobox|[Source]]]</td></tr></table><noinclude>__NOEDITSECTION__ __NOTOC__
</td></tr>|1{{{userboxes|}}}=}}</table></div></td></tr><tr><td id="infoboxend" class="plainlinks" style="text-align:center; width:49%;"></td><td style="text-align:left; width:51%;">[[Template:User infobox|[Source]]]</td></tr></table><noinclude>__NOEDITSECTION__ __NOTOC__

Revision as of 06:10, 5 March 2009

{{{name}}}
Biographical information
Physical description
General information
[Source]

Field list

  • image
  • name
  • birth
  • birthplace
  • residence
  • gender
  • skin color
  • height
  • weight
  • hair
  • eyes
  • occupation
  • hobbies
  • contribs
  • userboxes (place optional userbox template here)
  • c1 (optional color modifier)
  • c2 (optional color modifier)
  • c3 (optional color modifier)

Display parameters

  • hideb
  • hidep
  • hideg

Details

This version of the user infobox template allows users to easily recolor the box and gives them the ability to display their userboxes using an optional userbox container template that was specially designed to nest neatly within it.

Usage

To use this template, paste the following code into the top of your userpage, filling all relevant fields:

{{user infobox
|image=
|name=
|birth= 
|birthplace=
|residence=
|gender=
|skin=
|height= 
|weight=
|hair= 
|eyes=
|occupation=
|hobbies=
|contribs=
|userboxes=
}}

Notes

  1. All the data fields are collapsible, so do not worry about leaving any of them empty.
  2. The three variables (hideb, hidep, and hideg) correspond to the three sub-headings (Biographical information, Physical description, and General information). If you wish to remove one of them, all you must do is append a brief statement to the template code. For instance:
{{user infobox
|hideb=hide
}}

Produces this: Template:User infobox

Example

Template:User infobox

Code

{{user infobox
|c1=#3366cc
|c2=#99ccff
|name=name
|birth=date
|gender=gender
|skin=skin color
|height=height
|weight=weight
|hair=color
|eyes=color
|hobbies=hobbies
|userboxes={{userbox container
|c1=#99ccff
|c2=#3366cc
|ub1={{user en}}
|ub2={{user fox}}
|ub3={{user sw-3}}
}}
}}