Template:Userbox/doc: Difference between revisions

From IdleOn MMO Wiki
(Created page with "{{Documentation subpage}} {{Lua|Userbox}} The userbox template can be used to quickly create a userbox for display on a user page without having to know HTML or Wikitable syntax. These are usually used with {{t|Userbox list}}, but it is not required. Category:Userboxes is automatically included on template pages that use this template. *All userboxes can be found Special:PrefixIndex/{{FULLPAGENAME}}/|h...")
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{{Lua|Userbox}}
The [[Template:userbox|userbox template]] can be used to quickly create a [[Project:Userboxes|userbox]] for display on a [[Special:MyPage|user page]] without having to know HTML or Wikitable syntax. These are usually used with {{t|Userbox list}}, but it is not required.
[[:Category:Userboxes]] is automatically included on template pages that use this template.
*All userboxes can be found [[Special:PrefixIndex/{{FULLPAGENAME}}/|here]].
Skins are defined at [[Module:Userbox/Skins]].
* Use {{Orange|''skin{{=}}Retro''}} to apply the old background.
===Usage===
===Usage===
<pre>
<pre>

Latest revision as of 12:02, 6 February 2023

Usage

{{Userbox
|skin            = <!-- use a defined skin (optional) --><!--
                   IMPORTANT: When creating a userbox template, always include:
                   |skin = {{{skin|}}} -->

|float           = <!--[left|right|none] (default=left)-->
|border-width    = <!--border width in pixels (default=3)-->
|border-color    = <!--border color (default=#292929)-->
|height          = <!--user box height in pixels (default=45)-->
|class           = <!--any classes for the userbox (default=none)-->

|id              = <!--id image and/or text-->
|id-width        = <!--id box width in pixels (default=90)-->
|id-color        = <!--id font color (default=white)-->
|id-background   = <!--id background color (default=transparent)-->
|id-align        = <!--id horizontal alignment [left|center|right|justify] (default=center)-->
|id-size         = <!--id text size in pixels (number only) (default=14)-->
|id-padding      = <!--id padding (default=0 .9em)-->
|id-css          = <!--other CSS parameters for id-->

|info            = <!--info text and/or image-->
|info-color      = <!--info font color (default=black)-->
|info-background = <!--info background color (default=#EEE)-->
|info-align      = <!--info horizontal alignment [left|center|right|justify] (default=left)-->
|info-size       = <!--info text size in pixels (number only) (default=12)-->
|info-padding    = <!--info padding (default=0 .7em)-->
|info-css        = <!--other CSS parameters for info-->
}}