On Friday I created a js function to insert links that
help you by asking you for a translation or by putting {{lang|}} around a selected text
(firefox only).
Maybe you want to take a look at the functions show_infobox() and insert_translation()
at
http://commons.wikimedia.org/wiki/User:Flominator/flos_functions.js