Difference between revisions of "Template:UB Age"

From Nookipedia, the Animal Crossing wiki
m (Added Category:Userboxes)
(Template will no longer appear if value entered is less than 13. Will also add the page to administrative Category:Age check required.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div style="float: left; border:solid navy 1px; margin: 1px;">
+
{{#ifexpr:{{{1|13}}}<13|[[Category:Age check required]]|{{userbox
{| cellspacing="0" style="width: 238px; background: skyblue;"
+
| border-c = {{{2|#5E90A4}}}
| style="width: 45px; height: 45px; background: Black; text-align: center; font-size:12pt; color: {{{id-fc|white}}};" | <font color="white">'''{{{1}}}'''</font>
+
| id      = {{{1}}}
| style="font-size: 8pt; padding: 4pt; line-height: 1.25em; color: {{{info-fc|black}}};" | This user is {{{1}}} years old.
+
| id-c    = {{{3|#6CA4BC}}}
|}</div><noinclude>[[Category:Userboxes]]</noinclude>
+
| id-fc   = {{{4|#000000}}}
 +
| info    = This user is {{{1}}} years old.
 +
| info-c  = {{{5|#87CEEB}}}
 +
| info-fc   = {{{6|#000000}}}
 +
}}}}<noinclude>
 +
{{clear}}
 +
 
 +
==Usage==
 +
===Base===
 +
<pre>{{UB Age|<Age>}}</pre>
 +
 
 +
'''''Note:''' the first field must be filled out in order for the userbox to display properly.''
 +
 
 +
This userbox may be set to display the user's age. Replace ''<Age>'' in the above code with the age to be displayed.
 +
 
 +
===Customization===
 +
The colors of this userbox may be customized:
 +
<pre>{{UB Age|<Age>|<border>|<numberbg>|<number>|<textbg>|<text>}}</pre>
 +
Replace the appropriate fields with the desired color. If you don't want to change one of the colors, use its default, which is listed below next to the field.
 +
 
 +
*'''border''' (#5E90A4)- the border around the userbox
 +
*'''numberbg''' (#6CA4BC) - the background behind the age in the left box
 +
*'''number''' (#000000) - the color of the age in the left box
 +
*'''textbg''' (#87CEEB)- the color behind the text
 +
*'''text''' (#000000)- the color of the text
 +
 
 +
===Example===
 +
{{UBDisplay
 +
|box={{UB Age|15}}
 +
|use=<nowiki>{{UB Age|15}}</nowiki>
 +
}}
 +
{{UBDisplay
 +
|box={{UB Age|14|#000080|#323299|#FFFFFF|#4C4CA6|#FFFFFF}}
 +
|use=<nowiki>{{UB Age|14|#000080|#323299|#FFFFFF|#4C4CA6|#FFFFFF}}</nowiki>
 +
}}
 +
[[Category:Userboxes]]</noinclude>

Latest revision as of 22:48, December 10, 2021

{{{1}}} This user is {{{1}}} years old.

Usage

Base

{{UB Age|<Age>}}

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

This userbox may be set to display the user's age. Replace <Age> in the above code with the age to be displayed.

Customization

The colors of this userbox may be customized:

{{UB Age|<Age>|<border>|<numberbg>|<number>|<textbg>|<text>}}

Replace the appropriate fields with the desired color. If you don't want to change one of the colors, use its default, which is listed below next to the field.

  • border (#5E90A4)- the border around the userbox
  • numberbg (#6CA4BC) - the background behind the age in the left box
  • number (#000000) - the color of the age in the left box
  • textbg (#87CEEB)- the color behind the text
  • text (#000000)- the color of the text

Example

15 This user is 15 years old.
{{UB Age|15}}
14 This user is 14 years old.
{{UB Age|14|#000080|#323299|#FFFFFF|#4C4CA6|#FFFFFF}}