Template:LazyTextSection: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{ VersionContentSubpage | }}} | <includeonly>{{#if:{{{ VersionContentSubpage | }}}{{{directContent|}}}{{{ PdfLink | }}}| | ||
{{{header|}}} | |||
{{SubpageSourceTable | |||
|{{{ source | }}} | |||
|{{{ sourceDate | }}} | |||
|{{{ PdfLink | }}} | |||
<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:{{{ VersionContentSubpage | }}} | ||
|{{#replace:{{{ VersionContentSubpage | }}}| |_}} | |||
|{{{ suffix | }}} | |||
}} | |||
|{{{ TsadraVersion | }}} | |||
}}{{#if:{{{directContent|}}} | |||
|<div class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}">{{{directContent|}}}</div> | |||
|{{#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> | |||
|{{#if:{{{ PdfLink | }}} | |||
|<center>[[{{{ PdfLink | }}}|300px|class=rounded-lg shadow|link={{filepath:{{PAGENAME:{{{ PdfLink | }}}}}}}]]</center> | |<center>[[{{{ PdfLink | }}}|300px|class=rounded-lg shadow|link={{filepath:{{PAGENAME:{{{ PdfLink | }}}}}}}]]</center> | ||
| | | | ||
}} | }} | ||
}} | }} | ||
}} | {{#ifexist:{{PAGENAME}}/{{{suffix|}}}| | |||
{{{header|}}} | |||
{{SubpageSourceTable | |||
|{{{ source | }}} | |||
|{{{ sourceDate | }}} | |||
|{{{ PdfLink | }}}|{{{ suffix | }}}|{{{ TsadraVersion | }}}}} | |||
<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> | }} | |||
}}</includeonly> | }}</includeonly> | ||