Difference between revisions of "User:Stewart"
m (Created page with "{{User infobox | title = Stewart | image = User_Stewart_Avatar.jpg | gender = Male | language = English | age = 22 | favmap = Goldrush | favclass = Engineer | favweap =...") |
|||
Line 17: | Line 17: | ||
==Mouseover Tooltips== | ==Mouseover Tooltips== | ||
− | 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 | + | [[File:User_Stewart_Hover_Tooltip.jpg|left|thumb|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 [[Team_Fortress_Wiki:Discussion/Archive_16#Item_Tooltips_on_Item_Page_Links|posted it as a suggestion]]. 6 months later and it never really went anywhere, so I decided to make a [https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/ 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 [[User Talk:Stewart|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. | ||
<div style="clear:both"></div> | <div style="clear:both"></div> | ||
Line 26: | Line 31: | ||
==Userboxes== | ==Userboxes== | ||
− | {{User Adlessness}}{{User IRC regular|Stew-a}}{{User Templater}}{{User Babel|en|5}}{{User RED Employee}}{{User Spy Check}}{{User Engineer update}}{{User Unfortunate}}{{User Buildin}}{{User Loves Payload Race}}{{User Engineer}}{{User Steam|Stewart}}{{User StrangeRank|rank=10|item=Jag}}{{User Wiki Nokeys}}{{User Scottish}}{{User Gamemakerdream}}{{User Steam supporter}}{{User HL2}}{{User Portal}}{{User Portal2}}{{User PeTI}}{{User Orange Box}}{{User Garrysmod}}{{User Left 4 Dead}}{{User Left 4 Dead 2}}{{User Doctor Who|But actually from a non-linear, non-subjective point of view it's actually a big ball of wibbly wobbly... timey wimey... stuff.}}{{User Firefox}} | + | {{User Adlessness}} |
+ | {{User IRC regular|Stew-a}} | ||
+ | {{User Templater}} | ||
+ | {{User Babel|en|5}} | ||
+ | {{User RED Employee}} | ||
+ | {{User Spy Check}} | ||
+ | {{User Engineer update}} | ||
+ | {{User Unfortunate}} | ||
+ | {{User Buildin}} | ||
+ | {{User Loves Payload Race}} | ||
+ | {{User Engineer}} | ||
+ | {{User Steam|Stewart}} | ||
+ | {{User StrangeRank|rank=10|item=Jag}} | ||
+ | {{User Wiki Nokeys}} | ||
+ | {{User Scottish}} | ||
+ | {{User Gamemakerdream}} | ||
+ | {{User Steam supporter}} | ||
+ | {{User HL2}} | ||
+ | {{User Portal}} | ||
+ | {{User Portal2}} | ||
+ | {{User PeTI}} | ||
+ | {{User Orange Box}} | ||
+ | {{User Garrysmod}} | ||
+ | {{User Left 4 Dead}} | ||
+ | {{User Left 4 Dead 2}} | ||
+ | {{User Doctor Who|But actually from a non-linear, non-subjective point of view it's actually a big ball of wibbly wobbly... timey wimey... stuff.}} | ||
+ | {{User Firefox}} |
Revision as of 10:57, 17 May 2012
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
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
Userboxes
# | 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. |
![]() |
This user HATES Spies. |
![]() |
This user thoroughly enjoyed the Engineer Update! |
![]() |
This user is an Engineer. “I told ya don’t touch that darn thing!” |
![]() |
This user has a Steam profile, which can be found here. |
![]() |
This user owns a Strange Jag. Rank: Gore-Spattered Kills: 350 |
![]() |
This user refuses to buy Mann Co. Supply Crate Keys as a matter of principle. |
![]() |
This user enjoys Portal. |
![]() |
This user is an active Portal 2 test subject. |
![]() |
This user participates in the Perpetual Testing Initiative. |
g | This user plays Garry's Mod. |
![]() |
This user fought off the zombie apocalypse with a veteran, a girl, an IT guy, and a guy who hates everything. |
![]() |
This user fought off the zombie apocalypse with a gambler, a coach, a rambling mechanic, and a reporter. |
![]() |
This user enjoys watching Doctor Who. "But actually from a non-linear, non-subjective point of view it's actually a big ball of wibbly wobbly... timey wimey... stuff." |