X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=src%2Fmkws-widget-reference.js;h=85c04b82ac6a0a4efb41f12cbfc71fa52adcae11;hb=f85583494332137d1adeef11191b381ab5e1348b;hp=7bccbcf77bb040ead83f772c1ba847824c415fe5;hpb=5b6e737c2fac60cce0e708b1d5573a933021bb66;p=mkws-moved-to-github.git
diff --git a/src/mkws-widget-reference.js b/src/mkws-widget-reference.js
index 7bccbcf..85c04b8 100644
--- a/src/mkws-widget-reference.js
+++ b/src/mkws-widget-reference.js
@@ -1,19 +1,7 @@
-mkws.registerWidgetType('Reference', function() {
- mkws.promotionFunction('Record').call(this);
+mkws.registerWidgetType('reference', 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';
-
- this.team.registerTemplate('Reference', '\
- \
-
\ - {{{mkws-paragraphs md-description}}}\ -
\ -'); + if (!this.config.template) this.config.template = 'reference'; + this.config.template_vars.paragraphs = this.config.paragraphs || 0; + this.config.template_vars.sentences = this.config.sentences || 0; });