User:Stewart

From Team Fortress Wiki
Jump to: navigation, search
Stewart
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

Heavy Industry.png This user hates adverts and loves Team Fortress Wiki's adlessness.
# This user is a regular on the Team Fortress Wiki IRC channel under the nickname Stew-a
{{ }} This user knows how to edit templates and can create them too.
en-5 This user has professional knowledge of English.
REDicon.gif This user is an employee of RED.
User LordKelvin Spycheck.png This user HATES Spies.
Engineerupdatewait.png This user thoroughly enjoyed the Engineer Update!
Forsooth! This user may even be poor and/or Irish! Avert thy gaze! Verily, this unfortunate peasant hath little to no hats!
RED Level 1 Sentry Gun.png This user is buildin' a Sentry
PLR carts 2.png This user thinks their cart is faster than your cart.
User Engineer.png This user is an Engineer.
“I told ya don’t touch that darn thing!”
Steam tray.png This user has a Steam profile, which can be found here.
Backpack Jag.png This user owns a Strange Jag.
Rank: Gore-Spattered
Kills: 350


Backpack Mann Co. Supply Crate Key.png This user refuses to buy Mann Co. Supply Crate Keys as a matter of principle.
Flag of Scotland.png This breuker is Scottish, an naebody shoud think ithergates!
Steam tray.png This user dreams of making their own games.
Steam tray.png This user supports Steam as a content delivery system.
Half-life 2.png This user likes Half-Life 2.
Portal.png This user enjoys Portal.
Portal2.png This user is an active Portal 2 test subject.
PeTI Icon.png This user participates in the Perpetual Testing Initiative.


User Orange box.png This user owns The Orange Box.
L4D.png This user fought off the zombie apocalypse with a veteran, a girl, an IT guy, and a guy who hates everything.
L4D2.png This user fought off the zombie apocalypse with a gambler, a coach, a rambling mechanic, and a reporter.
Firefox Quantum Logo.png This user uses Firefox as their web browser.

}