Template:Birthday/Core: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
No edit summary
mNo edit summary
Tag: Mobile edit
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{| cellspacing="0" style="float:{{{float|none}}}; width:300px; background:#eeffee; border:3px solid #99ff99; border-radius:7px; margin:{{#if:{{{center|}}}|1em auto 1em auto|1px}};"
{| cellspacing="0" style="float:{{{float|none}}}; width:300px; background:#eeffee; border:3px solid #99ff99; border-radius:7px; margin:{{#if:{{{center|}}}|1em auto 1em auto|1px}};"
| style="width:45px; height:45px; background:#99ff99; text-align:center;" | [[File:Cake.png|50px]]
| style="padding:5px; width:45px; height:45px; background:#99ff99; text-align:center;" | [[File:Cake.png|50px]]
| style="font-size:8pt; padding:4pt; line-height:1.25em; color:Black;" |
| style="font-size:8pt; 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:
Line 9: Line 9:
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#ifexpr:{{#var:bdays}}>1|,}} {{#ifeq:{{#var:x}}|{{#var:bdays}}|{{#ifexpr:{{#var:bdays}}>1|and }}}}[[User:{{{name{{#var:x}}}}}|{{{name{{#var:x}}}}}]]'s}}{{#vardefine:x|{{#expr:{{#var:x}}+1}}}}
|{{#ifeq:{{{day{{#var:x}}}}}|{{#var:date}}|{{#ifexpr:{{#var:bdays}}>1|,}} {{#ifeq:{{#var:x}}|{{#var:bdays}}|{{#ifexpr:{{#var:bdays}}>1|and }}}}[[User:{{{name{{#var:x}}}}}|{{{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|!|...}}
|}
|}<noinclude>[[Category:Template documentation]]</noinclude>

Latest revision as of 09:20, July 5, 2020

Cake.png

It is no one's birthday today...