Template:Userbox: Difference between revisions

From Encyclopedia Dramatica
Jump to navigation Jump to search
imported>Andrés
Protected "Template:Userbox": you fuck up this and you fuck up half user pages on ED ([edit=sysop] (indefinite) [move=sysop] (indefinite))
Screamer Wiki>Lawiki1534
Created page with "{{userbox | bodyclass = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.--> | border-c = <!-..."
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; {{{div-other-param|{{{div-op|}}}}}}">
{{userbox
{| cellspacing="0" style="width:238px; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}};"
| bodyclass    = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.-->
| 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}}}}}}}}}'''
| border-c     = <!--border color (default=id-c)-->
| style="text-align:left; font-size:{{{info-size|{{{info-s|8}}}}}}pt; padding:{{{info-padding|{{{info-p|4px}}}}}}; height:{{{logo-height|{{{id-h|45}}}}}}px; line-height:{{{info-line-height|{{{info-lh|1.25em}}}}}}; color:{{{info-color|{{{info-fc|black}}}}}}; vertical-align: middle; {{{info-other-param|{{{info-op|}}}}}}" | {{{info|{{{4|''info''}}}}}}
| border-s      = <!--border width in pixels (default=1)-->
|}</div><noinclude>
| float        = <!--left|right|none (default=left)-->
 
| id            = <!--id image and/or text--> non connect
{{clear}}
| id-a          = <!--id horizontal alignment left/center/right/justify (default=center)-->
 
| id-c          = <!--id background color (default=#d0d0d0)-->
 
| id-fc         = <!--id font color (default=black)-->
Just a generic userbox template. This may also be appropriated for use in interwiki templates, etc.
| id-h          = <!--id box height in pixels (default=45)-->
 
| id-lh        = <!--id line height (default=1.25em)-->
== Arguments ==
| id-op        = <!--id other CSS parameters-->
The argument names, with their default values, if not supplied, from left to right.
| id-p          = <!--id cell padding (default=0 1px 0 0)-->
* '''float''' defaults to "'''left'''"
| id-s          = <!--id text size in points (default=14)-->
* '''border-width''' defaults to '''border-s''' or "'''1'''". should be a number, "px" is added.
| id-w          = <!--id box width in pixels (default=45)-->
* '''border-color''' defaults to '''first unnamed argument''' or '''border-c''' or '''id-c''' or "'''#999'''"
| info-class    = <!--Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, emission of microformats, etc.-->
* '''div-other-param''' final styling for the container div. defaults to '''div-op''' or empty
| info          = <!--info text and/or image-->
* '''info-background''' is the overall background color, defaults to '''second unnamed argument''' or '''info-c''' or "'''#EEE'''"
| info-a        = <!--info horizontal alignment left/center/right/justify (default=left)-->
* '''logo-background''' is the "id" background, defaults to '''first unnamed argument''' or '''id-c''' or "'''#DDD'''"
| info-c        = <!--info background color (default=#e0e0e0)-->
* '''logo-size''' is "id" font size, defaults to '''fifth unnamed argument''' or '''id-s''' or "'''14'''". value should be a number, "pt" is added.
| info-fc      = <!--info font color (default=black)-->
* '''logo-color''' is "id" color, defaults to '''id-fc''' or "'''black'''"
| info-lh       = <!--info line height (default=1.25em)-->
* '''logo''' the contents of the "id" box, defaults to '''third unnamed argument''' or '''id''' or "'''id'''"
| info-op      = <!--info other CSS parameters-->
* '''info-size''' is font size of info area, defaults to '''info-s''' or "'''8'''". should be a number, "pt" is added.
| info-p        = <!--info padding (default=0 4px 0 4px)-->
* '''info-padding''' defaults to '''info-p''' or "'''4px'''".
| info-s        = <!--info text size in points (default=8)-->
* '''logo-height''' height of the box, defaults to '''id-h''' or "'''45'''". should be a number, "px" is added.
| nocat        = <!--block page category declarations (default=false)-->
* '''info-line-height''' defaults to '''info-lh''' or "'''1.25em'''"
| usercategory = <!--user category (optional)-->
* '''info-color''' defaults to '''info-color''' or '''info-fc''' or "'''black'''".
| usercategory2 = <!--user category (optional)-->
* '''info-other-param''' final styling, defaults to '''info-op''' or empty
| usercategory3 = <!--user category (optional)-->
* '''info''' is the text for the info area, defaults to '''fourth unnamed argument''' or "'''info'''"
}}
 
== Example ==
 
  <nowiki>{{userbox|red|blue|me|you|id-s=22|info-s=14|id-fc=white|info-fc=white}}</nowiki>
 
{{userbox|red|blue|me|you|id-s=22|info-s=14|id-fc=white|info-fc=white}}
 
[[Category:User Templates|{{PAGENAME}}]]
</noinclude>

Revision as of 08:45, 20 August 2019

Template loop detected: Template:Userbox