Template:Birthday/Core: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
Line 3: Line 3:
|{{#if:{{{name{{#var:x}}|}}}|true}}
|{{#if:{{{name{{#var:x}}|}}}|true}}
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#vardefinebdays:{{#var:bdays}}+1}}}}{{#vardefine:x|{{#expr:{{#var:x}}+1}}}}
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#vardefinebdays:{{#var:bdays}}+1}}}}{{#vardefine:x|{{#expr:{{#var:x}}+1}}}}
}}
}}{{#var:bdays}}
{{#vardefine:x|1}}{{#vardefine:check|0}}{{#vardefine:date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}It is {{#while:
{{#vardefine:x|1}}{{#vardefine:check|0}}{{#vardefine:date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}It is {{#while:
|{{#if:{{{name{{#var:x}}|}}}|true}}
|{{#if:{{{name{{#var:x}}|}}}|true}}
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#ifexpr:{{#var:x}}>1|,}} {{#ifeq:{{#var:x}}|{{#var:bdays}}|and }}{{{name{{#var:x}}}}}'s{{#vardefine:check|1}}}}{{#vardefine:x|{{#expr:{{#var:x}}+1}}}}
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#ifexpr:{{#var:x}}>1|,}} {{#ifeq:{{#var:x}}|{{#var:bdays}}|and }}{{{name{{#var:x}}}}}'s{{#vardefine:check|1}}}}{{#vardefine:x|{{#expr:{{#var:x}}+1}}}}
}}{{#ifeq:{{#var:check}}|0|no one's}} birthday today{{#ifeq:{{#var:check}}|1|!|...}}
}}{{#ifeq:{{#var:check}}|0|no one's}} birthday today{{#ifeq:{{#var:check}}|1|!|...}}

Revision as of 21:28, November 2, 2017

0 It is no one's birthday today...