Part of WRIS-11.
[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 <!--
10 display only the first image
11
12 {{#if md-thumburl}}
13 <img src="{{md-thumburl.[0]}}" alt="{{md-title}}">
14 {{/if}}
15 -->
16
17 <!-- multiple images -->
18 {{#each md-thumburl}}
19   <img src="{{this}}" alt="{{md-title}}">
20 {{/each}}
21
22 <h1><a href="{{md-electronic-url}}" target="_blank">{{md-title}}</a></h1>
23 {{#if md-title-remainder}}
24 <b>{{md-title-remainder}}</b>
25 {{/if}}
26 {{#if md-title-responsibility}}
27 <i>{{md-title-responsibility}}</i>
28 {{/if}}
29 {{#if md-disambiguationurl}}
30 <p class="mkws-disambiguation"
31 >Did you mean <a href="{{md-disambiguationurl}}" target="_blank"
32         >a different {{md-title}}</a>?</p>
33 {{/if}}
34 {{{mkws-paragraphs md-description paragraphs sentences}}}
35 <p class="mkws-credit mkwsCredit">{{credit}}</p>