Difference between revisions of "User:Stewart/sandbox"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
This page is a proof-of-concept example of the Tooltip proposal here: [[Team_Fortress_Wiki:Discussion#Item_Tooltips_on_Item_Page_Links]]. In order for this example to work, you will need to copy the javascript from [[User:Stewart/vector.js]] into a page of the same name in your own userspace. Please note that the [[User:Stewart/Sticky_Jumper]] tooltip currently looks a little broken because it is a copy of the relevant templates and pages operating in my userspace and therefore cannot find the correct icon or name.
+
This page is a proof-of-concept example of the Tooltip proposal here: [[Team_Fortress_Wiki:Discussion#Item_Tooltips_on_Item_Page_Links]]. In order for this example to work, you will need to copy the javascript from [[User:Stewart/vector.js]] into a page of the same name in your own userspace. It is suggested that you use the following code in your vector.js:
 +
 
 +
<code>importScript("User:Stewart/vector.js");</code>
 +
 
 +
 
 +
Please note that the [[User:Stewart/Sticky_Jumper]] tooltip currently looks a little broken because it is a copy of the relevant templates and pages operating in my userspace and therefore cannot find the correct icon or name.
  
 
{{User:Stewart/ItemLink|User:Stewart/Sticky_Jumper}} Working Tooltip
 
{{User:Stewart/ItemLink|User:Stewart/Sticky_Jumper}} Working Tooltip

Revision as of 15:17, 7 November 2011

This page is a proof-of-concept example of the Tooltip proposal here: Team_Fortress_Wiki:Discussion#Item_Tooltips_on_Item_Page_Links. In order for this example to work, you will need to copy the javascript from User:Stewart/vector.js into a page of the same name in your own userspace. It is suggested that you use the following code in your vector.js:

importScript("User:Stewart/vector.js");


Please note that the User:Stewart/Sticky_Jumper tooltip currently looks a little broken because it is a copy of the relevant templates and pages operating in my userspace and therefore cannot find the correct icon or name.

User:Stewart/Sticky_Jumper Working Tooltip

User:Stewart/NonSticky_Jumper Broken Tooltip

User:Stewart/Sticky_Jumper No Tooltip