Difference between revisions of "Template:Userbox"

m (I like spans better. Less wasted white space.)
m
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="wikipediauserbox">
+
<noinclude>{{Template Overview
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
+
|usedon=userbox template
| style="width:{{{logo-width|{{{id-w|45}}}}}}px; height:{{{logo-height|{{{id-h|45}}}}}}px; 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}}}}}}; padding:{{{logo-padding|{{{id-p|1px}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}; vertical-align: middle;" |'''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
+
|purpose=create various information boxes that can be used to display various personal facts on user pages
| style="text-align:left; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4px}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}; vertical-align: middle;" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
+
|template=<nowiki>{{Userbox
|}</div><noinclude><span style="clear:both;"></span>
+
|id=
==Documentation==
+
|info=
See http://en.wikipedia.org/wiki/Template:Userbox for documentation
+
|category=
</noinclude>
+
}}
 +
</nowiki>
 +
|display={{Userbox
 +
|id=id
 +
|info=''info''
 +
}}
 +
|category=Information
 +
}}
 +
{{Template Parameter
 +
|name=id
 +
|usage=mandatory
 +
|takes=a string
 +
|denotes=a word or picture to display as the focal point of the userbox
 +
|generates=the left cell in the userbox
 +
|validvalues=Any string or any string denoting a valid image on UOGuide.
 +
}}
 +
{{Template Parameter
 +
|name=info
 +
|usage=mandatory
 +
|takes=a string or strings
 +
|denotes=a description of the personal fact that the userbox is meant to convey
 +
|generates=the text in the right cell in the userbox
 +
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=category
 +
|takes=a string
 +
|denotes=the category in which to place pages that transclude this template
 +
|generates=the userbox template's associated category
 +
|validvalues=Any string.
 +
}}
 +
</noinclude><includeonly>{| class="uoguidetable" style="height:50px; max-height:50px; max-width:240px; width:240px;"
 +
! style="font-size:19px; height:50px; padding:0px; text-align:center; vertical-align:middle; width:50px;" | {{{id|{{{1|{{{id|id}}}}}}}}}
 +
| style="font-size:11px; padding:4px; text-align:left;" | {{{info|{{{2|{{{info|''info''}}}}}}}}}
 +
|}{{#if: {{{category|}}} | {{Categorize|{{{category}}}}} }}</includeonly>

Latest revision as of 13:19, 13 March 2011

Template:Userbox is designed for use on userbox template pages to create various information boxes that can be used to display various personal facts on user pages.

Template

{{Userbox
|id=
|info=
|category=
}}

Display

id info

Parameters

id

  • Usage: Mandatory
  • Description: The id parameter takes a string denoting a word or picture to display as the focal point of the userbox. This is used to generate the left cell in the userbox.
  • Valid Value(s): Any string or any string denoting a valid image on UOGuide.

info

  • Usage: Mandatory
  • Description: The info parameter takes a string or strings denoting a description of the personal fact that the userbox is meant to convey. This is used to generate the text in the right cell in the userbox.
  • Valid Value(s): Any string or strings.

category

  • Usage: Optional
  • Description: The category parameter takes a string denoting the category in which to place pages that transclude this template. This is used to generate the userbox template's associated category.
  • Valid Value(s): Any string.