Difference between revisions of "Template:UserVariable infobox"

From TheHolo.Net Forums Wiki

Jump to:navigation, search
(New page: <div id="UserVariable_infobox" class="infobox" style="border-width: 0px; padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}"> {| id="infoboxinternal" class="infoboxtable" cellspacing="...)
 
Line 1: Line 1:
<div id="UserVariable_infobox" class="infobox" style="border-width: 0px; padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
+
<div id="User_infobox" class="infobox" style="border-width: 0px; padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
 
{| id="infoboxinternal" class="infoboxtable" cellspacing="0" cellpadding="4" style="border-width: 0px"
 
{| id="infoboxinternal" class="infoboxtable" cellspacing="0" cellpadding="4" style="border-width: 0px"
|-
+
|-
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}}}" | {{{image|}}}
 
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}}}" | {{{image|}}}
|-  
+
|-  
 
! class="infoboxheading" colspan="2" style="{{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}; {{{css|}}}" | {{{{{{2|name}}}}}}
 
! class="infoboxheading" colspan="2" style="{{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}; {{{css|}}}" | {{{{{{2|name}}}}}}
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
+
{{#if:{{{hideb|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''Biographical information'''}}
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''Biographical information'''}}
{{#if:{{{birth|}}}|
+
{{#if:{{{birth|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Birth date
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Birth date
Line 27: Line 27:
 
|}} {{#if:{{{hidep|}}}|{{!}}-|{{!}}-
 
|}} {{#if:{{{hidep|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''Physical description'''}}
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''Physical description'''}}
{{#if:{{{gender|}}}|
+
{{#if:{{{gender|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Gender
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Gender
Line 53: Line 53:
 
|}} {{#if:{{{hideg|}}}|{{!}}-|{{!}}-
 
|}} {{#if:{{{hideg|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''General information'''}}
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''General information'''}}
{{#if:{{{occupation|}}}|
+
{{#if:{{{occupation|}}}|
 
{{!}}-
 
{{!}}-
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Occupation
 
{{!}} class="infoboxlabel" style="{{#if:{{#if:{{{c3|}}}|{{{c3}}}|none}}|background: #{{#if:{{{c3|}}}|{{{c3}}}|none}}|}}" {{!}} Occupation
Line 71: Line 71:
 
{{{contribs|}}}
 
{{{contribs|}}}
 
{{!}}-
 
{{!}}-
|}} {{#if:{{{hideu|}}}|{{!}}-|{{!}}-
 
! class="infoboxsubheading" colspan="2" style="background: #{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}" {{!}} '''Userboxes'''}}
 
{{#if:{{{userboxes|}}}|
 
{{!}}- class="infoboxstopalt"
 
{{!}} colspan="2" {{!}}
 
{{{!}} border="0" cellpadding="0" cellspacing="0" style="padding:0; width:242px; margin:0 auto 0 auto; background:none;"
 
{{!}}-
 
{{!}} style="background:none;" {{!}} {{{userboxes|}}}
 
{{!}}}
 
{{!}}- |}}
 
 
|}
 
|}
 
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}"><span id="infoboxend"></span>[[{{{srclink|Template:User infobox}}}|[Source]]]</div>
 
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}|background: #999999}}"><span id="infoboxend"></span>[[{{{srclink|Template:User infobox}}}|[Source]]]</div>
Line 115: Line 105:
 
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>
{{UserVariable infobox
+
{{user infobox
 
|c1=
 
|c1=
 
|c2=
 
|c2=
Line 135: Line 125:
 
|userboxes=
 
|userboxes=
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 +
 +
===Notes===
 +
#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>
 +
{{user infobox
 +
|hideb=hide
 +
}}</nowiki></pre>
 +
Removes the "biographical information" heading:
 +
{{user infobox
 +
|hideb=hide
 +
}}
 +
{{clear}}
 +
==Example==
 +
{{user infobox
 +
|c1=3366cc
 +
|c2=99ccff
 +
|c3=
 +
|imageBG=
 +
|userboxBG=
 +
|name=name
 +
|birth=date
 +
|gender=gender
 +
|height=height
 +
|hair=color
 +
|eyes=color
 +
|hobbies=hobbies
 +
|userboxes={{userbox|#6ef7a7|#c5fcdc|en|This user is a native speaker of '''[[Wikipedia:English language|English]]'''.}}
 +
{{userbox|#ffb466|#ffe496|fox|This user contributes using '''[[Wikipedia:Mozilla Firefox|Mozilla Firefox]]'''.}}
 +
{{userbox|#CC9000|#EFC35B|sw-3|This user has an advanced understanding of the '''[[Star Wars]] [[The Galaxy|Galaxy]]'''.}}
 +
}}
 +
{{clear}}
 +
===Code===
 +
<pre><nowiki>
 +
{{user infobox
 +
|c1=3366cc
 +
|c2=99ccff
 +
|c3=
 +
|imageBG=
 +
|userboxBG=
 +
|name=name
 +
|birth=date
 +
|gender=gender
 +
|height=height
 +
|hair=color
 +
|eyes=color
 +
|hobbies=hobbies
 +
|userboxes={{user en}}
 +
{{user fox}}
 +
{{user sw-3}}
 +
}}</nowiki></pre>
 +
 +
==Source==
 +
<nowiki>
 +
{{subst:slh|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:sli|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:slc|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:sls|Biographical information|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideb}} {{subst:sld|Birth date|birth|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Birthplace|birthplace|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Residence|residence|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|Physical description|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hidep}} {{subst:sld|Gender|gender|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Height|height|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Hair color|hair|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Eye color|eyes|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|General information|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideg}} {{subst:sld|Occupation|occupation|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Hobbies|hobbies|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Canon contributions|contribs|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|Userboxes|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideu}} {{#if:{{{userboxes|}}}|
 +
{{!}}- class="infoboxstopalt"
 +
{{!}} colspan="2" {{!}}
 +
{{{!}} border="0" cellpadding="0" cellspacing="0" style="padding:0; width:242px; margin:0 auto 0 auto; background:none;"
 +
{{!}}-
 +
{{!}} style="background:none;" {{!}} {{{userboxes|}}}
 +
{{!}}}
 +
{{!}}- |}} {{subst:slf|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}}
 +
</nowiki>
 +
 +
[[Category:Infobox templates|{{PAGENAME}}]][[Category:User page templates|{{PAGENAME}}]]</noinclude>

Revision as of 22:25, 3 April 2008

background: #{{{imageBG}}}|{{#if:{{#if:|{{{c1}}}|94C7D1}}|background: #{{#if:|{{{c1}}}|94C7D1}}|background: #999999}}}}" |
{{{c1}}}|94C7D1}}|background: #{{#if:|{{{c1}}}|94C7D1}}|background: #999999}}; " | {{{name}}}

{{#if:||-||-

{{{c2}}}|D6F0F5}}" | Biographical information}}

{{#if:|

{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Birth date {{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |
} {{#if:|

|- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Birthplace | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Residence | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:||-||- ! class="infoboxsubheading" colspan="2" style="background: #{{#if:|{{{c2}}}|D6F0F5}}" | Physical description}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Gender | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Height | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Hair color | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Eye color | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:||-||- ! class="infoboxsubheading" colspan="2" style="background: #{{#if:|{{{c2}}}|D6F0F5}}" | General information}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Occupation | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Hobbies | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}} {{#if:| |- | class="infoboxlabel" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}" | Canon contributions | class="infoboxcell" style="{{#if:{{#if:|{{{c3}}}|none}}|background: #{{#if:|{{{c3}}}|none}}|}}; " |

|- |}

{{#if:{{#if:|{{{c1}}}|94C7D1}}||}}

Field list

  • image
  • name
  • birth
  • birthplace
  • residence
  • gender
  • height
  • hair
  • eyes
  • occupation
  • hobbies
  • contribs
  • userboxes (place optional userbox template here)

Color modifiers

  • c1
  • c2
  • c3
  • imageBG
  • userboxBG

Display parameters

  • hideb
  • hidep
  • hideg

Usage

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

{{user infobox
|c1=
|c2=
|c3=
|imageBG=
|userboxBG=
|image=
|name=
|birth= 
|birthplace=
|residence=
|gender=
|height= 
|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
}}

Removes the "biographical information" heading: Template:User infobox

Example

Template:User infobox

Code

{{user infobox
|c1=3366cc
|c2=99ccff
|c3=
|imageBG=
|userboxBG=
|name=name
|birth=date
|gender=gender
|height=height
|hair=color
|eyes=color
|hobbies=hobbies
|userboxes={{user en}}
{{user fox}}
{{user sw-3}}
}}

Source

{{subst:slh|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:sli|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:slc|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}} {{subst:sls|Biographical information|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideb}} {{subst:sld|Birth date|birth|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Birthplace|birthplace|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Residence|residence|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|Physical description|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hidep}} {{subst:sld|Gender|gender|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Height|height|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Hair color|hair|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Eye color|eyes|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|General information|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideg}} {{subst:sld|Occupation|occupation|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Hobbies|hobbies|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sld|Canon contributions|contribs|{{#if:{{{c3|}}}|{{{c3}}}|none}}}} {{subst:sls|Userboxes|{{#if:{{{c2|}}}|{{{c2}}}|D6F0F5}}|hideu}} {{#if:{{{userboxes|}}}| {{!}}- class="infoboxstopalt" {{!}} colspan="2" {{!}} {{{!}} border="0" cellpadding="0" cellspacing="0" style="padding:0; width:242px; margin:0 auto 0 auto; background:none;" {{!}}- {{!}} style="background:none;" {{!}} {{{userboxes|}}} {{!}}} {{!}}- |}} {{subst:slf|{{#if:{{{c1|}}}|{{{c1}}}|94C7D1}}}}