Difference between revisions of "Template:Userbox"

From CWCki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{| style="width: 238px; padding: 2px 1px 2px 1px; border: 2px solid {{{box-border-col|#000}}}; background: {{{box-bg-col|#ccc}}}"
{| style="width: 238px; padding: 2px 1px 2px 1px; border: 2px solid {{{box-border-col|#000}}}; background: {{{box-bg-col|#ccc}}}"
| style="width: 45px; height: 45px; padding: 1px; border: 1px solid {{{id-border-col|#ddd}}}; background: {{{id-bg-col|#ddd}}}; text-align: center; color: {{{id-col|#000}}}; font-size: {{{id-size|24px}}}; font-weight: bold;" | {{{id|ID}}}
| style="min-width: 45px; height: 45px; padding: 1px; border: 1px solid {{{id-border-col|#ddd}}}; background: {{{id-bg-col|#ddd}}}; text-align: center; color: {{{id-col|#000}}}; font-size: {{{id-size|24px}}}; font-weight: bold;" | {{{id|ID}}}
| style="width: 188px; height: 45px; border: 1px solid {{{info-border-col|#eee}}}; font-size: {{{info-size|10px}}}; line-height: {{{info-size|10px}}}; background: {{{info-bg-col|#eee}}}; text-align: left; color: {{{info-col|#000}}}; padding: 0px 2px 0px 3px;" | {{{info|Box text}}}
| style="width: 188px; height: 45px; border: 1px solid {{{info-border-col|#eee}}}; font-size: {{{info-size|10px}}}; line-height: {{{info-size|10px}}}; background: {{{info-bg-col|#eee}}}; text-align: left; color: {{{info-col|#000}}}; padding: 0px 2px 0px 3px;" | {{{info|Box text}}}
|}<noinclude>{{Usage|1= This template is for use when creating new userbox templates. It helps keep all userboxes consistent in both style and size. This template should not be substituted.
|}<noinclude>{{Usage|1= This template is for use when creating new userbox templates. It helps keep all userboxes consistent in both style and size. This template should not be substituted.

Revision as of 07:04, 31 May 2010

ID Box text

Usage

These usage notes will not be included in articles bearing this template.

This template is for use when creating new userbox templates. It helps keep all userboxes consistent in both style and size. This template should not be substituted.

Example

{{userbox
|id= [[Image:MedalOfMerit.jpg|20px|Medal of Merit]]
|id-bg-col= #fff
|info= '''Medal of Merit''': This user has done tremendous service to CWCki and deserves recognition as such.}}

Produces:

Medal of Merit Medal of Merit: This user has done tremendous service to CWCki and deserves recognition as such.

Parameters

  • id - the stuff that appears in the left box.
  • info - the stuff that appears in the right box.
  • Box colours:
    • box-border-col
    • box-bg-col
  • Left side colours and sizes:
    • id-border-col
    • id-bg-col
    • id-col
    • id-size
  • Right side colours and sizes:
    • info-border-col
    • info-bg-col
    • info-col
    • info-size