Template:Userbox

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(New page: <div style="float:{{{float|right}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="wikipediauserbox"> {|...)
Current revision (16:28, 26 July 2009) (view source)
m (1 revision)
 
(2 intermediate revisions not shown.)
Line 1: Line 1:
-
<div style="float:{{{float|right}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="wikipediauserbox">
+
<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">
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
-
| 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|1pt}}}}}}; line-height:{{{logo-line-height|{{{id-lh|1.25em}}}}}}; {{{logo-other-param|{{{id-op|}}}}}}" | '''{{{logo|{{{3|{{{id|id}}}}}}}}}'''
+
| 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}}}}}}}}}'''
-
| style="font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4pt}}}}}}; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; {{{info-other-param|{{{info-op|}}}}}}" | {{{info|{{{4|{{{info|''info''}}}}}}}}}
+
| 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''}}}}}}}}}
|}</div><noinclude>
|}</div><noinclude>
-
 
+
{{pp-template|small=yes}}
-
 
+
{{clear}}
-
 
+
{{template doc}}
-
==Purpose==
+
-
The purpose of the userbox is for users on Openwetware to display talents and skills that others may have certain needs for.  When creating a userbox, one may be inclined to create a template of the box so that others may also be able to add that userbox to their page.  One may also wish to add a category to the userbox template so that if one were to search and come across a specific area of interest then that user can click the category and see all others who are also interested (or have some expertise) in that field.
+
-
 
+
-
===An Example===
+
-
A user creates a userbox that says they are an expert in Optical Trapping (very general).  They create a category link to Optical Trapping, or Optical Tweezers, etc.  One searching for optical tweezing may come across this category and find the user who is an expert in this field and wishes to ask them a question pertaining to their research.  This person may also decide to look at others who are also interested in this section through the use of the connections provided by the category.
+
-
 
+
-
==Usage==
+
-
When you call this template you can adjust several things about the userbox.  Below is a table of what can be adjusted:
+
-
 
+
-
{| class="wikitable" border="1" style="border-collapse: collapse"
+
-
!Template Parameters
+
-
!Meaning
+
-
!Value type
+
-
|-
+
-
|border-c
+
-
|<span style="border:1px solid #333;">The '''border color''' of the userbox.</span>
+
-
|CSS color value #hex or color name)
+
-
|-
+
-
|border-s
+
-
|<span style="border:4px solid #3f3;">The '''border size''' of the userbox.</span>
+
-
|Width in pixels
+
-
|-
+
-
|id-c
+
-
|<span style="background:#efe">The '''background color''' of the id box.</span>
+
-
|CSS color value
+
-
|-
+
-
|id-s
+
-
|The font <span style="font-size:150%">'''size'''</span> of the id box.
+
-
|Size in PostScript points
+
-
|-
+
-
|id-fc
+
-
|The font <span style="color:#090">'''color'''</span> of the id box text.
+
-
|CSS color value
+
-
|-
+
-
|id-p
+
-
|The distance between border and content of id box.
+
-
|CSS padding width value. px pt
+
-
|-
+
-
|id-lh
+
-
|The distance between text lines of id box.
+
-
|CSS relative line height/length value.  em
+
-
|-
+
-
|info-c
+
-
|<span style="background:#efe">The background color of info box.</span>
+
-
|CSS color value
+
-
|-
+
-
|info-s
+
-
|The font <span style="font-size:150%">'''size'''</span> of info box.
+
-
|Size in PostScript points
+
-
|-
+
-
|info-fc
+
-
|The font <span style="color:#090">'''color'''</span> of info box.
+
-
|CSS color value
+
-
|-
+
-
|info-p
+
-
|The distance between border and content of info box.
+
-
|CSS padding width value. px, pt
+
-
|-
+
-
|info-lh
+
-
|The distance between text lines of info box.
+
-
|CSS relative line height/length value. em
+
-
|-
+
-
|id
+
-
|This is the '''content''' of the id box.
+
-
|Free-form
+
-
|-
+
-
|info
+
-
|This is the '''content''' of info box.
+
-
|Free-form
+
-
|}
+
-
 
+
-
 
+
-
So when you call this template you would type:
+
-
 
+
-
<pre><nowiki>
+
-
{{Userbox |border-c= |border-s= |id-c= |id-s= |id-fc= |info-c= |info-s= |info-fc= |id= |info=}}
+
-
</nowiki></pre>
+
-
 
+
-
And just put in what you like after all the equal signs, as per the table above.  '''Note''': Not all variables are defined in the above template!
+
-
 
+
</noinclude>
</noinclude>

Current revision

id info

Template:Template doc

Personal tools