Difference between revisions of "Template:Userbox"

m
m
Line 3: Line 3:
 
|purpose=create various information boxes that can be used to display various personal facts on user pages
 
|purpose=create various information boxes that can be used to display various personal facts on user pages
 
|template=<nowiki>{{Userbox
 
|template=<nowiki>{{Userbox
|float=
 
 
|id=
 
|id=
 
|info=
 
|info=
 +
|category=
 
}}
 
}}
 
</nowiki>
 
</nowiki>
|display=yes
+
|display={{{!}} class="uoguidetable" style="margin:1px; width:240px;"
}}
+
! style="font-size:19px; height:50px; padding:0px; text-align:center; vertical-align:middle; width:50px;" {{!}} id
{{Template Parameter
+
{{!}} style="font-size:11px; padding:4px; text-align:left;" {{!}} ''info''
|name=float
+
{{!}}}
|takes=a string
+
|denotes=to which side of the screen to float the userbox
+
|generates=the float property in the userbox's style code
+
|validvalues="left," "right," or "none"
+
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
 
|name=id
 
|name=id
 +
|usage=mandatory
 
|takes=a string
 
|takes=a string
 
|denotes=a word or picture to display as the focal point of the userbox
 
|denotes=a word or picture to display as the focal point of the userbox
Line 26: Line 23:
 
{{Template Parameter
 
{{Template Parameter
 
|name=info
 
|name=info
 +
|usage=mandatory
 
|takes=a string or strings
 
|takes=a string or strings
 
|denotes=a description of the personal fact that the userbox is meant to convey
 
|denotes=a description of the personal fact that the userbox is meant to convey
Line 31: Line 29:
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
[[Category:Information Templates|{{PAGENAME}}]]</noinclude><includeonly>{| class="uoguidetable" style="float:{{{float|left}}}; margin:1px; width:240px;"
+
{{Template Parameter
 +
|name=category
 +
|usage=mandatory
 +
|takes=a string
 +
|denotes=the category in which to place pages that transclude this template
 +
|generates=the this template's associated category
 +
|validvalues=Any string.
 +
}}
 +
[[Category:Information Templates|{{PAGENAME}}]]</noinclude><includeonly>{| class="uoguidetable" style="margin:1px; 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: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''}}}}}}}}}
 
| style="font-size:11px; padding:4px; text-align:left;" | {{{info|{{{2|{{{info|''info''}}}}}}}}}
|}</includeonly>
+
|}
 +
[[Category:{{{category}}}|{{PAGENAME}}]]</includeonly>

Revision as of 12:53, 11 December 2009

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

[[Category:{{{category}}} Templates|Userbox]]

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: Mandatory
  • 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 this template's associated category.
  • Valid Value(s): Any string.