Template:Infobox user: Difference between revisions

No edit summary
No edit summary
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="width:22em; font-size:90%; text-align:left; border-color:#A88; background-color: #CAA;" 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;">{{{name|{{PAGENAME}}}}}</span>
|bodystyle    = background-color: #F0F0FA;
{{#if:{{{image|}}}|
|title        = User
{{pipe}}-
|titlestyle  = font-size: 90%;
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|
text-transform: uppercase;
{{pipe}}-
background-color: #EEE;
border: 1px solid #AAA;
border-bottom: none;  
|above = {{BASEPAGENAME}}
|abovestyle = font-size: 150%;
 
|image        = {{#ifeq: {{{image|}}} | none |  | [[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  = {{GENDER:{{BASEPAGENAME}}|Male|Female|}}
 
|label5  = Date of Birth
|data5  = {{#if: {{{dob|}}}|[[{{#time: Y |{{{dob|}}}}}|{{{dob}}}]][[DOB::{{{dob|}}}| ]] {{{dob-comment|}}}
}}
}}
{{pipe}}- valign="top"
 
!
|label6  = Age
{{#if: {{{name|}}}|
|data6  =
{{pipe}}-
{{#if: {{{dob|}}}|  
!style="text-align:right;"{{pipe}}Full name:
{{#iferror:{{#time: Y |{{{dob|abc}}}}} | <!-- dob error -->[[Category:Fix dob]] |
{{pipe}}{{{name|}}}|
{{age|{{#time: Y |{{{dob}}} }}| {{{age|}}} }} }} }}
{{pipe}}-
 
}}
|label7  = Place of Birth
{{#if: {{{aka|}}}|
|data7  = {{{pob|}}}
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Also known as:
|label8  = Nationality
{{pipe}}{{{aka|}}}|
|data8  = {{#if: {{{nationality|}}}|[[{{Country|{{{nationality}}}}}|{{Nationality|{{{nationality}}}}}]][[Nationality::{{nationality|{{{nationality|}}}}}| ]]}}
{{pipe}}-
 
}}
|label9  = Home
{{#if: {{{gender|}}}|
|data9  = {{{home|}}}
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Gender:
|label10  = Family
{{pipe}}
|data10  = {{{family|}}}
{{#if: {{#ifeq: {{{gender|}}}|M|M}}|Male|{{#if: {{#ifeq: {{{gender|}}}|F|F}}|Female}}|}}}}
 
{{#if: {{{dob|}}}|
|label11  = Friends
{{pipe}}-
|data11  = {{{friends|}}}
!style="text-align:right;"{{pipe}}Date of birth:
 
{{pipe}}{{{dob|}}}|
|label12  = Affiliations
{{pipe}}-
|data12  = {{{affiliations|}}}
}}
 
{{#if: {{{pob|}}}|
|label13  = Favourite Game
{{pipe}}-
|data13  = {{#if: {{{game|}}} | {{game|{{{game|}}}}}}}
!style="text-align:right;"{{pipe}}Place of birth:
 
{{pipe}}{{{pob|}}}|
 
{{pipe}}-
|label14  = Games Owned
}}
|data14 = {{gamelist|{{{game_1|}}}|{{{game_2|}}}|{{{game_3|}}}|{{{game_4|}}}|{{{game_5|}}}|{{{game_6|}}}|{{{game_7|}}}|{{{game_8|}}}|{{{game_9|}}}|{{{game_10|}}}|{{{game_11|}}}|{{{game_12|}}}|{{{game_13|}}}|{{{game_14|}}}|{{{game_15|}}}|{{{game_16|}}}|{{{game_17|}}}|{{{game_18|}}}|{{{game_19|}}}|{{{game_20|}}}}}
{{#if: {{{dod|}}}|
 
{{pipe}}-
|label15  = Vehicles
!style="text-align:right;"{{pipe}}Date of death:
|data15  = {{{vehicles|}}}
{{pipe}}{{{dod|}}}|
 
{{pipe}}-
|label16  = Businesses
}}
|data16  = {{{businesses|}}}
{{#if: {{{home|}}}|
 
{{pipe}}-
}}</includeonly><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}}-
}}
|}</includeonly><noinclude>
{{infobox character|
}}
The following code produces the fake infobox shown on the right:
<pre>{{infobox character|
|image =  
|name =  
|aka =
|gender =
|dob =  
|pob =
|home =
|nationality =
}}</pre>
[[category:infoboxes]]
[[Category:Templates|{{PAGENAME}}]]</noinclude>
<includeonly>[[Category:Characters| ]]</includeonly>

Latest revision as of 12:48, 8 August 2012

This documentation is imported from Template:Infobox user/doc

This template is used to describe a user on Grand Theft Wiki.

Usage

To use this template, input as follows:(* indicates a semantic property)

{{Infobox user
|image = xxxx.png (If you don't want to display any image, input "none".)
|caption = Caption of the image
|name = Your name
|aka = Also known as
|gender = Gender, input M for male or F for female.*
|dob = date of birth. Recommended format is ISO 8601.
|pob = Place of birth.
|nationality = Nationality. Use adjectives such as Serbian, don't use the name of a country such as Serbia.*
|game = Your favorite game. Input III, VC, SA, IV etc.*
|game_1 =One of the games your own.*
|game_2 =ditto.*
...
|game_10 = ditto.*
}}

Notice

Some of the parameters are hidden in this documentation for they are either previously set or not applicable to many users. If you need them, view source of this template and apply them.