.

Template:CURRENTWEEKDAYNAME

Wikicars, a place to share your automotive knowledge
Jump to: navigation, search

{{#if:{{#time:w|-1 day}}|{{#switch:{{#if:{{#time:w|-1 day}}|{{#switch:{{#time:w|-1 day}}|monday|mon=0|tuesday|tue=1|wednesday|wed=2|thursday|thu=3|friday|fri=4|saturday|sat=5|sunday|sun=6|{{#ifexpr:{{#time:w|-1 day}}<0|{{#ifexpr:(({{#time:w|-1 day}})round 0)!=({{#time:w|-1 day}})|{{#expr:6-(((6.5-({{#time:w|-1 day}}))round 0)mod 7)}}|{{#expr:6-(((5.5-({{#time:w|-1 day}}))round 0)mod 7)}}}}|{{#expr:(((6.5+{{#time:w|-1 day}})round 0)mod 7)}}}}}}|Missing required parameter 1=day!}} |0=Monday|1=Tuesday|2=Wednesday|3=Thursday|4=Friday|5=Saturday|6=Sunday|Incorrect required parameter 1=week day!}}|Missing required parameter 1=week day!}}