Template:Infobox user: Difference between revisions

mNo edit summary
(Recoding)
Line 1: Line 1:
{| class="infobox" style="width:22em; font-size:90%; text-align:left; border-color:#888; background-color: #AAA;" cellspacing="2"
<includeonly>{{infobox
{{pipe}}- style="margin:0;"
|name        =  
!colspan="2" style="text-align: center;"{{pipe}}<small>User</small><br /><span class="fn" style="font-size:18px;">{{PAGENAME}}</span>
|bodystyle    = background-color: #F0F0FA;
{{pipe}}-
|title        = User
{{pipe}} colspan="2" align="center"{{pipe}}[[File:{{{image|GTW-logo.png}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center]]{{#if:{{{image|}}}|<div style="line-height:1.25em;">{{{caption|}}}</div>|}}
|titlestyle  = font-size: 90%;
{{pipe}}-
text-transform: uppercase;
{{pipe}}- valign="top"
background-color: #EEE;
!
border: 1px solid #AAA;
{{#if: {{{name|}}}|
border-bottom: none;  
{{pipe}}-
|above = {{BASEPAGENAME}}
!style="text-align:right;"{{pipe}}Full name:
|abovestyle = font-size: 150%;
{{pipe}}{{{name|}}}|
 
{{pipe}}-
|image        = [[File:{{{image||GTW-logo.png}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]
|imagestyle  = {{{imagestyle|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}
 
|headerstyle  = background:#444; color: #fff;
|labelstyle  = background:#ddd;
|datastyle    =
 
|header1 =
 
|label1  = Full Name
|data1  = {{{name|}}}
 
|label2  = Also Known As
|data2  = {{{aka|}}}
 
|label3  = Rank
|data3  = {{{rank|}}}
 
|label4  = gender
|data4  = {{#if: {{#ifeq: {{{gender|}}}|M|M}}|Male|{{#if: {{#ifeq: {{{gender|}}}|F|F}}|Female}}|}}}}
 
|label5  = Date of Birth
|data5  = {{#if: {{{dob|}}}|[[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
}}
}}
{{#if: {{{aka|}}}|
 
{{pipe}}-
|label6  = Age
!style="text-align:right;"{{pipe}}Also known as:
|data6  =
{{pipe}}{{{aka|}}}|
{{#if: {{{dob|}}}|  
{{pipe}}-
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error -->[[Category:Fix dob]] |
}}
{{age|{{#time: Y |{{{dob}}}  
{{#if: {{{rank|}}}|
}}| {{{age|}}} }}  
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Rank:
 
{{pipe}}'''{{{rank|}}}'''|
|label7  = Place of Birth
{{pipe}}-
|data7  = {{{pob|}}}
}}
 
{{#if: {{{gender|}}}|
|label8  = Nationality
{{pipe}}-
|data8  = {{#if: {{{nationality|}}}|[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]}}
!style="text-align:right;"{{pipe}}Gender:
 
{{pipe}}
|label9  = Home
{{#if: {{#ifeq: {{{gender|}}}|M|M}}|Male|{{#if: {{#ifeq: {{{gender|}}}|F|F}}|Female}}|}}}}
|data9  = {{{home|}}}
{{#if: {{{dob|}}}|
 
{{pipe}}-
|label10  = Family
!style="text-align:right;"{{pipe}}Date of birth:
|data10  = {{{family|}}}
{{pipe}}{{{dob|}}}|
 
{{pipe}}-
|label11  = Friends
}}
|data11  = {{{friends|}}}
{{#if: {{{age|}}}|
 
{{pipe}}-
|label12  = Affiliations
!style="text-align:right;"{{pipe}}Age:
|data12  = {{{affiliations|}}}
{{pipe}}{{{age|}}}|
 
{{pipe}}-
|label13  = Favourite Game
}}
|data13  = {{game|{{{game}}}}}
{{#if: {{{pob|}}}|
 
{{pipe}}-
|label14  = Vehicles
!style="text-align:right;"{{pipe}}Place of birth:
|data14  = {{{vehicles|}}}
{{pipe}}{{{pob|}}}|
 
{{pipe}}-
|label15  = Businesses
}}
|data15  = {{{businesses|}}}
{{#if: {{{home|}}}|
 
{{pipe}}-
}}</noinclude><noinclude>{{doc}}
!style="text-align:right;"{{pipe}}Home:
[[Category:Infobox Templates]]
{{pipe}}{{{home|}}}|
</noinclude>
{{pipe}}-
}}
{{#if: {{{nationality|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Nationality:
{{pipe}}{{{nationality|}}}|
{{pipe}}-
}}
{{#if: {{{family|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Family:
{{pipe}}{{{family|}}}|
{{pipe}}-
}}
{{#if: {{{friends|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Friends:
{{pipe}}{{{friends|}}}|
{{pipe}}-
}}
{{#if: {{{affiliations|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Affiliations:
{{pipe}}{{{affiliations|}}}|
{{pipe}}-
}}
|}
<noinclude>{{doc}}</noinclude>

Revision as of 11:43, 8 August 2012