Difference between revisions of "Template:UB Fan Character"
From Nookipedia, the Animal Crossing wiki
(→Example: change to press file) |
(Updating code so that the villager's most recent image is automatically selected. e+ only villagers and villagers with atypical file paths (e.g. Carmen (mouse)) will require manual file path specification.) |
||
Line 1: | Line 1: | ||
{{userbox | {{userbox | ||
− | | border-c = {{{ | + | | border-c = {{{2|#DAA520}}} |
− | | id = {{{ | + | | 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-c = {{{ | + | | id-c = {{{3|#e1b74c}}} |
| info = This user is a fan of '''{{{1}}}'''. | | info = This user is a fan of '''{{{1}}}'''. | ||
− | | info-c = {{{ | + | | info-c = {{{4|#F0DBA5}}} |
− | | info-fc = {{{ | + | | info-fc = {{{5|#DAA520}}} |
}}<noinclude> | }}<noinclude> | ||
{{clr}} | {{clr}} | ||
Line 18: | Line 18: | ||
===Customization=== | ===Customization=== | ||
− | + | The most recent image of a villager will appear by default. To use a specific image, or if the image is not loading correctly, the parameter "file" can be used: | |
− | <pre>{{UB Fan Villager|<Name>|< | + | <pre>{{UB Fan Villager|<Name>|<File>}}</pre> |
− | Replace ''< | + | Replace ''<File>'' with the desired image code. |
Additionally, the colors of this userbox may be customized: | Additionally, the colors of this userbox may be customized: | ||
− | <pre>{{UB Fan Villager|<Name | + | <pre>{{UB Fan Villager|<Name>|<border>|<imagebg>|<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. | 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. | ||
Line 33: | Line 33: | ||
===Example=== | ===Example=== | ||
{{UBDisplay | {{UBDisplay | ||
− | |box={{UB Fan Villager|Peanut | + | |box={{UB Fan Villager|Peanut}} |
− | |use=<nowiki>{{UB Fan Villager|Peanut | + | |use=<nowiki>{{UB Fan Villager|Peanut}}</nowiki> |
}} | }} | ||
{{UBDisplay | {{UBDisplay | ||
− | |box={{UB Fan Villager|Pierce|[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}} | + | |box={{UB Fan Villager|Pierce|file=[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}} |
− | |use=<nowiki>{{UB Fan Villager|Pierce|[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}}</nowiki> | + | |use=<nowiki>{{UB Fan Villager|Pierce|file=[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}}</nowiki> |
}} | }} | ||
[[Category:Userboxes]]</noinclude> | [[Category:Userboxes]]</noinclude> |
Revision as of 12:56, October 8, 2019
Usage
Base
{{UB Fan Villager|<Name>}}
Note: the first field must be filled out in order for the userbox to display properly.
Replace <Villager> with the name of your favorite villager in the Animal Crossing series.
Customization
The most recent image of a villager will appear by default. To use a specific image, or if the image is not loading correctly, the parameter "file" can be used:
{{UB Fan Villager|<Name>|<File>}}
Replace <File> with the desired image code.
Additionally, the colors of this userbox may be customized:
{{UB Fan Villager|<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
{{UB Fan Villager|Peanut}} |
{{UB Fan Villager|Pierce|file=[[File:Pierce NL.png|35px]]|#808080|#ffffff|#F48634|#ffffff}} |