Jump to content

Template:UserBox: Difference between revisions

From Detective Conan Wiki
mNo edit summary
Dark Blizzard (talk | contribs)
m Userbox was moved to UserBox
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="userboxitem" cellspacing="0" style="background: #{{{background|FFFFFF}}}; border-color: #{{{border|000000}}};"
<includeonly>{| class="userboxitem" cellspacing="0" style="background: #{{{background|FFFFFF}}}; border-color: #{{{border|000000}}};"
! [[File:{{{1}}}]]
! [[File:{{{1}}}|60px]]
| style="color: #{{{color|000000}}};" |{{{text|Custom text here.}}}
| style="color: #{{{color|000000}}};" |{{{text|Custom text here.}}}
|}<noinclude>
|}</includeonly><noinclude>
Displays a customized user box.
Displays a customized user box.


Line 9: Line 9:
The following is a list of required or optional parameters for any of the boxes:
The following is a list of required or optional parameters for any of the boxes:
<pre>
<pre>
{{UserBox|<image>|<text>
{{UserBox|<image>
| background         =   Background color of the box
| text           =  Text to add
| border             =   Border color of the box
| background     = Background color of the box
| color               =   Text color within the box
| border         = Border color of the box
| color         = Text color within the box
}}
}}
</pre>
</pre>
Line 18: Line 19:
Example:
Example:


* <nowiki>{{Userbox|Heiji Hattori 60px.jpg|This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}</nowiki>
* ''<nowiki>{{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}</nowiki>''


Which gives:
Which gives:


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


[[Category:Templates]]</noinclude>
[[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:

This user thinks Heiji is better than Shinichi.