Add another Handlebars helper, "compare".
[mkws-moved-to-github.git] / src / templates / wikipedia.handlebars
index 8041441..c7a88d9 100644 (file)
@@ -6,6 +6,7 @@ paragraphs - number of paragraphs to include
 md-* - metadata fields passed through from backend
 }}
 
+{{#if md-title}}
 <!--
 display only the first image
 
@@ -26,10 +27,13 @@ display only the first image
 {{#if md-title-responsibility}}
 <i>{{md-title-responsibility}}</i>
 {{/if}}
-{{{mkws-paragraphs md-description paragraphs sentences}}}
 {{#if md-disambiguationurl}}
 <p class="mkws-disambiguation"
->Or did you mean <a href="{{md-disambiguationurl}}" target="_blank"
+>Did you mean <a href="{{md-disambiguationurl}}" target="_blank"
        >a different {{md-title}}</a>?</p>
 {{/if}}
+{{{mkws-paragraphs md-description paragraphs sentences}}}
 <p class="mkws-credit mkwsCredit">{{credit}}</p>
+{{else}}
+<p>Not found in Wikipedia.</p>
+{{/if}}