projects
/
mkws-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handlebars 3.0.3
[mkws-moved-to-github.git]
/
src
/
templates
/
wikipedia.handlebars
diff --git
a/src/templates/wikipedia.handlebars
b/src/templates/wikipedia.handlebars
index
b2a92cb
..
c7a88d9
100644
(file)
--- a/
src/templates/wikipedia.handlebars
+++ b/
src/templates/wikipedia.handlebars
@@
-6,6
+6,7
@@
paragraphs - number of paragraphs to include
md-* - metadata fields passed through from backend
}}
md-* - metadata fields passed through from backend
}}
+{{#if md-title}}
<!--
display only the first image
<!--
display only the first image
@@
-19,12
+20,20
@@
display only the first image
<img src="{{this}}" alt="{{md-title}}">
{{/each}}
<img src="{{this}}" alt="{{md-title}}">
{{/each}}
-<h1><a href="{{md-electronic-url}}">{{md-title}}</a></h1>
+<h1><a href="{{md-electronic-url}}" target="_blank">{{md-title}}</a></h1>
{{#if md-title-remainder}}
<b>{{md-title-remainder}}</b>
{{/if}}
{{#if md-title-responsibility}}
<i>{{md-title-responsibility}}</i>
{{/if}}
{{#if md-title-remainder}}
<b>{{md-title-remainder}}</b>
{{/if}}
{{#if md-title-responsibility}}
<i>{{md-title-responsibility}}</i>
{{/if}}
+{{#if md-disambiguationurl}}
+<p class="mkws-disambiguation"
+>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>
{{{mkws-paragraphs md-description paragraphs sentences}}}
<p class="mkws-credit mkwsCredit">{{credit}}</p>
+{{else}}
+<p>Not found in Wikipedia.</p>
+{{/if}}