Template:Userbox/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "== Usage == <pre> {{Userbox |id = id text or image |id-c = id background color |id-fc = id font color |id-s = id text size |info = info text |...")
 
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Usage ==
== Usage ==
<pre>
<pre>
{{Userbox
{{userbox
  |id       = id text or image
| bodyclass    = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.-->
  |id-c     = id background color
| border-c      = <!--border color (default=id-c)-->
  |id-fc   = id font color
| border-s      = <!--border width in pixels (default=1)-->
  |id-s     = id text size
| float        = <!--left|right|none (default=left)-->
  |info     = info text
| id            = <!--id image and/or text--> non connect
  |info-c   = info background color
| id-a          = <!--id horizontal alignment left/center/right/justify (default=center)-->
  |info-fc = info font color
| id-c         = <!--id background color (default=#d0d0d0)-->
  |info-= info text size
| id-fc         = <!--id font color (default=black)-->
  |border-c = box color
| id-h          = <!--id box height in pixels (default=45)-->
  |border-s = border width in pixels
| id-lh        = <!--id line height (default=1.25em)-->
| id-op        = <!--id other CSS parameters-->
| id-p          = <!--id cell padding (default=0 1px 0 0)-->
| id-s         = <!--id text size in points (default=14)-->
| id-w          = <!--id box width in pixels (default=45)-->
| info-class    = <!--Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, emission of microformats, etc.-->
| info          = <!--info text and/or image-->
| info-a        = <!--info horizontal alignment left/center/right/justify (default=left)-->
| info-c       = <!--info background color (default=#e0e0e0)-->
| info-fc       = <!--info font color (default=black)-->
| info-lh      = <!--info line height (default=1.25em)-->
| info-op      = <!--info other CSS parameters-->
| info-p        = <!--info padding (default=0 4px 0 4px)-->
| info-s       = <!--info text size in points (default=8)-->
}}
}}
</pre>
</pre>
* It is suggested that you limit the size of any images in the id box to 40 pixels.
* It is suggested that you limit the size of any images in the id box to 40 pixels.
* For a list of colors and the Hex codes for them, see [[wikipedia:Web colors|this Wikipedia page]].
* For a list of colors and the Hex codes for them, see [[wikipedia:Web colors|this Wikipedia page]].
<noinclude>[[category:template documentation|{{PAGENAME}}]] [[Category:Userboxes]]</noinclude>

Latest revision as of 07:17, 7 May 2024

Usage[[edit source]]

{{userbox
| bodyclass     = <!--Adds an HTML class attribute to the entire template's HTML table, to allow for styling, emission of microformats, etc.-->
| border-c      = <!--border color (default=id-c)-->
| border-s      = <!--border width in pixels (default=1)-->
| float         = <!--left|right|none (default=left)-->
| id            = <!--id image and/or text--> non connect
| 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)-->
| id-h          = <!--id box height in pixels (default=45)-->
| id-lh         = <!--id line height (default=1.25em)-->
| id-op         = <!--id other CSS parameters-->
| id-p          = <!--id cell padding (default=0 1px 0 0)-->
| id-s          = <!--id text size in points (default=14)-->
| id-w          = <!--id box width in pixels (default=45)-->
| info-class    = <!--Adds an HTML class attribute to the "info" HTML table-row, to allow for styling, emission of microformats, etc.-->
| info          = <!--info text and/or image-->
| info-a        = <!--info horizontal alignment left/center/right/justify (default=left)-->
| info-c        = <!--info background color (default=#e0e0e0)-->
| info-fc       = <!--info font color (default=black)-->
| info-lh       = <!--info line height (default=1.25em)-->
| info-op       = <!--info other CSS parameters-->
| info-p        = <!--info padding (default=0 4px 0 4px)-->
| info-s        = <!--info text size in points (default=8)-->
}}
  • It is suggested that you limit the size of any images in the id box to 40 pixels.
  • For a list of colors and the Hex codes for them, see this Wikipedia page.