Template:PageTile: Difference between revisions
From Buddha-Nature
((by SublimeText.Mediawiker)) |
((by SublimeText.Mediawiker)) |
||
Line 1: | Line 1: | ||
<includeonly><noglossary><div class="bnw-page-tile pop-hover mt-1 mb-3 position-relative link-no-border"> | <includeonly><noglossary><div class="bnw-page-tile pop-hover mt-1 mb-3 position-relative link-no-border"> | ||
<div class="tile-image-wrapper">{{#widget:DivWithBackImg | <div class="tile-image-wrapper">{{#widget:DivWithBackImg | ||
|src={{#if: {{{10|}}} | |src={{#if: {{{ 10 | }}} | ||
| {{filepath:{{#titleparts:{{PAGENAME:{{{10}}}}}}}}} | | {{filepath:{{#titleparts:{{PAGENAME:{{{ 10 | }}}}}}}}} | ||
| {{#if: {{{19|}}} | | {{#if: {{{ 19 | }}} | ||
| {{filepath:{{#titleparts:{{PAGENAME:{{{19}}}}}}}|1000}} | | {{filepath:{{#titleparts:{{PAGENAME:{{{ 19 | }}}}}}}|1000}} | ||
| {{#if: {{{24|}}} | | {{#if: {{{ 24 | }}} | ||
| {{filepath:{{#titleparts:{{PAGENAME:{{{24}}}}}}}}} | | {{filepath:{{#titleparts:{{PAGENAME:{{{ 24 | }}}}}}}}} | ||
| {{#switch: {{{18}}} | | {{#switch: {{{ 18 | }}} | ||
| Tibetan Text={{filepath:Text-tile.png}} | | Tibetan Text={{filepath:Text-tile.png}} | ||
| Sanskrit Text={{filepath:Sutra.jpg}} | | Sanskrit Text={{filepath:Sutra.jpg}} | ||
| Chinese Text=https://commons.tsadra.org/images-commons/thumb/8/81/Handwritten_diamond_sutra_zhang_jizhi_song_dynasty_1253.jpg/800px-Handwritten_diamond_sutra_zhang_jizhi_song_dynasty_1253.jpg | | Chinese Text=https://commons.tsadra.org/images-commons/thumb/8/81/Handwritten_diamond_sutra_zhang_jizhi_song_dynasty_1253.jpg/800px-Handwritten_diamond_sutra_zhang_jizhi_song_dynasty_1253.jpg | ||
| {{#if: {{{11|}}}{{{2|}}}{{{4|}}}{{{5|}}}{{{8|}}}{{{12|}}}{{{17|}}}{{#show:{{{1}}}|?FirstImageURL#}} | | {{#if: {{{ 11 | }}}{{{ 2 | }}}{{{ 4 | }}}{{{ 5 | }}}{{{ 8 | }}}{{{ 12 | }}}{{{ 17 | }}}{{#show:{{{ 1 | }}}|?FirstImageURL#}} | ||
| {{#if: {{{11|}}} | | {{#if: {{{ 11 | }}} | ||
| {{{11}}} | | {{{ 11 | }}} | ||
| {{#if: {{{2|}}} | | {{#if: {{{ 2 | }}} | ||
| {{#show:{{FirstValueOfArray|{{{2}}}|;}}|?FirstImageURL#}} | | {{#show:{{FirstValueOfArray|{{{ 2 | }}}|;}}|?FirstImageURL#}} | ||
| {{#if: {{{4|}}} | | {{#if: {{{ 4 | }}} | ||
| {{#show:{{FirstValueOfArray|{{{4}}}|;}}|?FirstImageURL#}} | | {{#show:{{FirstValueOfArray|{{{ 4 | }}}|;}}|?FirstImageURL#}} | ||
| {{#if: {{{5|}}} | | {{#if: {{{ 5 | }}} | ||
| {{#show:{{FirstValueOfArray|{{{5}}}|;}}|?FirstImageURL#}} | | {{#show:{{FirstValueOfArray|{{{ 5 | }}}|;}}|?FirstImageURL#}} | ||
| {{#if: {{{8|}}} | | {{#if: {{{ 8 | }}} | ||
| {{#show:{{FirstValueOfArray|{{{8}}}|;}}|?FirstImageURL#}} | | {{#show:{{FirstValueOfArray|{{{ 8 | }}}|;}}|?FirstImageURL#}} | ||
| {{#if: {{{12|}}} | | {{#if: {{{ 12 | }}} | ||
| {{#show:{{FirstValueOfArray|{{{12}}}|;}}|?FirstImageURL#}} | | {{#show:{{FirstValueOfArray|{{{ 12 | }}}|;}}|?FirstImageURL#}} | ||
| {{#if: {{{17|}}} | | {{#if: {{{ 17 | }}} | ||
| {{{17}}} | | {{{ 17 | }}} | ||
| {{filepath:Teaching_Mudra_2_reduced_opacity.png|200}} | | {{filepath:Teaching_Mudra_2_reduced_opacity.png|200}} | ||
}} | }} | ||
Line 43: | Line 43: | ||
|classes=tile-image | |classes=tile-image | ||
}} | }} | ||
<div class="type-icon mt-auto">{{#switch: {{{18}}} | <div class="type-icon mt-auto">{{#switch: {{{ 18 | }}} | ||
|Tibetan Text | |Tibetan Text | ||
|Sanskrit Text | |Sanskrit Text | ||
|Chinese Text | |Chinese Text | ||
|Korean Text=Text | |Korean Text=Text | ||
|Dissertation={{#switch:{{#show:{{{1}}}|?subclass}} | |Dissertation={{#switch:{{#show:{{{ 1 | }}}|?subclass}} | ||
|PhD diss.=PhD Diss | |PhD diss.=PhD Diss | ||
|MA These=MA Thesis | |MA These=MA Thesis | ||
Line 54: | Line 54: | ||
|#default={{#if: {{{ watermark | }}} | |#default={{#if: {{{ watermark | }}} | ||
| {{{ watermark | }}} | | {{{ watermark | }}} | ||
| {{#if: {{{18}}} | | {{#if: {{{ 18 | }}} | ||
| {{{18}}} | | {{{ 18 | }}} | ||
| <span style="color: #000; text-align: center;"><i class="fad fa-book-dead"></i></span> | | <span style="color: #000; text-align: center;"><i class="fad fa-book-dead"></i></span> | ||
}} | }} | ||
Line 64: | Line 64: | ||
<div class="tile-content">{{#if: {{{ content | }}} | <div class="tile-content">{{#if: {{{ content | }}} | ||
|{{{ content | }}} | |{{{ content | }}} | ||
|{{#ifeq: {{{21|}}} | |{{#ifeq: {{{ 21 | }}} | ||
|Commentary | |Commentary | ||
|<div class="tile-content-header d-inline clipped-2-lines">{{#arraymap: {{{2}}} | |<div class="tile-content-header d-inline clipped-2-lines">{{#arraymap: {{{ 2 | }}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
|{{#show: @@@ |?MainNamePhon }} | |{{#show: @@@ |?MainNamePhon }} | ||
|, | |, | ||
}}: ''{{#if: {{{25|}}} | }}: ''{{#if: {{{ 25 | }}} | ||
| {{{25|}}} | | {{{ 25 | }}} | ||
| {{#if: {{{22|}}} | | {{#if: {{{ 22 | }}} | ||
| {{{22|}}} | | {{{ 22 | }}} | ||
| {{{26|}}} | | {{{ 26 | }}} | ||
}} | }} | ||
}}''</div> | }}''</div> | ||
|<div class="tile-content-header clipped-2-lines">{{#if: {{#show:{{{1}}}|?namelast}} | |<div class="tile-content-header clipped-2-lines">{{#if: {{#show:{{{ 1 | }}}|?namelast}} | ||
| {{#show:{{{1}}}|?namefirst}} {{#show:{{{1}}}|?namelast}} | | {{#show:{{{ 1 | }}}|?namefirst}} {{#show:{{{ 1 | }}}|?namelast}} | ||
| {{#if: {{{9|}}} | | {{#if: {{{ 9 | }}} | ||
| {{{9}}} | | {{{ 9 | }}} | ||
| {{#if: {{{13|}}} | | {{#if: {{{ 13 | }}} | ||
| {{{13}}} | | {{{ 13 | }}} | ||
| {{SUBPAGENAME: {{{1}}} }} | | {{SUBPAGENAME: {{{ 1 | }}} }} | ||
}} | }} | ||
}} | }} | ||
}}</div> | }}</div> | ||
}}{{#ifeq: {{{20|}}} | }}{{#ifeq: {{{ 20 | }}} | ||
| true | | true | ||
|<div class="tile-fulltext"><i class="fal fa-book-open" title="Full text available"></i></div> | |<div class="tile-fulltext"><i class="fal fa-book-open" title="Full text available"></i></div> | ||
Line 94: | Line 94: | ||
}} | }} | ||
<hr class="tile-divider"> | <hr class="tile-divider"> | ||
<div class="tile-description clipped-4-lines">{{#if: {{{27|}}} | <div class="tile-description clipped-4-lines">{{#if: {{{ 27 | }}} | ||
| {{{27|}}} | | {{{ 27 | }}} | ||
| {{#if: {{{6|}}} | | {{#if: {{{ 6 | }}} | ||
|{{{6}}} | |{{{ 6 | }}} | ||
|{{#if: {{{7|}}} | |{{#if: {{{ 7 | }}} | ||
|{{{7}}} | |{{{ 7 | }}} | ||
|{{#if: {{{14|}}} | |{{#if: {{{ 14 | }}} | ||
|{{{14}}} | |{{{ 14 | }}} | ||
|{{#if: {{{15|}}} | |{{#if: {{{ 15 | }}} | ||
|{{{15}}} | |{{{ 15 | }}} | ||
|{{#if: {{{16|}}} | |{{#if: {{{ 16 | }}} | ||
|{{{16}}} | |{{{ 16 | }}} | ||
|{{#if: {{{23|}}} | |{{#if: {{{ 23 | }}} | ||
|{{{23}}} | |{{{ 23 | }}} | ||
|{{#if: {{{3|}}} | |{{#if: {{{ 3 | }}} | ||
|<div class="font-italic">{{{3}}}</div> | |<div class="font-italic">{{{ 3 | }}}</div> | ||
|''Content missing for this item, make sure the page exists.'' | |''Content missing for this item, make sure the page exists.'' | ||
}} | }} | ||
Line 122: | Line 122: | ||
}} | }} | ||
</div> | </div> | ||
<div class="invisible">{{{3|}}} {{{13|}}} {{{29|}}} {{{7|}}} {{#ask: [[{{{1}}}]] | <div class="invisible">{{{ 3 | }}} {{{ 13 | }}} {{{ 29 | }}} {{{ 7 | }}} {{#ask: [[{{{ 1 | }}}]] | ||
|?Fulltitlechn | |?Fulltitlechn | ||
|?Fulltitledev | |?Fulltitledev | ||
Line 130: | Line 130: | ||
|?Fulltitle | |?Fulltitle | ||
|format=list | |format=list | ||
}}{{BookPeopleSubobjectData|{{{1|}}}}}{{PeopleTopicsOtherNames|{{{29|}}}}}</div>{{#ifeq: {{{1}}} | none | | {{#widget:OverlayLink | }}{{BookPeopleSubobjectData|{{{ 1 | }}}}}{{PeopleTopicsOtherNames|{{{ 2 | }}}{{{ 29 | }}}}}</div>{{#ifeq: {{{ 1 | }}} | none | | {{#widget:OverlayLink | ||
|link=/index.php/{{urlencode:{{{1}}}|WIKI}} | |link=/index.php/{{urlencode:{{{ 1 | }}}|WIKI}} | ||
|classes=no-classes | |classes=no-classes | ||
|target=_self | |target=_self | ||
|title={{{1}}} | |title={{{ 1 | }}} | ||
}} }} | }} }} | ||
</div></noglossary> | </div></noglossary> | ||
</includeonly><noinclude>{{TemplateTag}}</noinclude> | </includeonly><noinclude>{{TemplateTag}}</noinclude> |