User talk:Halogod35/Theme

From Guild Wars Wiki
Jump to navigationJump to search

Shorter suggestion[edit]

christmas

- Y0_ich_halt User Y0 ich halt sig.png 14:46, 10 November 2009 (UTC)

Are you shitting me? -- User Halogod35 Sig.png Halogod35 14:57, 10 November 2009 (UTC)
Lol and all that work I've done in the past 3 days is simply pwned by you in 3 minutes? -cries a river- -- User Halogod35 Sig.png Halogod35 14:58, 10 November 2009 (UTC)
Hehe xD --SilentStorm Talk to me 15:03, 10 November 2009 (UTC)
well, if you were to celebrate a special day close to every day in the year, your solution would be the most useful one, but if there's only three or four different themes, why not make it short? :D - Y0_ich_halt User Y0 ich halt sig.png 15:12, 10 November 2009 (UTC)
I'm planning on adding my birthday, and maybe 4th of july? -- User Halogod35 Sig.png Halogod35 15:24, 10 November 2009 (UTC)
Still shorter with Y0's Way. --SilentStorm Talk to me 15:29, 10 November 2009 (UTC)
Well, the worst part is, I can barely understand it now.. Could someone add my birthday? xD -- User Halogod35 Sig.png Halogod35 15:41, 10 November 2009 (UTC)
it'll probably be easier to just explain it.
you have a switch-construct, which will do certain tasks depending of {{CURRENTMONTH}}'s value. if it's march (=3), it will move into that branch, where i put an if-construct.
this follows the structure {{#if: (requirement) | if the requirement is met, do this | otherwise do this }}.
the requirement is that {{CURRENTDAY}} is greater than 9 AND (&&) lower than 20, so the current day has to be anything from 10 to 19 and the code will output "st pat" instead of "default".
back to the switch-construct: if the month is anything that is not specified, the #default-branch is executed, which will output "default" - Y0_ich_halt User Y0 ich halt sig.png 15:52, 10 November 2009 (UTC)
btw, it is possible to do this: {{#if: true | something | something else }} (output: something), but that's really useless ^^ - Y0_ich_halt User Y0 ich halt sig.png 15:52, 10 November 2009 (UTC)
I added your Birthday for ya ;). To explain it a little further:
In December the switch Construct will execute the nested if Contruct to first check if the Day is your Birthday (I used ifeq: for that which has the following structure: {{#ifeq: value | match | do this if matched | do otherwise }} since if didnt seem to work), if thats the case it will output birthday. Otherwise it will check the second If to see if the Day is greater than 4 in which case it will output christmas. If thats not the case either it will output default. --SilentStorm Talk to me 18:14, 10 November 2009 (UTC)
Lol okay. I love you guys xD -- User Halogod35 Sig.png Halogod35 01:56, 12 November 2009 (UTC)
You're welcome :) --SilentStorm Talk to me 03:07, 12 November 2009 (UTC)