Difference between revisions of "Template:UB Fan Character"

From Nookipedia, the Animal Crossing wiki
m (Adjusting template calls to reflect new name)
(Making default image PC icons, this will only work for about a third of all characters. Otherwise most recent game chracter art will be used.)
Line 1: Line 1:
 
{{userbox
 
{{userbox
 
| border-c = {{{2|#DAA520}}}
 
| border-c = {{{2|#DAA520}}}
| id      = {{{file|{{#ifexist: File:{{{1|qwe}}} NL.png|[[File:{{{1|}}} NL.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} CF.png|[[File:{{{1|}}} CF.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} WW.png|[[File:{{{1|}}} WW.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} PG.png|[[File:{{{1|}}} PG.png{{!}}35px]]|[[File:nia.png{{!}}35px]]}}}}}}}}}}}
+
| id      = {{{file|{{#ifexist: File:{{{1|qwe}}} PC icon.png|[[File:{{{1|}}} PC icon.png{{!}}40px]]|{{#ifexist: File:{{{1|qwe}}} NL.png|[[File:{{{1|}}} NL.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} CF.png|[[File:{{{1|}}} CF.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} WW.png|[[File:{{{1|}}} WW.png{{!}}35px]]|{{#ifexist: File:{{{1|qwe}}} PG.png|[[File:{{{1|}}} PG.png{{!}}35px]]|[[File:nia.png{{!}}35px]]}}}}}}}}}}}}}
 
| id-c    = {{{3|#e1b74c}}}
 
| id-c    = {{{3|#e1b74c}}}
 
| info    = This user is a fan of '''{{{1}}}'''.
 
| info    = This user is a fan of '''{{{1}}}'''.
Line 18: Line 18:
  
 
===Customization===
 
===Customization===
The most recent image of a character will appear by default. To use a specific image, or if the image is not loading correctly, the parameter "file" can be used:
+
The {{PC|short}} icon of a character will appear by default. If the villager is not in {{PC|nolink|short}}, an image for the most recent ''Animal Crossing'' title will be used. To use a specific image, or if the image is not loading correctly, the parameter "file" can be used:
 
<pre>{{UB Fan Character|<Name>|<File>}}</pre>
 
<pre>{{UB Fan Character|<Name>|<File>}}</pre>
 
Replace ''<File>'' with the desired image code.
 
Replace ''<File>'' with the desired image code.

Revision as of 14:25, October 8, 2019

Nia.png This user is a fan of {{{1}}}.

Usage

Base

{{UB Fan Character|<Name>}}

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

Replace <Name> with the name of your favorite character in the Animal Crossing series.

Customization

The Pocket Camp icon of a character will appear by default. If the villager is not in Pocket Camp, an image for the most recent Animal Crossing title will be used. To use a specific image, or if the image is not loading correctly, the parameter "file" can be used:

{{UB Fan Character|<Name>|<File>}}

Replace <File> with the desired image code.

Additionally, the colors of this userbox may be customized:

{{UB Fan Character|<Name>|<border>|<imagebg>|<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 (#008000)- the border around the userbox
  • imagebg (#008000) - the color behind the image in the left box
  • textbg (#aaffaa)- the color behind the text
  • text (#008000)- the color of the text

Example

Peanut PC Villager Icon.png This user is a fan of Peanut.
{{UB Fan Character|Peanut}}
Pierce NL.png This user is a fan of Pierce.
{{UB Fan Character|Pierce|file=[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}}