Template:Userbox: Difference between revisions
From Pikmin Fanon
No edit summary |
(Updated.) |
||
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: 50px; background: {{{codebkgd}}}; text-align: center; font-size: 14pt; color: {{{codecolor}}}" | {{{code}}} | | 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}} | {{clear}} | ||
{{todo|Edit the code to involve <code><nowiki>link=</nowiki></code> so that displayed images can not be clicked on.}} | |||
==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| ]] | [[Category:Userbox templates| ]]</noinclude> |
Revision as of 15:27, 28 April 2022
{{{code}}} | {{{msg}}} |
link= so that displayed images can not be clicked on. |
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 }} |