Template:Userbox: Difference between revisions

From Pikipedia, the Pikmin wiki
Jump to navigation Jump to search
(Created page with '<div style="float:{{{float|left}}}; border:{{{border-s|1}}}px solid {{{1|{{{border-c|{{{id-c|#999}}}}}}}}}; margin:1px;" class="wikipediauserbox"> {| cellspacing="0" style="width...')
 
m (Text replacement - "]] </noinclude>" to "]]</noinclude>")
 
(7 intermediate revisions by 2 users not shown)
Line 6: Line 6:


{{clear}}
{{clear}}
==Use==
==Info==
This template is used to create standard userboxes.  All fields are optional.  ''id'' refers to the small box on the left, and ''info'' refers to the bigger box on the right.
This template is used to create standard userboxes, for use on user pages.
<pre>{{Userbox
|float    = left|right|none (default = left)
|border-c = border color (default = id-c)
|border-s = border width in pixels (default = 1)
|id      = id content (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-w    = id box width
|id-h    = id box height
|info    = info text
|info-c  = info background color
|info-fc  = info font color
|info-s  = info text size
|info-p  = info padding (distance between content and border)
|info-lh  = info line height</pre>


Abbreviated version:
==Parameters==
<pre>{{Userbox|border color|id background color|id content|info content}}</pre>
{| class = "wikitable"
! colspan="2" | Parameter || Mandatory || Default || Detailed description
|-
! colspan="2" | float
| No || left || CSS "float" property. This means the side of the page in which the box floats.
|-
! 1 || border-c
| No || ''<nowiki>{{{id-c}}}</nowiki>'' || Border color.
|-
! colspan="2" | border-s
| No || 1 || Border width. Do not include the "px" after the number.
|-
! 3 || id
| No || id || Content of the small box at the left.
|-
! 2 || id-c
| No || #999 || Background color of the small box at the left.
|-
! colspan="2" | id-fc
| No || black || Font color of the small box at the left.
|-
! colspan="2" | id-s
| No || 14pt || Size of the text on the small box at the left.
|-
! colspan="2" | id-p
| No || 1px || Padding space for the small box at the left.
|-
! colspan="2" | id-lh
| No || 1.25em || Line height for the small box at the left.
|-
! colspan="2" | id-w
| No || 45 || Width of the small box at the left, without the "px" after the number.
|-
! colspan="2" | id-h
| No || 45 || Height of the small box at the left, without the "px" after the number.
|-
! 3 || info
| No || <nowiki>''info''</nowiki> || Main content.
|-
! colspan="2" | info-c
| No || #EEE || Background color of the main content.
|-
! colspan="2" | info-fc
| No || black || Font color of the main content.
|-
! colspan="2" | info-s
| No || 8pt || Text size of the main content.
|-
! colspan="2" | info-p
| No || 4px || Padding distance for the main content.
|-
! colspan="2" | info-lh
| No || 1.25em || Line height for the main content.
|}


[[Category:Userboxes| ]]</noinclude>
==Skeleton==
<pre>
{{userbox
|float    =
|border-c =
|border-s =
|id      =
|id-c    =
|id-fc    =
|id-s    =
|id-p    =
|id-lh    =
|id-w    =
|id-h    =
|info    =
|info-c  =
|info-fc  =
|info-s  =
|info-p  =
|info-lh  =
}}
</pre>
 
[[Category:Pikipedia userboxes| ]]
[[Category:Templates]]</noinclude>

Latest revision as of 01:09, August 30, 2019

id info

Info

This template is used to create standard userboxes, for use on user pages.

Parameters

Parameter Mandatory Default Detailed description
float No left CSS "float" property. This means the side of the page in which the box floats.
1 border-c No {{{id-c}}} Border color.
border-s No 1 Border width. Do not include the "px" after the number.
3 id No id Content of the small box at the left.
2 id-c No #999 Background color of the small box at the left.
id-fc No black Font color of the small box at the left.
id-s No 14pt Size of the text on the small box at the left.
id-p No 1px Padding space for the small box at the left.
id-lh No 1.25em Line height for the small box at the left.
id-w No 45 Width of the small box at the left, without the "px" after the number.
id-h No 45 Height of the small box at the left, without the "px" after the number.
3 info No ''info'' Main content.
info-c No #EEE Background color of the main content.
info-fc No black Font color of the main content.
info-s No 8pt Text size of the main content.
info-p No 4px Padding distance for the main content.
info-lh No 1.25em Line height for the main content.

Skeleton

{{userbox
|float    = 
|border-c = 
|border-s = 
|id       = 
|id-c     = 
|id-fc    = 
|id-s     = 
|id-p     = 
|id-lh    = 
|id-w     = 
|id-h     = 
|info     = 
|info-c   = 
|info-fc  = 
|info-s   = 
|info-p   = 
|info-lh  = 
}}