1 mkws.registerWidgetType('wikipedia', 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 = 'wikipedia';
5 this.config.template_vars.paragraphs = this.config.paragraphs || 0;
6 this.config.template_vars.sentences = this.config.sentences || 0;
7 this.config.template_vars.credit = this.config.credit || "Wikipedia";
9 mkws.aliasWidgetType('reference', 'wikipedia');