Difference between revisions of "Template:User infobox"

From TMB Wiki
Jump to: navigation, search
m
m
Line 3: Line 3:
 
| colspan="2" style="text-align:center; font-size:larger; background-color:#6699CC; color:#000000<nowiki/>;" | {{PAGENAME}}
 
| colspan="2" style="text-align:center; font-size:larger; background-color:#6699CC; color:#000000<nowiki/>;" | {{PAGENAME}}
 
|-
 
|-
{{#if: {{{image|<noinclude>-</noinclude>}}} |  
+
{{#if: {{{image}}} |  
 
{{!}} colspan="2" style="text-align:center; font-size:90%;" {{!}} [[Image:{{{image}}}|220px]]
 
{{!}} colspan="2" style="text-align:center; font-size:90%;" {{!}} [[Image:{{{image}}}|220px]]
 
{{!}}-
 
{{!}}-
 
|}}
 
|}}
{{#if: {{{realname|}}} |
+
{{#if: {{{realname|<noinclude>-</noinclude>}}} |
 
! '''Real Name'''  
 
! '''Real Name'''  
 
{{!}} {{{realname}}}
 
{{!}} {{{realname}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
{{#if: {{
+
{{#if: (({{{dobyear}}} and {{{dobmonth}}} and {{{dobday}}}})|<noinclude>-</noinclude>) |
!'''Age'''  
+
! '''Age'''  
 
{{!}} {{age|{{{dobyear}}}|{{{dobmonth}}}|{{{dobday}}}}}
 
{{!}} {{age|{{{dobyear}}}|{{{dobmonth}}}|{{{dobday}}}}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
|'''Location'''  
+
{{#if: {{{location|<noinclude>-</noinclude>}}} |
|{{{location}}}
+
! '''Location'''  
|-
+
{{!}} {{{location}}}
|'''Occupation'''  
+
{{!}}-
|{{{occupation}}}
+
}}
|-
+
{{#if: {{{occupation|<noinclude>-</noinclude>}}} |
 +
! '''Occupation'''  
 +
{{!}} {{{occupation}}}
 +
{{!}}-
 +
}}
 
|}
 
|}
 
__TOC__
 
__TOC__

Revision as of 17:08, 9 April 2007

{{#if: {{{image}}} |
User infobox
[[Image:{{{image}}}|220px]]

}

{{#if: - | ! Real Name | {{{realname}}} |- }} {{#if: (({{{dobyear}}} and {{{dobmonth}}} and {{{dobday}}}})|-) | ! Age | {{#expr:(2024)-({{{dobyear}}})-((11)<({{{dobmonth}}})or(11)=({{{dobmonth}}})and(21)<({{{dobday}}}))}} |- }} {{#if: - | ! Location | {{{location}}} |- }} {{#if: - | ! Occupation | {{{occupation}}} |- }} |}

Contents




Usage

{{User_infobox
| realname     = 
| image        = 
| dobyear      =
| dobmonth     =
| dobday       =
| location     =
| occupation   =
}}