Stewart
|
|
Basic information
|
Gender: |
Male
|
Native language: |
English
|
Age: |
22
|
Team Fortress 2
|
Favourite classes: |
Engineer
|
Favourite maps: |
Goldrush
|
Favourite weapons: |
Strange Jag
|
Contact information
|
Steam page: |
[1]
|
Hello Everyone, I'm Stewart, I'm a Comp Sci Undergrad, I'm a fan of most Valve games (HL2 + Eps, P1, P2, L4D, L4D2, and of course TF2), and most Blizzard Games (WoW, SC2). I'm a big programming fan, and can generally be found tinkering with something or other in Java, C++, PHP, etc.
Mouseover Tooltips
Mouseover Tooltips in Action
In November 2011 I wrote a simple script for the Wiki to show Item Tooltips whem hovering over links to item pages, and posted it as a suggestion. 6 months later and it never really went anywhere, so I decided to make a Greasemonkey Userscript for it. That script is available here: http://userscripts.org/scripts/show/133633 enjoy, and feel free to give me feedback on it on my Talk Page.
Those of you interested in a little technical detail - the table cell containing the loadout tooltip in the item infobox template is 'tagged' with the CSS class 'loadout-tooltip-container'. When mousing over internal wiki links, the script requests the rendered HTML of the target page, and looks for that tag. If the tag is found, the tooltip is extracted, shown, and stored in the client cache under that page's URL for 7 days, if it isn't found then that URL is stored in the cache for 7 days with a flag indicating that the page doesn't have a tooltip. Every time a link is hovered over the cache is checked, and if the page URL is already in there (and not expired) then the tooltip is used immediately (or not shown if the 'no-tooltip' flag is set) and the page isn't re-requested.
Other than that, an absolutely-positioned div is inserted into the page template to hold the tooltip, and shown/hidden/moved as appropriate.
My original plan for building the script into the wiki itself involved also 'tagging' links that should have a tooltip with a specific class using a template, but that's a fairly major change so for the userscript it simply checks all links to see if they have one, and caches the results.
Inventory
Template:Item checklist
Userboxes