Template:Userbox: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m (fixed missing "=" sign)
(gonna move the margin to css so we can use the + selector)
 
(4 intermediate revisions by the same user not shown)
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; width:238px;" class="userbox {{{bodyclass|}}}">
<div style="border:{{{border-width|{{{border-s|1}}}}}}px solid {{{border-color|{{{1|{{{border-c|{{{id-c|#999}}}}}}}}}}}}; width:238px; {{#switch:{{{float|none}}}|left=float:left;|right=float:right;|center=margin:auto;}}" class="userbox {{{bodyclass|}}}">
{| style="border-collapse:collapse; width:238px; margin-bottom:0; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
{| style="border-collapse:collapse; width:238px; margin-bottom:0; background:{{{info-background|{{{2|{{{info-c|#EEE}}}}}}}}}"
{{#if:{{{logo|{{{3|{{{id<includeonly>|</includeonly>}}}}}}}}}|
{{#if:{{{logo|{{{3|{{{id<includeonly>|</includeonly>}}}}}}}}}|
Line 8: Line 8:
{{clear}}
{{clear}}
==Purpose==
==Purpose==
This template is used to create infoboxes.
This template is used to create userboxes.


==Usage==
==Usage==

Latest revision as of 17:02, February 17, 2013

id info

Purpose

This template is used to create userboxes.

Usage

{{userbox
| bodyclass     =
| border-c      = 
| border-s      = 
| float         = 
| id-class      =
| id            = 
| id-a          = 
| id-c          = 
| id-fc         = 
| id-h          =
| id-lh         = 
| id-op         = 
| id-p          = 
| id-s          = 
| id-w          = 
| info-class    = 
| info          = 
| info-a        = 
| info-c        = 
| info-fc       = 
| info-lh       = 
| info-op       = 
| info-p        = 
| info-s        = 
}}
  • bodyclass — Defines an HTML class for the entire box (Optional.)
  • border-c — border color (Optional. Default: id-c)
  • border-s — border width in pixels (Optional. Default: 1)
  • float — position to float userbox (values: left (Optional. Default: none))
  • id-class — Used to define a HTML class for the id (Optional.)
  • id — id image and/or text (suitable image size would be x45px)
  • id-a — id horizontal alignment (values: left/center/right/justify) (Optional. Default: center)
  • id-c — id background color (Optional. Default: #d0d0d0)
  • id-fc — id font color (Optional. Default: black)
  • id-h — id box height in pixels (Optional. Default: 45)
  • id-lh — id line height (Optional. Default: 1.25em)
  • id-op — id other CSS parameters (Optional.)
  • id-p — id cell padding (Optional. Default: 0 1px 0 0)
  • id-s — id text size in points (Optional. Default: 14)
  • id-w — id box width in pixels (Optional. Default: 45)
  • info-class — Defines an HTML class for info (Optional.)
  • info — info text and/or image
  • info-a — info horizontal alignment (values: left/center/right/justify) (Optional. Default: left)
  • info-c — info background color (Optional. Default: #e0e0e0)
  • info-fc — info font color (Optional. Default: black)
  • info-lh — info line height (Optional. Default: 1.25em)
  • info-op — info other CSS parameters (Optional.)
  • info-p — info padding (Optional. Default: 0 4px 0 4px)
  • info-s — info text size in points (Optional. Default: 8)

Most of these parameters can be left at their default values. But they're there in case they need to be changed. Remove parameters you don't change.