Template:Userbox: Difference between revisions
From Pikmin Fanon
m (1 revision: Ranks Page, User Box Template) |
m (Oops.) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="float: left; border:solid {{{border}}} 1px; margin: 1px;"> | <div style="float: left; border:solid {{{border}}} 1px; margin: 1px;"> | ||
{| cellspacing="0" style="width: | {| cellspacing="0" style="width: 240px; height: 50px; font-family: Arial; background: {{{mainbkgd}}};" | ||
| style="width: | | style="width: 50px; background: {{{codebkgd}}}; text-align: center; font-size: 14pt; color: {{{codecolor}}}" | {{{code}}} | ||
| style="font-size:8pt; padding:4pt; line-height:1.25em; color: {{{msgcolor}}}" class="plainlinks" | {{{msg}}} | | style="font-size:8pt; padding:4pt; line-height:1.25em; color: {{{msgcolor}}}" class="plainlinks" | {{{msg}}} | ||
|}</div> | |}</div><noinclude> | ||
<noinclude> | |||
{{ | {{clear}} | ||
< | {{todo| | ||
*Edit the code to involve <code><nowiki>link=</nowiki></code> so that displayed images can not be clicked on. | |||
*Make the template able to be even more customizable, like {{t|box}}.}} | |||
==Info== | |||
This is the base template for all [[:Category:Userbox templates|userboxes]]. It places a customizable userbox, to be used on user pages only, and between {{t|userboxtop}} and {{t|userboxbottom}}. | |||
==Parameters== | |||
{| class = "wikitable" | |||
! Parameter || Mandatory || Default || Detailed description | |||
|- | |||
! border | |||
| No || Black || Border color. | |||
|- | |||
! codebkgd | |||
| No || Transparent || The color to be displayed on the left side. | |||
|- | |||
! mainbkgd | |||
| No || Transparent || The color to be displayed on the right side. | |||
|- | |||
! code | |||
| No || Transparent || The value, usually an image link, to be displayed on the left side. | |||
|- | |||
! msg | |||
| No || Transparent || The value to be displayed on the right side. | |||
|- | |||
! codecolor | |||
| No || Transparent || The color of what is to be displayed on the left. Does not affect images. | |||
|- | |||
! msgcolor | |||
| No || Black || The color of the message. | |||
|} | |||
==Skeleton== | |||
<pre> | |||
{{userbox | {{userbox | ||
|border= | |border= | ||
|codebkgd= | |||
|mainbkgd= | |mainbkgd= | ||
| | |code= | ||
|msg= | |||
|codecolor= | |codecolor= | ||
|msgcolor= | |msgcolor= | ||
|code= | }} | ||
|msg= | </pre> | ||
}}</ | |||
==Examples== | |||
{| class = "wikitable" | |||
! Code || Result | |||
|- | |||
| <pre>{{userbox | |||
|border=blue | |||
|codebkgd=pink | |||
|mainbkgd=red | |||
|code=[[File:Wiki.png|50px]] Fanon! | |||
|msg=This is an example userbox. | |||
|codecolor=green | |||
|msgcolor=yellow | |||
}}</pre> | |||
| {{userbox|border=blue|codebkgd=pink|mainbkgd=red|code=[[File:Wiki.png|50px]] Fanon!|msg=This is an example userbox.|codecolor=green|msgcolor=yellow}} | |||
|} | |||
[[Category:Userbox templates| ]]</noinclude> |
Latest revision as of 19:10, 25 May 2022
{{{code}}} | {{{msg}}} |
|
Info
This is the base template for all userboxes. It places a customizable userbox, to be used on user pages only, and between {{userboxtop}} and {{userboxbottom}}.
Parameters
Parameter | Mandatory | Default | Detailed description |
---|---|---|---|
border | No | Black | Border color. |
codebkgd | No | Transparent | The color to be displayed on the left side. |
mainbkgd | No | Transparent | The color to be displayed on the right side. |
code | No | Transparent | The value, usually an image link, to be displayed on the left side. |
msg | No | Transparent | The value to be displayed on the right side. |
codecolor | No | Transparent | The color of what is to be displayed on the left. Does not affect images. |
msgcolor | No | Black | The color of the message. |
Skeleton
{{userbox |border= |codebkgd= |mainbkgd= |code= |msg= |codecolor= |msgcolor= }}
Examples
Code | Result |
---|---|
{{userbox |border=blue |codebkgd=pink |mainbkgd=red |code=[[File:Wiki.png|50px]] Fanon! |msg=This is an example userbox. |codecolor=green |msgcolor=yellow }} |