extract latest git commit ID from github, MKWS-420
[mkws-moved-to-github.git] / src / templates / wikipedia.handlebars
1 {{!
2 Paragraphs and images from a reference source such as Wikipedia
3
4 sentences - number of sentences to include
5 paragraphs - number of paragraphs to include
6 md-* - metadata fields passed through from backend
7 }}
8
9 {{#if md-title}}
10 <!--
11 display only the first image
12
13 {{#if md-thumburl}}
14 <img src="{{md-thumburl.[0]}}" alt="{{md-title}}">
15 {{/if}}
16 -->
17
18 <!-- multiple images -->
19 {{#each md-thumburl}}
20   <img src="{{this}}" alt="{{md-title}}">
21 {{/each}}
22
23 <h1><a href="{{md-electronic-url}}" target="_blank">{{md-title}}</a></h1>
24 {{#if md-title-remainder}}
25 <b>{{md-title-remainder}}</b>
26 {{/if}}
27 {{#if md-title-responsibility}}
28 <i>{{md-title-responsibility}}</i>
29 {{/if}}
30 {{#if md-disambiguationurl}}
31 <p class="mkws-disambiguation"
32 >Did you mean <a href="{{md-disambiguationurl}}" target="_blank"
33         >a different {{md-title}}</a>?</p>
34 {{/if}}
35 {{{mkws-paragraphs md-description paragraphs sentences}}}
36 <p class="mkws-credit mkwsCredit">{{credit}}</p>
37 {{else}}
38 <p>Not found in Wikipedia.</p>
39 {{/if}}