1 mkws.registerWidgetType('Reference', function() {
2 mkws.promotionFunction('Record').call(this);
3 if (!this.config.target) this.config.target = 'wikimedia_wikipedia_single_result';
4 if (!this.config.template) this.config.template = 'Reference';
6 this.team.registerTemplate('Reference', '\
7 <a href="{{md-electronic-url}}">\
10 {{#if md-title-remainder}}\
11 <b>{{md-title-remainder}}</b>\
13 {{#if md-title-responsibility}}\
14 <i>{{md-title-responsibility}}</i>\
17 <img style="float:right; margin: 0 0 1em 3em" src="{{md-thumburl}}" alt="{{md-title}}">\
23 this.team.queue("record").subscribe(function(data) {
24 that.log("got data " + $.toJSON(data));