Protected page

Template:UB

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Standard Userbox Template. Use {{Userbox}} for a table, which centers text horizontally. This template has more style controls. Brought to you by AJTA and UN:LEG.


{{UB|f={{{f|{{{1|}}}}}}|bg=#EEE|b=#DDD|[[File:IncyclopediaLogo.png |100px]]|Text goes here.}}<noinclude>[[Category:User_page_templates|{{PAGENAME}}]]</noinclude>


IncyclopediaLogo.png
Text goes here.


Parameters

  • 1 or img = full image insertion, or brief text
  • 2 or text = text content
  • border = box border (1px solid <b>)
  • b = border color (transparent)
  • bg = background (transparent)
  • id = custom ID (Uboxen)
  • class = custom class

Text Area Controls

  • p = text padding, use only one size here unless <im> is set also (8px)
  • ta or a = text-align (left)
  • lh = line-height (1.3em)
  • fs = text font-size (12px)
  • c = text area font color (#000)
  • cs = text content area styles
  • s = inner text box styles

Image Area Controls

  • ib = image border (0 solid <ibc>)
  • ibc = image border color and background (transparent)
  • ibg = image area background color
  • if = image float (left)
  • ip = image area padding (0)
  • ia = image area text-align (center)
  • ifs = image area font-size (14pt)
  • ifc = image area font color (#000)
  • im = image margin-left and margin-right (varies depending on other elements)
  • is = image area styles
  • ibs = inner image box styles
  • slh = image area line-height

Stuff You Shouldn't Have to Change

  • f = float, let the user set this, you may need to change the secondary parameter for the passed 'f' value (none)
  • clear = clear, let the user set this if desired
  • m = margin (varies depending on float)
  • w = width, important for mobile (278px)
  • bs = box styles
  • os = optional div styles
  • ms = middle div styles
  • ns = null styles for the outermost box, only use if you have to