MediaWiki:Flags/code.js

/** * Name:       Flags * Description: A snippet for easy adding images of certain languages into wiki *             pages without uploading those files * Author:     KockaAdmiralac <1405223@gmail.com> */ $(function {   $(".flag-icon").each(function(supercalifragilisticexpialidocious, el) {       el = $(el); el.html(mw.html.element('img', { src: "http://wlb.wikia.com/wiki/Special:FilePath/File:Small-" + el.data.lang + ".png", title: el.text }, ""));   }.bind(this)); });