Template:Birthday: Difference between revisions

From Inkipedia, the Splatoon wiki
m (clean gender code)
mNo edit summary
Line 10: Line 10:
     | 0 |
     | 0 |
     Happy birthday to '''{{ROOTPAGENAME}}'''! |  
     Happy birthday to '''{{ROOTPAGENAME}}'''! |  
     This user has {{{2|{{GENDER}}}}} birthday in {{#ifeq:  
     This user has {{{2|{{Gender}}}}} birthday in {{#ifeq:  
         {{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{CURRENTYEAR}}}} - {{#time:U}}}}/60/60/24)<0}} | 1 | '''{{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{#expr:{{CURRENTYEAR}}+1}}}} - {{#time:U}}}}/60/60/24)}} days'''. | '''{{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{CURRENTYEAR}}}} - {{#time:U}}}}/60/60/24)}} days'''.}}
         {{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{CURRENTYEAR}}}} - {{#time:U}}}}/60/60/24)<0}} | 1 | '''{{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{#expr:{{CURRENTYEAR}}+1}}}} - {{#time:U}}}}/60/60/24)}} days'''. | '''{{#expr: ceil({{#expr: {{#time:U|{{{1|28-09}}}-{{CURRENTYEAR}}}} - {{#time:U}}}}/60/60/24)}} days'''.}}
     }}
     }}

Revision as of 15:11, 17 November 2022

🎂This user has their birthday in 148 days.




Usage

{{Birthday|<date>-<month>|<optional: possessive pronoun>}}

If <possessive pronoun> is not provided, the template will use the pronoun picked in the user's preferences.

Example

{{Birthday|13-8|her}}
🎂This user has her birthday in 102 days.