Talk:Critical Hit Cards/@comment-454133-20170827054235/@comment-454133-20170827060505

I've tested this in both Chrome and Edge, but some browsers may be stupid about the newlines in the hover text. :(  Also if you're on the mobile site it probably won't do you much good, as touchscreens are not very hover-compatible.

Took me about 2.5 to 3 hours or so to get this all working properly, so hopefully it works and does someone some good. I would have loved to be able to hover an image of the actual crit card like some wikis do, but that's way more complicated to set up, and may not even be possible on wikia currently (not sure). It would be awesome to be able to do that with all the pilots and upgrade cards... maybe some day when I'm feeling more ambitious/crazy.

I should mention, your capitalization doesn't matter for finding the crit correctly, but it will affect how the crit is displayed inline. For example: or   or . This is because I lowercase the text for the if statements... hopefully that won't encourage people to make an unholy mess, e.g. technically works but it's bad and you're bad for doing it. ;)

We can change how the inline text is formatted based on community feedback, e.g. if the color is horrifying to your eyes or it'd look better unbolded or italicized. Or we could make it into a link (e.g. to the Critical Hit page, or I could easily make a page for each crit card). That sort of asthetic stuff is not hard to adjust (fellow admins: just edit Template:Crit_Hover, but be careful to not break anything!).

So... Thoughts? And "neat but I'll never use this" is perfectly valid, I get that. :)