Template:Birthday/Core: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
m (Serpent King moved page Template:Birthday to Template:Birthday/Core: Going to use Template:Birthday for the list)
mNo edit summary
Line 1: Line 1:
{{Userbox|#99ff99|#eeffee|width=400|border-color=#99ff99; border-radius:7px|border-width=3|[[File:Cake.png|100px]]|info-size=12|info-color=black|
{| cellspacing="0" style="width:400px; background:#eeffee; border:3px solid #99ff99; border-radius:7px; margin:1px;"
| style="width:45px; height:45px; background:#99ff99; text-align:center;" | [[File:Cake.png|100px]]
| style="font-size:12pt; padding:4pt; line-height:1.25em; color:Black;" |
{{#vardefine:x|1}}{{#vardefine:bdays|0}}{{#vardefine:date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}{{#while:
{{#vardefine:x|1}}{{#vardefine:bdays|0}}{{#vardefine:date|{{CURRENTMONTHNAME}} {{CURRENTDAY}}}}{{#while:
|{{#if:{{{name{{#var:x}}|}}}|true}}
|{{#if:{{{name{{#var:x}}|}}}|true}}
Line 6: Line 8:
|{{#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: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:x|{{#expr:{{#var:x}}+1}}}}
}}{{#ifeq:{{#var:bdays}}|0|no one's}} birthday today{{#ifexpr:{{#var:bdays}}>0|!|...}}}}
}}{{#ifeq:{{#var:bdays}}|0|no one's}} birthday today{{#ifexpr:{{#var:bdays}}>0|!|...}}
|}

Revision as of 22:30, November 2, 2017

Cake.png

It is no one's birthday today...