Difference between revisions of "Template:Userbox"

From Nookipedia, the Animal Crossing wiki
(Neither help pages exist, removed their links.)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}} solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;">
+
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="userbox">
 
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
 
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
| style="width:45px; height:45px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}};" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}
+
| style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}}; padding:{{{logo-padding|{{{id-p|1px}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}; vertical-align: middle;" |'''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
| style="font-size:8pt; padding:4pt; line-height:1.25em; color:{{{info-color|{{{info-fc|black}}}}}};" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
+
| style="text-align:left; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4px}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}; vertical-align: middle;" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
|}</div>
+
|}</div><noinclude>
  
<noinclude>
+
<br clear="all" />
<br clear="all">
+
This template can be used to quickly create a [[project:userboxes|userbox]] for display on a user's user page without having to know HTML or Wikitable syntax. For a simpler version, see [[Template:UserboxSimple|here]].
  
 
==Usage==
 
==Usage==
 
<pre>
 
<pre>
{{Userbox
+
{{userbox
|id      = id text or image
+
| border-c = border color
|id-c    = id background colour
+
| border-s = border width in pixels
|id-fc    = id font colour
+
| id      = id text or image
|id-s    = id text size
+
| id-c    = id background color
|info    = info text
+
| id-fc    = id font color
|info-c  = info background colour
+
| id-s    = id text size
|info-fc  = info font colour
+
| id-p    = id cell padding space
|border-c = border color
+
| id-lh    = id line height
|border-s = border thickness
+
| id-op    = id other parameter (CSS)
 +
| id-w    = id box width
 +
| id-h    = id box height
 +
| info    = info text
 +
| info-c  = info background color
 +
| info-fc  = info font color
 +
| info-s  = info text size
 +
| info-p  = info padding (distance between cell contents & cell border)
 +
| info-lh  = info line height (or distance in between text lines)
 +
| info-op  = info other (CSS) parameter(s)
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
===Additional notes===
 +
* Text size is assumed to be in points
 +
* If border-c is not specified, id-c will be used
 +
* All parameters are optional
 +
* It is suggested that the size of any images in the id box is limited to 40 pixels
 +
* If you are looking for a list of userboxes, please go [[Nookipedia:Userboxes|here]]

Latest revision as of 03:06, March 13, 2022

id info


This template can be used to quickly create a userbox for display on a user's user page without having to know HTML or Wikitable syntax. For a simpler version, see here.

Usage

{{userbox
| border-c = border color
| border-s = border width in pixels
| id       = id text or image
| id-c     = id background color
| id-fc    = id font color
| id-s     = id text size
| id-p     = id cell padding space
| id-lh    = id line height 
| id-op    = id other parameter (CSS)
| id-w     = id box width
| id-h     = id box height
| info     = info text
| info-c   = info background color
| info-fc  = info font color
| info-s   = info text size
| info-p   = info padding (distance between cell contents & cell border)
| info-lh  = info line height (or distance in between text lines)
| info-op  = info other (CSS) parameter(s)
}}

Additional notes

  • Text size is assumed to be in points
  • If border-c is not specified, id-c will be used
  • All parameters are optional
  • It is suggested that the size of any images in the id box is limited to 40 pixels
  • If you are looking for a list of userboxes, please go here