Use template called "wikipedia", not "reference".
authorMike Taylor <mike@indexdata.com>
Mon, 12 Jan 2015 17:23:27 +0000 (17:23 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 12 Jan 2015 17:23:27 +0000 (17:23 +0000)
DEFINTELY the last part of MKWS-349.

src/mkws-widget-wikipedia.js

index 5123f10..19f8fe6 100644 (file)
@@ -1,7 +1,7 @@
 mkws.registerWidgetType('wikipedia', function() {
   mkws.promotionFunction('record').call(this);
   if (!this.config.target) this.config.target = 'wikimedia_wikipedia_single_result';
-  if (!this.config.template) this.config.template = 'reference';
+  if (!this.config.template) this.config.template = 'wikipedia';
   this.config.template_vars.paragraphs = this.config.paragraphs || 0;
   this.config.template_vars.sentences = this.config.sentences || 0;
   this.config.template_vars.credit = this.config.credit || "Wikipedia";