Template:UBX: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
m (Text replacement - "\[\[(:)?Image:" to "[[$1File:")
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="float: {{{1|right}}}; border: solid {{{border|black}}} 1px; margin: 1px;">
<div class="userbox" style="float: {{{1|right}}}; border: solid {{{border|black}}} 1px; margin: 1px;">
{|cellspacing="0" style="width: 238px; background: {{{bkgnd|#FFFFFF}}};"
{|cellspacing="0" style="width: 238px; background: {{{bkgnd|#FFFFFF}}};"
|style="width: 45px; height: 45px; background: {{{codebkgnd|#FFFFFF}}}; text-align: center;"| '''<big>{{{code}}}</big>'''
|style="width: 45px; height: 45px; background: {{{codebkgnd|#FFFFFF}}}; text-align: center;"| '''<big>{{{code}}}</big>'''
Line 5: Line 5:
|}</div><noinclude>
|}</div><noinclude>
__NOTOC__
__NOTOC__
This template makes it possible to create custom userboxes easier.
This template makes creating custom userboxes easier.
==Code==
==Code==
<pre><nowiki>{{UBX
<pre><nowiki>{{UBX
Line 20: Line 20:
*'''text''' - The text at the right.
*'''text''' - The text at the right.
*'''bkgnd''' - The background colour.
*'''bkgnd''' - The background colour.
*'''code''' - The image/text at the left. '''If you're using images, they should always be about 45 pixles!''' (<nowiki>[[Image:Whatever.gif|45px]]</nowiki>)
*'''code''' - The image/text at the left. '''If you're using images, they should always be about 45 pixels!''' (<nowiki>[[File:Whatever.gif|45px]]</nowiki>)
*'''codebkgnd''' - The background for the text at the left.
*'''codebkgnd''' - The background for the text at the left.
*'''textclr''' - Text colour.
*'''textclr''' - Text colour.
Line 31: Line 31:
| text      = Example  
| text      = Example  
| bkgnd    = #bbbbcc  
| bkgnd    = #bbbbcc  
| code      = [[Image:Wiki.png|45px]]  
| code      = [[File:Wiki.png|45px]]  
| codebkgnd = #ffffff  
| codebkgnd = #ffffff  
| textclr  = #012345  
| textclr  = #012345  
Line 48: Line 48:
|align=right
|align=right
}}
}}
Test your userboxes in the [[SmashWiki:Sandbox|sandbox]].</noinclude>
Test your userboxes in the [[SmashWiki:Sandbox|sandbox]].
 
[[Category:User page templates| {{PAGENAME}}]]</noinclude>

Latest revision as of 12:43, February 10, 2021

{{{code}}} {{{text}}}

This template makes creating custom userboxes easier.

Code

{{UBX
| text      = 
| bkgnd     = 
| code      = 
| codebkgnd = 
| textclr   = 
| border    = 
| float     = 
| align     = 
}}

Parameters

  • text - The text at the right.
  • bkgnd - The background colour.
  • code - The image/text at the left. If you're using images, they should always be about 45 pixels! ([[File:Whatever.gif|45px]])
  • codebkgnd - The background for the text at the left.
  • textclr - Text colour.
  • border - Border colour.
  • float - In what direction the box should float, right by default
  • align - Text align

Example

{{UBX
| text      = Example 
| bkgnd     = #bbbbcc 
| code      = [[File:Wiki.png|45px]] 
| codebkgnd = #ffffff 
| textclr   = #012345 
| border    = blue 
| float     = left 
| align     = right 
}}

would give you:

Smash Wiki's Logo. Example

Test your userboxes in the sandbox.