Difference between revisions of "Template:Text"

From Buddha-Nature
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 185: Line 185:
 
<div class="sticky-sidemenu" id="sticky-sidemenu">
 
<div class="sticky-sidemenu" id="sticky-sidemenu">
 
<div class="sticky-sidemenu-inner mb-4 p-0" id="sticky-sidemenu-inner">{{#if: {{#external_value:AuthorRaw}}  
 
<div class="sticky-sidemenu-inner mb-4 p-0" id="sticky-sidemenu-inner">{{#if: {{#external_value:AuthorRaw}}  
| {{#arraymap:{{#external_value:AuthorRaw}}  
+
| {{#arraymap:{{#external_value:AuthorRaw}}  
| ;  
+
| ;  
| @@@  
+
| @@@  
|<div class="text-center grey-hoverlay position-relative link-no-border bnw-author-description">
+
|<div class="text-center grey-hoverlay position-relative link-no-border bnw-author-description">
{{#widget:PersonPageRoundImage
+
{{#widget:PersonPageRoundImage
|filepath={{#ifexist: @@@ | {{#show:@@@|?FirstImageURL#}} | {{filepath:Placeholder-person.png}} }}
+
|filepath={{#ifexist: @@@ | {{#show:@@@|?FirstImageURL#}} | {{filepath:Placeholder-person.png}} }}
|link=@@@
+
|link=@@@
|size=200px
+
|size=200px
|depth=2
+
|depth=2
}}
+
}}
+
<span style="font-size: 1.3em;">[[{{#if: {{#show:@@@|?MainNamePhon}} | {{#show:@@@|?MainNamePhon}} | @@@ }}]]</span><br><em>author</em>
+
<span style="font-size: 1.3em;">[[{{#if: {{#show:@@@|?MainNamePhon}} | {{#show:@@@|?MainNamePhon}} | @@@ }}]]</span><br><em>author</em>
</div>  
+
</div>  
 +
|
 +
}}
 
|  
 
|  
}}
+
}}{{#if: {{#external_value:TranslatorRaw}}  
|
+
| {{#arraymap:{{#external_value:TranslatorRaw}}  
}}{{#if: {{#external_value:TranslatorRaw}}  
+
| ;  
| {{#arraymap:{{#external_value:TranslatorRaw}}  
+
| @@@  
| ;  
+
|<div class="text-center grey-hoverlay position-relative link-no-border bnw-author-description">
| @@@  
+
{{#widget:PersonPageRoundImage
|<div class="text-center grey-hoverlay position-relative link-no-border bnw-author-description">
+
|filepath={{#ifexist: @@@ | {{#show:@@@|?FirstImageURL#}} | {{filepath:Placeholder-person.png}} }}
{{#widget:PersonPageRoundImage
+
|link=@@@
|filepath={{#ifexist: @@@ | {{#show:@@@|?FirstImageURL#}} | {{filepath:Placeholder-person.png}} }}
+
|size=200px
|link=@@@
+
|depth=2
|size=200px
+
}}
|depth=2
 
}}
 
  
<span style="font-size: 1.3em;">[[{{#if: {{#show:@@@|?MainNamePhon}} | {{#show:@@@|?MainNamePhon}} | @@@ }}]]</span><br><em>translator</em>
+
<span style="font-size: 1.3em;">[[{{#if: {{#show:@@@|?MainNamePhon}} | {{#show:@@@|?MainNamePhon}} | @@@ }}]]</span><br><em>translator</em>
</div>  
+
</div>  
 +
|
 +
}}
 
|  
 
|  
}}
+
}}{{#if: {{{ PdfFile | }}} |
|
+
<div class="bnw-text-cover mt-4 mb-4 download-pdf-overlay" style="position: relative;">{{#widget:OverlayDownloadLink|link={{filepath:{{PAGENAME:{{{ PdfFile | }}}}}}}|classes=d-flex align-items-center justify-content-center depth-1 pop-hover}}[[{{{ PdfFile | }}}|1200px|page=1|link={{filepath:{{PAGENAME:{{{ PdfFile | }}}}}}}]]
}}{{#if: {{{ PdfFile | }}} |
+
</div> | }}
<div class="bnw-text-cover mt-4 mb-4 download-pdf-overlay" style="position: relative;">{{#widget:OverlayDownloadLink|link={{filepath:{{PAGENAME:{{{ PdfFile | }}}}}}}|classes=d-flex align-items-center justify-content-center depth-1 pop-hover}}[[{{{ PdfFile | }}}|1200px|page=1|link={{filepath:{{PAGENAME:{{{ PdfFile | }}}}}}}]]
 
</div> | }}
 
  
<h3 class="grey-hoverlay mw-customtoggle-teachings">Dharma Teachings</h3>
+
<h3 class="grey-hoverlay mw-customtoggle-teachings">Dharma Teachings</h3>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-teachings">
+
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-teachings">
{{#arraymap: {{{ PagesTeachings | }}}
+
{{#arraymap: {{{ PagesTeachings | }}}
|;
+
|;
|@@@
+
|@@@
|{{#ask:[[@@@]]
+
|{{#ask:[[@@@]]
|?AuthorRaw
+
|?AuthorRaw
|?citation
+
|?citation
|?Author
+
|?Author
|?AuthorPage
+
|?AuthorPage
|?ArticleSummary
+
|?ArticleSummary
|?description
+
|?description
|?performer
+
|?performer
|?MediaSeries
+
|?MediaSeries
|?Frontcoverimg
+
|?Frontcoverimg
|link=none
+
|link=none
|format=template
+
|format=template
|template=SourceTextPageTile
+
|template=SourceTextPageTile
 +
}}
 +
|
 
}}
 
}}
|
+
</div>
}}
 
</div>
 
  
<h3>Translations & Scholarship</h3>{{#if: {{#external_value:EightyFour}} |
+
<h3 class="grey-hoverlay mw-customtoggle-scholarship">Translations & Scholarship</h3>
+
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-scholarship">{{#if: {{#external_value:EightyFour}} |
<div class="bnw-page-tile text-center rounded depth-1 pop-hover mt-1 mb-4 position-relative link-no-border" style="min-height: 0;">{{#widget:OverlayLink|link={{#external_value:EightyFour}}}}
+
[[File:84000.png|120px|link={{#external_value:EightyFour}}|84000 Project]]
+
<div class="bnw-page-tile text-center rounded depth-1 pop-hover mt-1 mb-4 position-relative link-no-border" style="min-height: 0;">{{#widget:OverlayLink|link={{#external_value:EightyFour}}}}
</div> | }}
+
[[File:84000.png|120px|link={{#external_value:EightyFour}}|84000 Project]]
 +
</div> | }}
  
{{#arraymap:{{{ PagesScholarship | }}}
+
{{#arraymap:{{{ PagesScholarship | }}}
|;
+
|;
|@@@
+
|@@@
|{{#ask:[[@@@]]
+
|{{#ask:[[@@@]]
|?AuthorRaw
+
|?AuthorRaw
|?citation
+
|?citation
|?Author
+
|?Author
|?AuthorPage
+
|?AuthorPage
|?ArticleSummary
+
|?ArticleSummary
|?description
+
|?description
|?performer
+
|?performer
|?MediaSeries
+
|?MediaSeries
|?Frontcoverimg
+
|?Frontcoverimg
|link=none
+
|link=none
|format=template
+
|format=template
|template=SourceTextPageTile
+
|template=SourceTextPageTile
}}
+
}}
|
+
|
}}
+
}}
  
 +
</div>
 
</div>
 
</div>
 
</div>
 
</div>

Revision as of 10:58, 9 August 2018