Difference between revisions of "Template:UB Bday Shared"

From Nookipedia, the Animal Crossing wiki
(If a value for {{{1|}}} includes link markup, the template will remove it before attempting to display the image, thus correcting an issue where the template would display Blanca's face instead of the proper villager.)
m (Text replacement - "(.*?) NLWa Villager Icon.png" to "$1 NL Villager Icon.png")
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#vardefine:villager|{{#ifeq:{{#sub:{{{1|qwe}}}|0|2}}|<nowiki>[[</nowiki>|{{#replace:{{#explode:{{{1|qwe}}}|<nowiki>[[</nowiki>|1}}|<nowiki>]]</nowiki>|}}|{{{1|qwe}}}}}}}{{Userbox
+
{{Userbox
|id      = {{{file|{{#ifexist: File:{{#var:villager}} NH Villager Icon.png|[[File:{{#var:villager}} NH Villager Icon.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}} aF Character Icon.png|[[File:{{#var:villager}} aF Character Icon.png{{!}}{{{size|40px}}}]]|{{#ifexist: File:{{#var:villager}} PC icon.png|[[File:{{#var:villager}} PC icon.png{{!}}{{{size|40px}}}]]|{{#ifexist: File:{{#var:villager}} NLWa Villager Icon.png|[[File:{{#var:villager}} NLWa Villager Icon.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}} NL.png|[[File:{{#var:villager}} NL.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}} CF.png|[[File:{{#var:villager}} CF.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}}} WW.png|[[File:{{#var:villager}} WW.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}} DnMe+.png|[[File:{{#var:villager}} DnMe+.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{#var:villager}} PG.png|[[File:{{#var:villager}} PG.png{{!}}{{{size|35px}}}]]|[[File:Blanca NH Character Icon.png{{!}}32px]]}}}}}}}}}}}}}}}}}}}}}<includeonly>{{#if:{{{4|}}}|[[Category:Invalid UB Bday Shared parameter]]|}}</includeonly>
+
|id      = {{{file|{{#ifexist: File:{{{1|qwe}}} NH Villager Icon.png|[[File:{{{1|}}} NH Villager Icon.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} aF Character Icon.png|[[File:{{{1|}}} aF Character Icon.png{{!}}{{{size|40px}}}]]|{{#ifexist: File:{{{1|qwe}}} PC icon.png|[[File:{{{1|}}} PC icon.png{{!}}{{{size|40px}}}]]|{{#ifexist: File:{{{1|qwe}}} NLWa Villager Icon.png|[[File:{{{1|}}} NL Villager Icon.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} NL.png|[[File:{{{1|}}} NL.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} CF.png|[[File:{{{1|}}} CF.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} WW.png|[[File:{{{1|}}} WW.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} DnMe+.png|[[File:{{{1|}}} DnMe+.png{{!}}{{{size|35px}}}]]|{{#ifexist: File:{{{1|qwe}}} PG.png|[[File:{{{1|}}} PG.png{{!}}{{{size|35px}}}]]|[[File:Blanca NH Character Icon.png{{!}}32px]]}}}}}}}}}}}}}}}}}}}}}<includeonly>{{#if:{{{4|}}}|[[Category:Invalid UB Bday Shared parameter]]|}}</includeonly>
 
|id-c    = #000080
 
|id-c    = #000080
 
|id-s    = 10
 
|id-s    = 10

Revision as of 22:27, February 15, 2022

Blanca NH Character Icon.png This user shares their birthday with {{{1}}}.

Usage

Base

{{UB Bday Shared|<Villager>|<Personality>|<Species>}}

This userbox may be set to name a villager and your birthday. Replace <Villager> in the above code with the name of a villager that shares your birthday. <Species> and <Personality> may be left empty if desired.

Customization

The species and personality of the villager may also be added to the userbox:

{{UB Bday Shared|<Villager>|<Personality>|<Species>}}

Replace <Species> with the villager's species, and <Personality> with their personality. This information can be found on their wiki page.

Examples

Friga NH Villager Icon.png This user shares their birthday with Friga.
{{UB Bday Shared|Friga||}}
Dora NH Villager Icon.png This user shares their birthday with Dora, the mouse.
{{UB Bday Shared|Dora||mouse}}
Cousteau NH Villager Icon.png This user shares their birthday with Cousteau, the jock frog.
{{UB Bday Shared|Cousteau|jock|frog}}