User talk:Santax/sandbox
From Guild Wars 2 Wiki
Jump to navigationJump to search
User talk:Eloc Jcg/Archive whatever... - Y0_ich_halt 20:00, 2 January 2008 (UTC)
These are on my page again, just so you know. — ク Eloc 貢 06:39, 23 January 2008 (UTC)
Mouvelian #time[edit]
Alternate day-of-season calculation. I'm assuming 90 days per season and 95 in the final season:
{{#expr:({{#time:z}} mod 90) + 1 + {{#ifexpr:({{#time:z}}+1) > 360|{{#expr:({{#time:z}} mod 360) + 1}}|0}}}}
57 —Dr Ishmael 16:27, 3 May 2014 (UTC)
- (Edit conflict) Thanks, that's much more concise! Today's like, the first time I've ever used parser functions haha. What you put above returned "3" rather than "33" as it should, but I'm guessing the
mod
function is something to do with modulation? I tried changing the argument to 90 and it gave the same as what I got though, so I think that should work now? --—Santax (talk · contribs) 16:36, 3 May 2014 (UTC) - Question: in in-universe sources it seems that the day of the month is zero-padded in the Mouvelian calendar. Is there a simple way of doing that here? --—Santax (talk · contribs) 16:42, 3 May 2014 (UTC)
- Use the
padleft
built-in function:
- Use the
{{padleft:{{#expr:({{#time:z}} mod 90) + 1 + {{#ifexpr:({{#time:z}}+1) > 360|{{#expr:({{#time:z}} mod 360) + 1}}|0}}}}|2|0}}
- —Dr Ishmael 17:15, 3 May 2014 (UTC)