Difference between revisions of "Template:UserBox"

From Detective Conan Wiki
(Created page with '|- |<div class="userbox" style="float: left; border:solid {{{border}}} 1px; margin: 1px;"> {| cellspacing="0" style="width: 238px; background: {{{mainbkgd}}};" | class="ub-code" ...')
 
m (Userbox was moved to UserBox)
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
|-
+
<includeonly>{| class="userboxitem" cellspacing="0" style="background: #{{{background|FFFFFF}}}; border-color: #{{{border|000000}}};"
|<div class="userbox" style="float: left; border:solid {{{border}}} 1px; margin: 1px;">
+
! [[File:{{{1}}}|60px]]
{| cellspacing="0" style="width: 238px; background: {{{mainbkgd}}};"
+
| style="color: #{{{color|000000}}};" |{{{text|Custom text here.}}}
| class="ub-code" style="width: 45px; height: 45px; background: {{{codebkgd}}}; text-align: center; font-size: 14pt; font-family: Arial; color: {{{codecolor}}}" | {{{code}}}
+
|}</includeonly><noinclude>
| class="ub-msg" style="font-size:8pt;font-family:Arial;padding:4pt;line-height:1.25em;" class="plainlinks" | {{{msg}}}
+
Displays a customized user box.
|}
+
 
</div><noinclude>[[Category:Userbox Templates|{{PAGENAME}}]]</noinclude>
+
== Usage ==
 +
 
 +
The following is a list of required or optional parameters for any of the boxes:
 +
<pre>
 +
{{UserBox|<image>
 +
| text          =  Text to add
 +
| background    = Background color of the box
 +
| border        =  Border color of the box
 +
| color          =  Text color within the box
 +
}}
 +
</pre>
 +
 
 +
Example:
 +
 
 +
* ''<nowiki>{{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}</nowiki>''
 +
 
 +
Which gives:
 +
 
 +
{{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}
 +
 
 +
[[Category:Templates]]</noinclude>

Latest revision as of 10:53, 3 June 2020

Displays a customized user box.

Usage

The following is a list of required or optional parameters for any of the boxes:

{{UserBox|<image>
| text           =  Text to add
| background     =  Background color of the box
| border         =  Border color of the box
| color          =  Text color within the box
}}

Example:

  • {{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}

Which gives:

Heiji Hattori 60px.jpg This user thinks Heiji is better than Shinichi.