Difference between revisions of "Template:Ubx"

From YTMND
Jump to: navigation, search
 
 
(11 intermediate revisions by one user not shown)
Line 1: Line 1:
{|cellspacing="0" style="width: 238px; background: {{{bkgnd}}};"
+
<div style="float: {{{1|left}}}; border: solid {{{border|black}}} 1px; margin: 1px;">
|style="width: 45px; height: 45px; background: {{{sidetextbkgnd}}}; text-align: center;"| '''<big>{{{sidetext}}}</big>'''
+
{|cellspacing="0" style="width: 238px; background: {{{bkgnd|#FFFFFF}}};"
|style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{textclr|black}}};"| {{{text}}}
+
|style="width: 45px; height: 45px; background: {{{sidetextbkgnd|#FFFFFF}}}; text-align: center;"| '''<big>{{{sidetext}}}</big>'''
|}<noinclude>
+
|style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{textclr|black}}}; text-align: {{{align|left}}};"| {{{text}}}
 +
|}</div><noinclude>
 +
__NOTOC__
 +
 
 
==Code==
 
==Code==
<pre><nowiki>{{ ubx
+
<pre><nowiki>{{ubx
| text          =
+
| text          =  
| bkgnd        =
+
| bkgnd        =  
| sidetext      =
+
| sidetext      =  
| sidetextbkgnd =
+
| sidetextbkgnd =  
| textclr      =
+
| textclr      =
 +
| border        =
 +
| float        =
 +
| align        =  
 
}}</nowiki></pre>
 
}}</nowiki></pre>
 +
===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!''' (<nowiki>[[Image:Whatever.gif|45px]]</nowiki>)
 +
*'''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
 +
*'''Align''' - Text align
 
==Example==
 
==Example==
 +
<pre><nowiki>
 
{{ ubx
 
{{ ubx
  | text          = This is a test
+
  | text          = Example
  | bkgnd        = #666666
+
  | bkgnd        = #bbbbcc
  | sidetext      = [[image:wiki.PNG]] !
+
  | sidetext      = [[image:wiki.gif|45px]]
  | sidetextbkgnd = #efefef
+
  | sidetextbkgnd = #ffffff
 
  | textclr      = #012345
 
  | textclr      = #012345
}}</noinclude>
+
| border        = blue
 +
| float        = left
 +
| align        = right
 +
}}</nowiki></pre> would give you:
 +
{{ ubx
 +
| text          = Example
 +
| bkgnd        = #bbbbcc
 +
| sidetext      = [[image:wiki.gif|45px]]
 +
| sidetextbkgnd = #ffffff
 +
| textclr      = #012345
 +
| border        = blue
 +
|float=left
 +
|align=right
 +
}}
 +
Test your userboxes in the [[Y:SBX|sandbox]].
 +
[[Category:User page templates| Userbox]]</noinclude>

Latest revision as of 13:12, January 24, 2007

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


Code

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

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
  • Align - Text align

Example

{{ ubx
 | text          = Example
 | bkgnd         = #bbbbcc
 | sidetext      = [[image:wiki.gif|45px]]
 | sidetextbkgnd = #ffffff
 | textclr       = #012345
 | border        = blue
 | float         = left
 | align         = right
}}
would give you:
Wiki.gif Example

Test your userboxes in the sandbox.