Difference between revisions of "Template:UserBox"

From Detective Conan Wiki
m (Userbox was moved to UserBox)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="userboxitem" cellspacing="0" style="background: #{{{1|FFFFFF}}}; border-color: #{{{2|000000}}};"
+
<includeonly>{| class="userboxitem" cellspacing="0" style="background: #{{{background|FFFFFF}}}; border-color: #{{{border|000000}}};"
! [[File:{{{3}}}]]
+
! [[File:{{{1}}}|60px]]
| style="color: #000000;" |{{{4|Please Insert Your Text.}}}
+
| style="color: #{{{color|000000}}};" |{{{text|Custom text here.}}}
|}
+
|}</includeonly><noinclude>
<noinclude>
+
Displays a customized user box.
Right, To make this first you must put <nowiki>{{UserBox}}</nowiki>
 
  
Then In the first Column you put the Colour of the background which can be found [http://html-color-codes.info/ here].
+
== Usage ==
  
So for instance, If we want red we would put DF0101 in the First Column Like so:
+
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>
  
<nowiki>{{UserBox|DF0101}}</nowiki>
+
Example:
  
In the second Column, it is the colour of the background Which is commonly Black which code is 000000.
+
* ''<nowiki>{{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}</nowiki>''
  
So now we have: <nowiki>{{UserBox|DF0101|000000}}</nowiki>
+
Which gives:
  
In the third Column, we have the picture file, so for instance we'll use Heiji Profile Picture's file which is Heiji Hattori Profile.jpg
+
{{UserBox|Heiji Hattori 60px.jpg|text=This user thinks [[Heiji]] is better than [[Shinichi]].|background=DF8B8B|border=D03939}}
  
Now, we have: <nowiki>{{UserBox|DF0101|000000|Heiji Hattori Profile.jpg}}</nowiki>
+
[[Category:Templates]]</noinclude>
 
 
Finally, the fourth column is the text so for instance, we'll use "This User Thinks Heiji is Better than Shinichi"
 
 
 
Now to finnish it, we now have <nowiki>{{UserBox|DF0101|000000|Heiji Hattori Profile.jpg|This User Thinks Heiji is Better than Shinichi}}<wiki>
 
 
 
 
 
 
 
Which should come put as: {{UserBox|DF0101|000000|Heiji Hattori Profile.jpg|This User Thinks Heiji is Better than Shinichi}
 

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.