Template:Birthday: Difference between revisions
From Inkipedia, the Splatoon wiki
GloverMist (talk | contribs) m (→Usage) |
Nukleopatra (talk | contribs) m (Text replacement - "{{ userbox" to "{{Userbox") |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Userbox | ||
| border-c = #088A08 | | border-c = #088A08 | ||
| id = 🎂 | | id = 🎂 | ||
Line 10: | Line 10: | ||
| 0 | | | 0 | | ||
Happy birthday to '''{{ROOTPAGENAME}}'''! | | Happy birthday to '''{{ROOTPAGENAME}}'''! | | ||
This user has {{{2|{{ | 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'''.}} | ||
}} | }} |
Latest revision as of 13:01, 29 June 2023
🎂 | This user has their birthday in 146 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 100 days. |