Difference between revisions of "Template:Userbox"

From GuildWiki
Jump to: navigation, search
m (broken nowiki tag?)
m
Line 3: Line 3:
 
| style="width:45px; height:45px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}};" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
 
| style="width:45px; height:45px; background:{{{logo-background|{{{1|{{{id-c|#DDD}}}}}}}}}; text-align:center; font-size:{{{logo-size|{{{5|{{{id-s|14}}}}}}}}}pt; color:{{{logo-color|{{{id-fc|black}}}}}};" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
 
| style="font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|{{{info-fc|black}}}}}};" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
 
| style="font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:4pt; line-height:1.25em; color:{{{info-color|{{{info-fc|black}}}}}};" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
|}</div><noinclude>[[Category:Templates/Notices]]
+
|}</div><noinclude>{{/doc}}</noinclude>
{{clear}}
 
==Usage==
 
Simple:
 
<nowiki>{{userbox|ID-Color|INFO-Color|ID|INFO|Logo-text-size}}</nowiki>
 
 
Complete:
 
<nowiki>{{userbox|float=''float''|border-width=''width (px)''|border-color=''color''
 
|logo-background=''color''|logo-size=''"id" font size (pts)''|logo-color=''"id" font color''|logo=''"id"''
 
|info-background=''color''|info-color=''color''|info-size=''size (pts)''|info=''info''}}</nowiki>
 
 
==Examples==
 
{| border=1 cellspacing=0 cellpading=0
 
! width=400 | Wikitext
 
!Result
 
|-
 
|<nowiki>{{userbox|blue|lightblue|[[Image:Energy.png]]|This user likes energy.}}</nowiki>
 
|{{Userbox|blue|lightblue|[[Image:Energy.png]]|This user likes energy.}}
 
|-
 
|<nowiki>{{userbox | border-width=5 | border-color=purple | logo-background=gray | logo-size=25 | logo-color=red | logo=UGLY | info-background=blue | info-color=yellow | info-size = 10 | info=This user likes high contrast.}}</nowiki>
 
|{{userbox | border-width=5 | border-color=purple | logo-background=gray | logo-size=25 | logo-color=red | logo=UGLY | info-background=blue | info-color=yellow | info-size = 10 | info=This user likes high contrast.}}
 
|}
 
 
==Notes==
 
*All arguments are optional.
 
*A list of colors can be found at [[Wikipedia:X11 color names]]
 
</noinclude>
 

Revision as of 13:15, 22 September 2008

id info

Usage

Simple:

{{userbox|ID-Color|INFO-Color|ID|INFO|Logo-text-size}}

Complete:

{{userbox
  |float=''float''
  |border-width=''width (px)''
  |border-color=''color''
  |logo-background=''color''
  |logo-size=''"id" font size (pts)''
  |logo-color=''"id" font color''
  |logo=''"id"''
  |info-background=''color''
  |info-color=''color''
  |info-size=''size (pts)''
  |info=''info''
 }}

Examples

Wikitext Result
{{userbox|blue|lightblue|[[Image:Energy.png]]|This user likes energy.}}
Energy.png This user likes energy.
{{userbox | border-width=5 | border-color=purple | logo-background=gray | logo-size=25 | logo-color=red | logo=UGLY | info-background=blue | info-color=yellow | info-size = 10 | info=This user likes high contrast.}}
UGLY This user likes high contrast.

Notes