Template:User: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
No edit summary
No edit summary
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div class="infobox">
{| class="infoboxtemp" width="250" align="right" cellpadding="3" cellspacing="0"
<div id="infoboxinternal">
|-
<table border="0" cellspacing="0" cellpadding="4" class="internal">
{{#if: {{{image|}}}|
<tr style="text-align:center;"><td colspan="2" class="image" style="background:{{{c2|#111}}};">{{{image|}}}</td></tr>
{{!}} class="infoboximage" colspan="2" {{!}} {{{image}}}}}
<tr style="background:{{{c1|#2f6a76}}};" class="name"><th colspan="2">{{{name}}}</th></tr>
|-
{{t|1=|1{{{hideb|}}}=<tr><th colspan="2" style="background:{{{c2|#111}}};" class="head">'''Biographical information'''</th></tr>}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Birth date</td><td class="infoboxcell">
| colspan="2" class="name user" | '''{{{name}}}'''
{{{birth|}}}
|-
</td></tr>|1{{{birth|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Birthplace</td><td class="infoboxcell">
| colspan="2" class="header user" | '''Biographical Information'''
{{{birthplace|}}}
|-
</td></tr>|1{{{birthplace|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Residence</td><td class="infoboxcell">
{{#if: {{{alias|}}}|
{{{residence|}}}
{{!}} class="infoboxinfoheader" {{!}} Alias:
</td></tr>|1{{{residence|}}}=}}{{t|1=|1{{{hidep|}}}=<tr><th colspan="2" style="background:{{{c2|#111}}};" class="head">'''Physical description'''</th></tr>}}
{{!}} class="infoboxinfodata" {{!}}
{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Gender</td><td class="infoboxcell">
{{{alias}}}}}
{{{gender|}}}
|-
</td></tr>|1{{{gender|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Skin color</td><td class="infoboxcell">
{{#if: {{{birth|}}}|
{{{skin|}}}
{{!}} class="infoboxinfoheader" {{!}} Birth date:
</td></tr>|1{{{skin|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Height</td><td class="infoboxcell">
{{!}} class="infoboxinfodata" {{!}}
{{{height|}}}
{{{birth}}}}}
</td></tr>|1{{{height|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Weight</td><td class="infoboxcell">
|-
{{{weight|}}}
{{#if: {{{age|}}}|
</td></tr>|1{{{weight|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Hair color</td><td class="infoboxcell">
{{!}} class="infoboxinfoheader" {{!}} Age:
{{{hair|}}}
{{!}} class="infoboxinfodata" {{!}}
</td></tr>|1{{{hair|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Eye color</td><td class="infoboxcell">
{{{age}}}}}
{{{eyes|}}}
|-
</td></tr>|1{{{eyes|}}}=}}{{t|1=|1{{{hideg|}}}=<tr><th colspan="2" style="background:{{{c2|#111}}};" class="head">'''General information'''</th></tr>}}
{{#if: {{{birthplace|}}}|
{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Occupation</td><td class="infoboxcell">
{{!}} class="infoboxinfoheader" {{!}} Birthplace:
{{{occupation|}}}
{{!}} class="infoboxinfodata" {{!}}
</td></tr>|1{{{occupation|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Hobbies</td><td class="infoboxcell">
{{{birthplace}}}}}
{{{hobbies|}}}
|-
</td></tr>|1{{{hobbies|}}}=}}{{t|1=<tr class="data" style="background: {{{c3|#222}}};"><td>Canon contributions</td><td class="infoboxcell">
{{#if: {{{residence|}}}|
{{{contribs|}}}
{{!}} class="infoboxinfoheader" {{!}} Residence:
</td></tr>|1{{{contribs|}}}=}}{{t|1=<tr style="background: {{{c3|#222}}};" class="data userboxes"><td colspan="2">
{{!}} class="infoboxinfodata" {{!}}
{{{userboxes|}}}
{{{residence}}}}}
</td></tr>|1{{{userboxes|}}}=}}</table></div><div id="infoboxend" class="plainlinks" style="text-align:center; width:49%;">[[Template:User infobox|[Source]]]</div></div><noinclude>__NOEDITSECTION__ __NOTOC__
|-
{{#if: {{{status|}}}|
{{!}} class="infoboxinfoheader" {{!}} Marital Status:
{{!}} class="infoboxinfodata" {{!}}
{{{status}}}}}
|-
{{#if: {{{children|}}}|
{{!}} class="infoboxinfoheader" {{!}} Children:
{{!}} class="infoboxinfodata" {{!}}
{{{children}}}}}
|-
| colspan="2" class="header user" | '''Physical Description'''
|-
{{#if: {{{gender|}}}|
{{!}} class="infoboxinfoheader" {{!}} Gender:
{{!}} class="infoboxinfodata" {{!}}
{{{gender}}}}}
|-
{{#if: {{{skin|}}}|
{{!}} class="infoboxinfoheader" {{!}} Skin color:
{{!}} class="infoboxinfodata" {{!}}
{{{skin}}}}}
|-
{{#if: {{{height|}}}|
{{!}} class="infoboxinfoheader" {{!}} Height:
{{!}} class="infoboxinfodata" {{!}}
{{{height}}}}}
|-
{{#if: {{{weight|}}}|
{{!}} class="infoboxinfoheader" {{!}} Weight:
{{!}} class="infoboxinfodata" {{!}}
{{{weight}}}}}
|-
{{#if: {{{hair|}}}|
{{!}} class="infoboxinfoheader" {{!}} Hair:
{{!}} class="infoboxinfodata" {{!}}
{{{hair}}}}}
|-
{{#if: {{{eyes|}}}|
{{!}} class="infoboxinfoheader" {{!}} Eyes:
{{!}} class="infoboxinfodata" {{!}}  
{{{eyes}}}}}
|-
| colspan="2" class="header user" | '''General Information'''
|-
{{#if: {{{occupation|}}}|
{{!}} class="infoboxinfoheader" {{!}} Occupation:
{{!}} class="infoboxinfodata" {{!}}
{{{occupation}}}}}
|-
{{#if: {{{religion|}}}|
{{!}} class="infoboxinfoheader" {{!}} Religion:
{{!}} class="infoboxinfodata" {{!}}
{{{religion}}}}}
|-
{{#if: {{{hobbies|}}}|
{{!}} class="infoboxinfoheader" {{!}} Hobbies:
{{!}} class="infoboxinfodata" {{!}}
{{{hobbies}}}}}
|-
{{#if: {{{url|}}}|
{{!}} class="infoboxinfoheader" {{!}} URL:
{{!}} class="infoboxinfodata" {{!}}
{{{url}}}}}
|-
{{#if: {{{contribs|}}}|
{{!}} class="infoboxinfoheader" {{!}} Canon contributions:
{{!}} class="infoboxinfodata" {{!}}  
{{{contribs}}}}}
|-
{{#if: {{{dossier|}}}|
{{!}} class="infoboxinfoheader" {{!}} Dossier:
{{!}} class="infoboxinfodata" {{!}}
{{{dossier}}}}}
|-
{{#if: {{{userboxes|}}}|
{{!}} colspan="2" style="border-top: 1px solid #111111; text-align: center; color: #e5e5ed;  background-color:#002D33; text-align:center; font-size:8pt;" {{!}}
{{{userboxes}}}}}
|-
|colspan="2" class="infoboxfooter user" | {{Link color|Template:User|#48858B|[ Source ]}}
|}
<includeonly>{{#if:{{NAMESPACE}} | [[Category:RL Bios|{{PAGENAME}}]] | }}</includeonly>
<noinclude>__NOEDITSECTION__ __NOTOC__
===Field list===
===Field list===
*image
*image
*name
*name
*alias
*birth
*birth
*age
*birthplace
*birthplace
*residence
*residence
*status
*children
*gender
*gender
*skin color
*skin color
Line 46: Line 132:
*eyes
*eyes
*occupation
*occupation
*religion
*hobbies
*hobbies
*url
*contribs
*contribs
*dossier
*userboxes (place optional userbox template here)
*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 [[Template:userbox container|userbox container template]] that was specially designed to nest neatly within it.


===Usage===
===Usage===
To use this template, paste the following code into the top of your userpage, filling all relevant fields:
To use this template, paste the following code into the top of your userpage, filling all relevant fields:
<pre><nowiki>
<pre><nowiki>
{{user infobox
{{User
|image=
|image=
|name=
|name=
|alias=
|birth=  
|birth=  
|age=
|birthplace=
|birthplace=
|residence=
|residence=
|status=
|children=
|gender=
|gender=
|skin=
|skin=
Line 77: Line 159:
|eyes=
|eyes=
|occupation=
|occupation=
|religion=
|hobbies=
|hobbies=
|url=
|contribs=
|contribs=
|userboxes=
|userboxes=
Line 84: Line 168:
===Notes===
===Notes===
#All the data fields are collapsible, so do not worry about leaving any of them empty.  
#All the data fields are collapsible, so do not worry about leaving any of them empty.  
#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:
 
<pre><nowiki>
[[Category:Infobox templates|{{PAGENAME}}]][[Category:User page templates]]{{DEFAULTSORT:{{PAGENAME}}}}</noinclude>
{{user infobox
|hideb=hide
}}</nowiki></pre>
Produces this:
{{user infobox
|hideb=hide
}}
{{clear}}
==Example==
{{user infobox
|name=name
|birth=date
|gender=gender
|sking=skin color
|height=height
|weight=weight
|hair=color
|eyes=color
|hobbies=hobbies
|userboxes={{userbox container
|ub1={{userbox|#6ef7a7|#c5fcdc|en|This user is a native speaker of '''English'''.}}
|ub2={{userbox|#ffb466|#ffe496|fox|This user contributes using '''Mozilla Firefox'''.}}
|ub3={{userbox|#CC9000|#EFC35B|sw-3|This user has an advanced understanding of the '''[[starwars:Star Wars|Star Wars]] [[The Galaxy|Galaxy]]'''.}}
}}
}}
{{clear}}
===Code===
<pre><nowiki>
{{user infobox
|name=name
|birth=date
|gender=gender
|skin=skin color
|height=height
|weight=weight
|hair=color
|eyes=color
|hobbies=hobbies
|userboxes={{userbox container
|ub1={{user en}}
|ub2={{user fox}}
|ub3={{user sw-3}}
}}
}}</nowiki></pre>[[Category:Infobox templates|{{PAGENAME}}]][[Category:User page templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 01:57, 24 July 2015

{{{name}}}
Biographical Information
Physical Description
General Information
[ Source ]


Field list

  • image
  • name
  • alias
  • birth
  • age
  • birthplace
  • residence
  • status
  • children
  • gender
  • skin color
  • height
  • weight
  • hair
  • eyes
  • occupation
  • religion
  • hobbies
  • url
  • contribs
  • dossier
  • userboxes (place optional userbox template here)

Usage

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

{{User
|image=
|name=
|alias=
|birth= 
|age=
|birthplace=
|residence=
|status=
|children=
|gender=
|skin=
|height= 
|weight=
|hair= 
|eyes=
|occupation=
|religion=
|hobbies=
|url=
|contribs=
|userboxes=
}}

Notes

  1. All the data fields are collapsible, so do not worry about leaving any of them empty.