Template:LazyTextSection: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 8: | Line 8: | ||
|{{#if:{{{ VersionContentSubpage | }}} | |{{#if:{{{ VersionContentSubpage | }}} | ||
|<div class="lazy-load-section tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}" data-page="{{PAGENAME}}/{{{VersionContentSubpage|}}}" data-button-label="{{{buttonLabel|Load content}}}" data-button-class="{{{buttonClass|}}}" data-loading-label="{{{loadingLabel|Loading...}}}"></div> | |<div class="lazy-load-section tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}" data-page="{{PAGENAME}}/{{{VersionContentSubpage|}}}" data-button-label="{{{buttonLabel|Load content}}}" data-button-class="{{{buttonClass|}}}" data-loading-label="{{{loadingLabel|Loading...}}}"></div> | ||
|{{#if:{{{ PdfLink | }}} | |{{#ifexist:{{PAGENAME}}/{{{suffix|}}} | ||
|<div class="lazy-load-section tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}" data-page="{{PAGENAME}}/{{{suffix|}}}" data-button-label="{{{buttonLabel|Load content}}}" data-button-class="{{{buttonClass|}}}" data-loading-label="{{{loadingLabel|Loading...}}}"></div> | |||
|{{#if:{{{ PdfLink | }}} | |||
|<center>[[{{{ PdfLink | }}}|300px|class=rounded-lg shadow|link={{filepath:{{PAGENAME:{{{ PdfLink | }}}}}}}]]</center> | |||
| | |||
}} | |||
}} | }} | ||
}} | }} | ||
}} | | }} | | ||
}}</includeonly> | }}</includeonly> | ||