Difference between revisions of "Template:Infobox User"

From Nookipedia, the Animal Crossing wiki
(Having an aliases param will screw up the layout. Fixed that, although there's still space below quote param)
(Adding parameter to allow users to choose color class)
(28 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| style="background: #eee7a5; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #eec900; width: 25%; float:right"
+
{{Infobox 2.0
|-
+
| colorclass    = {{{colorclass|color-user}}}
! colspan="2" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
| title          = {{{name|{{PAGENAME}}}}}
|-
+
| subtitleabove  = {{#if:{{{aliases|}}}|'''Aliases:''' {{{aliases|}}}|}}
| style="background: #ffffff; text-align:center; {{roundy|10px}}" colspan="2" | {{#if:{{{image|}}}|{{{image}}}|Image not available.}}<br>{{#if:{{{quote|}}}|''<small>"{{{quote}}}"</small>''|{{{quote|}}}}}
+
| primarycolor  = {{{color|50 70}}}
{#if:{{{aliases|}}}|
+
| overrideprimary= {{{overrideprimary|70%}}}
{{!-}}
+
| image          = {{#if:{{{image|}}}|{{{image}}}|[[File:Nia.png]]}}
! style="background: #eec900; text-align:right; {{roundytl|10px}}" {{!}} Aliases
+
| caption        = {{#if:{{{quote|}}}|"''{{{quote|}}}''"|}}
{{!}} style="background:#ffffff; {{roundytr|10px}}" {{!}} {{{aliases|}}}}}
+
| widelabel      = Status
{{#if:{{{status|}}}|
+
| widedata      = {{#if:{{{status|}}}|<div style="margin: 0 auto; text-align:center; width:250px; height: 20px; {{roundy|6px}} background: #{{#switch: {{{status|}}} |Bot = 8E8E8E |Active = 84ED68 |Around = D2ECBE |Hiatus = A38949 |Inactive = ADC0F5 |Vacation = FAF18A}}">'''{{#switch: {{{status|}}} |Bot = Bot |Active = Active |Around = Around |Hiatus = Hiatus |Inactive = Inactive |Vacation = Vacation}}'''</div>|}}
{{!-}}
+
| label          = Edit count
! style="background: #eec900; text-align:right;" {{!}} Status
+
| data          = {{Special:Editcount/{{BASEPAGENAME}}}} ({{Special:Editcount/{{BASEPAGENAME}}{{{User|}}}/mainspace}} in mainspace)
{{!}} align="center" style="{{roundy|5px}} border: 1px solid #{{#switch: {{{status|Bot}}}|Bot=2E2E2E|Active=62CB46|Around=A5D97B|Hiatus=7A6636|Inactive=8190B7}}; background: #{{#switch: {{{status|Bot}}}|Bot=8E8E8E|Active=84ED68|Around=D2ECBE|Hiatus=A38949|Inactive=ADC0F5}}; color:#000000; line-height: 8pt;" {{!}} '''<small>{{{status|Bot}}}</small>'''}}
+
| label2        = Gender
|-
+
| data2          = {{{gender|}}}  
! style="background: #eec900; text-align:right; {{#if:{{{status|}}}{{{aliases|}}}||{{roundytl|10px}};}}" | Edit Count
+
| label3        = Joined
| style="background:#ffffff" | {{Special:Editcount/{{BASEPAGENAME}}}} ({{Special:Editcount/{{BASEPAGENAME}}{{{User|}}}/mainspace}} in mainspace)
+
| data3          = {{{joined|}}}
|-
+
| label4        = Service
! style="background: #eec900; text-align:right;" | Gender
+
| data4          = {{{service|}}}
| style="background:#ffffff" | {{{gender|Unknown}}}
+
| label5        = Appearances
|-
+
| data5          = {{{appearances|}}}
! style="background: #eec900; text-align:right" | Service
+
| label6        = Signature
| style="background:#ffffff" | {{{service|Unknown}}}
+
| data6          = {{{signature|}}}
|-
+
}}<noinclude>
! style="background: #eec900; text-align:right; {{roundybl|10px}}" | Appearances
 
| style="background:#ffffff; {{roundybr|10px}}" | {{{appearances|Unknown}}}
 
|}
 
 
 
<noinclude>
 
 
{{clear}}
 
{{clear}}
 
==Usage==
 
==Usage==
Line 35: Line 30:
 
|quote=  
 
|quote=  
 
|aliases=
 
|aliases=
|status= (It can either be "Active", "Inactive", or "Hiatus".)
+
|joined=
 +
|status= (It can either be "Active", "Inactive", "Hiatus", or "Vacation".)
 
|gender=  
 
|gender=  
 
|service=  
 
|service=  
 
|appearances=  
 
|appearances=  
 +
|signature=
 
}}
 
}}
 
</pre>
 
</pre>
[[Category:Infobox templates]]
+
[[Category:Personal templates]][[Category:Infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 06:13, May 18, 2024

Nia.png
Edit count (0 in mainspace)

Usage

{{Infobox User
|name= 
|image= 
|quote= 
|aliases=
|joined=
|status= (It can either be "Active", "Inactive", "Hiatus", or "Vacation".)
|gender= 
|service= 
|appearances= 
|signature=
}}