Template:UserTemplate

From The Urban Dead Wiki
Revision as of 22:44, 21 February 2010 by The Rooster (talk | contribs) (Corrected and redefined some CSS, and tided documentation)
Jump to navigationJump to search
Example.jpg {{{headertext}}}
{{{maintext}}}

Usage

{{UserTemplate
|margintopbottom=size
|marginleftright=size
|borderwidth=size
|borderstyle=style
|bordercolor=color
|width=size
|padding=size
|background=color
|fontsize=size
|imagepadding=size
|image=name
|imagewidth=size
|headerbackground=color
|headercolor=color
|headerfontsize=size
|headerlineheight=size
|headeralign=alignment
|headerheight=size
|headertext=text
|mainfontsize=size
|mainalign=alignment
|mainlineheight=size
|mainbackground=color
|maincolor=color
|mainpadding=size
|maintext=text
}}

This template is the mother of all user box templates. You need only define a few variables to get it to function. But you can adjust others for fine tuning of the result.

You must define:

  • image: image filename
  • headertext: text in the header
  • maintext: text in the main body

You should probably define:

  • bordercolor: color of the border
  • headerbackground: color of the header
  • headercolor: color of the header text

The defaults are:

  • margintopbottom: auto
  • marginleftright: 0
  • borderwidth: 2px
  • borderstyle: solid
  • bordercolor: black
  • width: 250px
  • padding: 0
  • background: white
  • fontsize: medium
  • imagepadding: 0
  • imagewidth: 60px
  • headerbackground: black
  • headercolor: white
  • headerfontsize: 85%
  • headerlineheight: 1.5
  • headeralign: center
  • headerheight: auto
  • mainfontsize: 70%
  • mainalign: center
  • mainlineheight: 2
  • mainbackground: transparent
  • maincolor: black
  • mainpadding: 0

Example

To create

Dead.gif My First Template
This is my first template!

just type

{{UserTemplate|headertext='''My First Template'''|maintext=This is my first template!|image=Dead.gif}}