Difference between revisions of "Template:Ubx"

From YTMND
Jump to: navigation, search
Line 1: Line 1:
<div style="float: left; border: solid {{{border|black}}} 1px; margin: 1px;">
+
<div style="float: {{{1|left}}}; border: solid {{{border|black}}} 1px; margin: 1px;">
{|cellspacing="0" style="width: 238px; background: {{{bkgnd}}};"
+
{|cellspacing="0" style="width: 238px; background: {{{bkgnd|#FFFFFF}}};"
|style="width: 45px; height: 45px; background: {{{sidetextbkgnd}}}; text-align: center;"| '''<big>{{{sidetext}}}</big>'''
+
|style="width: 45px; height: 45px; background: {{{sidetextbkgnd|#FFFFFF}}}; text-align: center;"| '''<big>{{{sidetext}}}</big>'''
 
|style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{textclr|black}}};"| {{{text}}}
 
|style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{textclr|black}}};"| {{{text}}}
 
|}</div><noinclude>
 
|}</div><noinclude>
Line 7: Line 7:
  
 
==Code==
 
==Code==
<pre><nowiki>{{ ubx
+
<pre><nowiki>{{ubx
| text          =  
+
| text          =  
| bkgnd        =  
+
| bkgnd        =  
| sidetext      =  
+
| sidetext      =  
| sidetextbkgnd =  
+
| sidetextbkgnd =  
| textclr      =  
+
| textclr      =  
| border        =  
+
| border        =
 +
| float        =  
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 
===Parameters===
 
===Parameters===
Line 22: Line 23:
 
*'''Textclr''' - Text colour.
 
*'''Textclr''' - Text colour.
 
*'''Border''' - Border colour
 
*'''Border''' - Border colour
 +
*'''Float''' - In what direction the box should float, left by default
 
==Example==
 
==Example==
 
<pre><nowiki>
 
<pre><nowiki>
Line 31: Line 33:
 
  | textclr      = #012345
 
  | textclr      = #012345
 
  | border        = blue
 
  | border        = blue
 +
| float        = left
 
}}</nowiki></pre> would give you:
 
}}</nowiki></pre> would give you:
 
{{ ubx
 
{{ ubx
  | text          = <center>Hey w00t!</center>
+
  | text          = Example
 
  | bkgnd        = #bbbbcc
 
  | bkgnd        = #bbbbcc
  | sidetext      = [[image:wiki.gif|45px]]!
+
  | sidetext      = [[image:wiki.gif|45px]]
 
  | sidetextbkgnd = #ffffff
 
  | sidetextbkgnd = #ffffff
 
  | textclr      = #012345
 
  | textclr      = #012345
 
  | border        = blue
 
  | border        = blue
 +
|float=left
 
}}
 
}}
 
Test your userboxes in the [[Y:SBX|sandbox]].
 
Test your userboxes in the [[Y:SBX|sandbox]].
 
[[Category:User page templates| Userbox]]</noinclude>
 
[[Category:User page templates| Userbox]]</noinclude>

Revision as of 12:10, January 24, 2007

{{{sidetext}}} {{{text}}}


Code

{{ubx
| text          = 
| bkgnd         = 
| sidetext      = 
| sidetextbkgnd = 
| textclr       = 
| border        = 
| float         = 
}}

Parameters

  • Text - The text at the right.
  • Bkgnd - The background colour.
  • Sidetext - The image/text at the left. If you're using images, they should always be about 45 pixles! ([[Image:Whatever.gif|45px]])
  • Sidetextbkgnd - The background for the text at the left.
  • Textclr - Text colour.
  • Border - Border colour
  • Float - In what direction the box should float, left by default

Example

{{ ubx
 | text          = <center>Hey w00t!</center>
 | bkgnd         = #bbbbcc
 | sidetext      = [[image:wiki.gif|45px]]!
 | sidetextbkgnd = #ffffff
 | textclr       = #012345
 | border        = blue
 | float         = left
}}
would give you:
Wiki.gif Example

Test your userboxes in the sandbox.