Template:Wpuserbox: Difference between revisions

Template page
w:c:strategywiki>Skizzerz
mNo edit summary
w:c:strategywiki>Najzere
(adding usage)
Line 4: Line 4:
|}<noinclude>
|}<noinclude>


A wikipedia-style userbox
A wikipedia-style userbox. Colors can be [http://www.somacon.com/p142.php CSS color codes] or hexidecimal color codes preceded by "#". The first three parameters are unnamed, and only the second and third are mandatory. To omit the first parameter, use a blank field:
 
<pre>{{wpuserbox||[[Image:imagename.jpg]]|userbox text}}</pre>
 
==Usage==
 
<pre>{{wpuserbox
|left side background color (Default is white.)
|left side [[Image:imagename.jpg]] or short text
|right side text
|border-c=userbox border color (Default is black.)
|id-s=left side text size (Default is 14px.)
|id-fc=left side text color (Default is black.)
|info-s=right side text size (Default is 8px.)
|info-fc=right side text color (Default is black.)
}}</pre>


[[Category:Templates|W]]</noinclude>
[[Category:Templates|W]]</noinclude>

Revision as of 03:09, 3 March 2009

{{{2}}} {{{3}}}

A wikipedia-style userbox. Colors can be CSS color codes or hexidecimal color codes preceded by "#". The first three parameters are unnamed, and only the second and third are mandatory. To omit the first parameter, use a blank field:

{{wpuserbox||[[Image:imagename.jpg]]|userbox text}}

Usage

{{wpuserbox
|left side background color (Default is white.)
|left side [[Image:imagename.jpg]] or short text
|right side text
|border-c=userbox border color (Default is black.)
|id-s=left side text size (Default is 14px.)
|id-fc=left side text color (Default is black.)
|info-s=right side text size (Default is 8px.)
|info-fc=right side text color (Default is black.)
}}