User:Derik/kired tools

From MediaWiki
Jump to navigation Jump to search

Kired tools is/are a set of productivity tools developed by User:Derik. They're a formalization of his existing "hacks," packaged in a more stable format for general use.


Because the tools are loaded from a central location on a separate server, they can (at least in theory) be updated and problems patched without requiring individual users to make any changes, as well as adding new functionality. The files specified below will include only stable "finalized" code, not experimental or development code.

In theory Kired Tools can serve as a platform on which to develop style and script changes for among a limited audience (users) that could eventually be considered useful enough to offer for all users.

Functions

[edit]

Kired Tools currently (0.82) includes the following functions:

  • Footnotes
    • View footnotes inline on mouseover. ( v0.8 )
    • Highlights the clicked on footnote. ( v0.8 )
  • The Wikipedia Upload preview script — Moved to common.js after testing.
  • AJAX template list in Special:Upload. ( v0.81 )
  • A "purge" tab at the top of all pages to force the page to re-cache. ( v0.7 )
  • A "c" tab on user pages, to quickly cross-navigate to that user's contribution history. ( v0.82 )
  • Community Portal pages include a "Search Community Portal" box above the Table of Contents ( v0.82a )

Architecture

[edit]

Kired Tools is a suite of Javascript and Style changes. It uses jQuery, a lightweight Javascript library which mitigates differences in Javascript implementation between browsers while simplifying the creation of interactivity.

Kired Tools consists of two components:

  • Kired_wikifunctions (javascript)
  • kired_wikistyles (css)

The two components are not separable, as they support one another.

Installing

[edit]

Add the following to the top of your .css file, before any styles. ( User:Username/monacobook.css )


/* KIRED FUNCTIONS - Style include */
 @import "http://www.emopanda.com/tmp/kired_wikistyles.css";

Add the following to the top of your .js file, before any styles. ( User:Username/monacobook.js )

/* KIRED FUNCTIONS - Javascript Includes */
 document.write('<' + 'script language="javascript" type="text/javascript" src="');
 document.write('http://www.emopanda.com/tmp/jquery.js');
 document.write('"></' + 'script' + '>');

 document.write('<' + 'script language="javascript" type="text/javascript" src="');
 document.write('http://www.emopanda.com/tmp/jquery.tooltip.js');
 document.write('"></' + 'script' + '>');

 document.write('<' + 'script language="javascript" type="text/javascript" src="');
 document.write('http://www.emopanda.com/tmp/kired_wikifunctions.js');
 document.write('"></' + 'script' + '>');
Note: If you use a skin other that Monacobook, you will have to repeat this for the other skin.