Difference between revisions of "Template:UB Fav Bug"

From Nookipedia, the Animal Crossing wiki
(Created page with "<div style="float: left; border:solid crimson 2px; margin: 1px;"> {| cellspacing="0" style="width: 236px; background: #FFFF80;" | style="width: 38px; height: 43px; background: #F...")
 
m (Text replacement - "{{clr}}" to "{{clear}}")
 
(8 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="float: left; border:solid crimson 2px; margin: 1px;">
+
{{userbox
{| cellspacing="0" style="width: 236px; background: #FFFF80;"
+
| border-c = #b2b259
| style="width: 38px; height: 43px; background: #FFFF80;" | [[Image:butterly.jpg|50px]]
+
| id      = {{{3|[[File:Insect NH icon.png|47px]]}}}
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|midnightblue}}};" |<center> This user's favourite bug is the <br>'''{{{1}}}'''.</center>
+
| id-c    = #ffff80
|}</div>
+
| info    = This user's favourite bug is the '''{{{1}}}'''.
 +
| info-c  = {{#ifeq:{{{2|}}}|dark|#b2b259|#ffff80}}
 +
| info-fc = {{#ifeq:{{{2|}}}|dark|#ffff80|#7f7f40}}
 +
}}<noinclude>{{clear}}
 +
 
 +
==Usage==
 +
===Base===
 +
<pre>{{UB Fav Bug|<Bug>}}</pre>
 +
 
 +
'''''Note:''' the first field must be filled out in order for the userbox to display properly.''
 +
 
 +
This userbox may be set to name a bug. Replace ''<Bug>'' in the above code with the name of your favorite bug.
 +
 
 +
===Customization===
 +
The colors of this userbox may be set to be dark or light:
 +
<pre>{{UB Fav Bug|<Bug>|<Style>}}</pre>
 +
Replace <Style> in the above code with one of the options below to change the template.
 +
 
 +
*'''dark'''- more prominent dark colors
 +
*'''light'''- more prominent light colors <small>(Default)</small>
 +
 
 +
Additionally, the image displayed in this userbox may be customized:
 +
<pre>{{UB Fav Bug|<Bug>|<Style>|<Image>}}</pre>
 +
Replace ''<Image>'' with the desired image code.
 +
 
 +
===Examples===
 +
{{UBDisplay
 +
|box={{UB Fav Bug|Agrias Butterfly}}
 +
|use=<nowiki>{{UB Fav Bug|Agrias Butterfly}}</nowiki>
 +
}}
 +
{{UBDisplay
 +
|box={{UB Fav Bug|Atlas Beetle|dark}}
 +
|use=<nowiki>{{UB Fav Bug|Atlas Beetle|dark}}</nowiki>
 +
}}
 +
{{UBDisplay
 +
|box={{UB Fav Bug|Ladybug|light|[[File:Ladybug NH Icon.png|45px]]}}
 +
|use=<nowiki>{{UB Fav Bug|Ladybug|light|[[File:Ladybug NH Icon.png|45px]]}}</nowiki>
 +
}}
 +
[[Category:Userboxes]]</noinclude>

Latest revision as of 15:24, January 3, 2021

Bug NH Icon.png This user's favourite bug is the {{{1}}}.

Usage

Base

{{UB Fav Bug|<Bug>}}

Note: the first field must be filled out in order for the userbox to display properly.

This userbox may be set to name a bug. Replace <Bug> in the above code with the name of your favorite bug.

Customization

The colors of this userbox may be set to be dark or light:

{{UB Fav Bug|<Bug>|<Style>}}

Replace <Style> in the above code with one of the options below to change the template.

  • dark- more prominent dark colors
  • light- more prominent light colors (Default)

Additionally, the image displayed in this userbox may be customized:

{{UB Fav Bug|<Bug>|<Style>|<Image>}}

Replace <Image> with the desired image code.

Examples

Bug NH Icon.png This user's favourite bug is the Agrias Butterfly.
{{UB Fav Bug|Agrias Butterfly}}
Bug NH Icon.png This user's favourite bug is the Atlas Beetle.
{{UB Fav Bug|Atlas Beetle|dark}}
Ladybug NH Icon.png This user's favourite bug is the Ladybug.
{{UB Fav Bug|Ladybug|light|[[File:Ladybug NH Icon.png|45px]]}}