Difference between revisions of "Template:Userbox"

From Taijitu
Jump to: navigation, search
(Created page with '<div style="float:{{{float|left}}}; border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; margin:1px;" class="wikipediause…')
 
Line 11: Line 11:
 
  |template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}}
 
  |template = {{#if:{{{usercategory|}}}|[[Category:{{{usercategory}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory2|}}}|[[Category:{{{usercategory2}}}| {{BASEPAGENAME}}]]}}{{#if:{{{usercategory3|}}}|[[Category:{{{usercategory3}}}| {{BASEPAGENAME}}]]}}
 
}}}}
 
}}}}
 +
 +
 +
 +
 +
 +
==Usage==
 +
 +
<div style="width:900px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>{{userbox
 +
| bodyclass = <!-- Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc. -->
 +
| float    = <!--left|right|none (default = left)-->
 +
| border-c = <!--border color (default = id-c)-->
 +
| border-s = <!--border width in pixels (default = 1)-->
 +
| id      = <!--id text or image-->
 +
| id-c    = <!--id background color-->
 +
| id-fc    = <!--id font color-->
 +
| id-s    = <!--id text size-->
 +
| id-p    = <!--id cell padding space-->
 +
| id-lh    = <!--id line height-->
 +
| id-op    = <!--id other parameter (CSS)-->
 +
| id-w    = <!--id box width-->
 +
| id-h    = <!--id box height-->
 +
| info-class = <!-- Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, emission of microformats, etc. -->
 +
| info    = <!--info text-->
 +
| info-c  = <!--info background color-->
 +
| info-fc  = <!--info font color-->
 +
| info-s  = <!--info text size-->
 +
| info-p  = <!--info padding (distance between cell contents & cell border)-->
 +
| info-lh  = <!--info line height (or distance in between text lines)-->
 +
| info-op  = <!--info other (CSS) parameter(s)-->
 +
| nocat    = {{{nocat|}}}<!--when 'true', doesn't categorize the user-->
 +
| usercategory  = <!--user category (optional)-->
 +
| usercategory2 = <!--user category (optional)-->
 +
| usercategory3 = <!--user category (optional)-->
 +
}}</pre></div>

Revision as of 20:59, 9 July 2010

id info



Usage

{{userbox
| bodyclass = <!-- Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc. -->
| float    = <!--left|right|none (default = left)-->
| border-c = <!--border color (default = id-c)-->
| border-s = <!--border width in pixels (default = 1)-->
| id       = <!--id text or image-->
| id-c     = <!--id background color-->
| id-fc    = <!--id font color-->
| id-s     = <!--id text size-->
| id-p     = <!--id cell padding space-->
| id-lh    = <!--id line height-->
| id-op    = <!--id other parameter (CSS)-->
| id-w     = <!--id box width-->
| id-h     = <!--id box height-->
| info-class = <!-- Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, emission of microformats, etc. -->
| info     = <!--info text-->
| info-c   = <!--info background color-->
| info-fc  = <!--info font color-->
| info-s   = <!--info text size-->
| info-p   = <!--info padding (distance between cell contents & cell border)-->
| info-lh  = <!--info line height (or distance in between text lines)-->
| info-op  = <!--info other (CSS) parameter(s)-->
| nocat    = {{{nocat|}}}<!--when 'true', doesn't categorize the user-->
| usercategory  = <!--user category (optional)-->
| usercategory2 = <!--user category (optional)-->
| usercategory3 = <!--user category (optional)-->
}}