Template talk:Skill data

From Guild Wars Wiki
Jump to navigationJump to search

For some reason (I couldn't look through that spaghetti code) some values seem to carry over to the next call in a page. See User:Shard/Sandbox for example. ~Shard User Shard Sig Icon.png 00:09, 7 September 2009 (UTC)

Nvm I fixed it. ~Shard User Shard Sig Icon.png 01:17, 7 September 2009 (UTC)
This template is sexy. User Raine R.gif Raine - talk 03:40, 8 September 2009 (UTC)
Poke took my commas out :( ~Shard User Shard Sig Icon.png 03:47, 8 September 2009 (UTC)
Commas looked ugly. :P poke | talk 09:52, 8 September 2009 (UTC)
I kinda liked the commas. -- User Halogod35 Sig.png Halogod35 14:03, 3 December 2009 (UTC)
As did I. I'm totally reverting this vandalism. User Raine R.gif is for Raine, etc. 20:56, 3 December 2009 (UTC)
Scratch that, I don't actually KNOW which point to revert to. @.@ User Raine R.gif is for Raine, etc.

Shit happened.[edit]

I'm getting whitespace before the template; I don't know exactly where it is, but I can't find it and, accordingly, can't get rid of it. — Raine Valen User Raine R.gif 22:36, 28 Jan 2012 (UTC)

Overcast[edit]

I've added an Overcast variable. It should display at the front and work exactly like Sacrifice currently does. I also left the Exhaustion variable in there since people still use the term and probably still use the exhaustion variables anyway. It was edited the way Overcast is, though, so they'll both display the same. However, I ended up leaving it as its own value since I couldn't figure out how to make it refer to and use Overcast's value instead. So it's possible to have both Overcast and Exhaustion together in the same line, though it's doubtful people will use them both together very often (if at all).

Still, if someone who knows this stuff better than I do can fix that, that'd be good. Not that it matters all that much, but it'd save some character space, I guess. xD

Also, although I left the exhaustion variables in, I removed them from the list thinking it might promote the usage of Overcast. Add them back if they need to be. And finally, ovc is current what's used for Overcast, but that's just because I thought ove looked kinda odd, so change it if something else would be better. xD ----Leviticus Lo -Talk PvE Sap 16:31, 18 October 2012 (UTC)

Ok that should have fixed the showing of exhaustion and overcast in the same line. I'm wondering why you had a redundant overwritten line in the switch statement though? Chieftain Alex 18:27, 18 October 2012 (UTC)
Well, that would be because I forgot to remove them. :P
Basically, after I sorta figured out what the lines did (which I'm still not entirely sure how they work, but it wasn't that complicated so I got the gist of it, at least), I copypasted the Sacrifice line (twice), and changed "sacrifice" to "overcast" and "exhausted".
By the way, what I meant was that it's possible to have both the Overcast and the Exhaustion variables.
Overcast
  • {{Skill data|ovc|10|15|1|30}} =

10 Overcast15 Energy1 Activation time30 Recharge time

  • {{Skill data|15|1|30|overcast=10}} =

10 Overcast15 Energy1 Activation time30 Recharge time

Exhaustion
  • {{Skill data|ex|10|15|1|30}} =

10 Overcast15 Energy1 Activation time30 Recharge time

  • {{Skill data|15|1|30|exhaustion=10}} =

10 Overcast15 Energy1 Activation time30 Recharge time

As you can see, they both work identically, so either can be used and both will likely continue to be used. The issue here is that, while it's unlikely to be anything major, they are completely separate variables, so a person could potentially have both at once.
{{Skill data|ovc|I|Want|Some|Pie|exhaustion=Now}} =

Now OvercastWant EnergySome Activation timePie Recharge time

Nevermind, seems it works just fine. And now I'm seeing what you did.
  • {{ #if: {{#var:exhaustion}} | {{ #if: {{#var:overcast}} | |
So, pretty much put both variables in, split with a bar, then use a double bar from there.. Much simpler than I realized. I figured it could've been split it into an either/or thing like that, just didn't know how to go about doing it. :P
Anyway, thanks for fixing it. :3 ----Leviticus Lo -Talk PvE Sap 19:10, 18 October 2012 (UTC)
Yeah so logically it reads:
  • Check if exhaustion exists:
    • If exhaustion exists, then check if overcast exists
      • If it does exist: do nothing. The bit between the first and second | pipes.
      • If it does not exist: display the exhaustion stuff. The bit after the second | pipe.
    • No it doesn't exist, don't display exhaustion.
Thanks for updating it :D Chieftain Alex 20:16, 18 October 2012 (UTC)