Template:Wpuserbox: Difference between revisions

Template page
w:c:strategywiki>Skizzerz
(wikipedia userbox)
 
m (6 revisions imported: Imported from https://strategywiki.org/)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{| cellspacing="0" style="width: 238px; background: ; border: 1px solid #000; margin:1px"
{| cellspacing="0" style="width: 238px; border: 1px solid {{{border-c|#000}}}; margin:1px"
| style="width: 45px; height: 45px; background-color:{{{1}}}; text-align: center; font-size: {{{5|{{{id-s|14}}}}}}pt; color: {{{id-fc|black}}};"| '''{{{2}}}'''
| style="width: 45px; height: 45px; background-color:{{{1|#ffffff}}}; text-align: center; font-size: {{{5|{{{id-s|14}}}}}}pt; color: {{{id-fc|black}}};"| '''{{{2}}}'''
| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|black}}};" |{{{3}}}
| style="font-size: {{{info-s|8}}}pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|black}}};" |{{{3}}}
|}<noinclude>
|}<noinclude>


A wikipedia-style userbox
A wikipedia-style userbox. 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||[[File:imagename.jpg]]|userbox text}}</pre>
 
==Usage==
 
<pre>{{wpuserbox
|left side background color (Default is white.)
|left side [[File: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>

Latest revision as of 18:28, 28 October 2023

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

A wikipedia-style userbox. The first three parameters are unnamed, and only the second and third are mandatory. To omit the first parameter, use a blank field:

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

Usage[edit source]

{{wpuserbox
|left side background color (Default is white.)
|left side [[File: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.)
}}