Template:LazyTextSection: Difference between revisions
From Bodhicitta
(VSCode edit) |
(VSCode edit) |
||
| Line 1: | Line 1: | ||
<includeonly>{{#if:{{{directContent|}}}| | <includeonly>{{#if:{{{directContent|}}}| | ||
{{{header|}}}{{#if:{{{ source | }}}| | {{{header|}}}{{#if:{{{ source | }}}| | ||
{{SubpageSourceTable | {{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{{ suffix | }}}}|}} | ||
}}|}} | |||
<span class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-130}}">{{{directContent|}}}</span>|{{#ifexist:{{PAGENAME}}/{{{suffix|}}}| | <span class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-130}}">{{{directContent|}}}</span>|{{#ifexist:{{PAGENAME}}/{{{suffix|}}}| | ||
{{{header|}}}{{#if:{{{ source | }}}| | {{{header|}}}{{#if:{{{ source | }}}| | ||
{{SubpageSourceTable | {{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{{ suffix | }}}}|}} | ||
}}|}} | |||
<div class="lazy-load-section tibetan-downloadable" data-page="{{PAGENAME}}/{{{suffix|}}}" data-button-label="{{{buttonLabel|Load content}}}" data-button-class="{{{buttonClass|}}}" data-loading-label="{{{loadingLabel|Loading...}}}"></div>|}} }}</includeonly> | <div class="lazy-load-section tibetan-downloadable" data-page="{{PAGENAME}}/{{{suffix|}}}" data-button-label="{{{buttonLabel|Load content}}}" data-button-class="{{{buttonClass|}}}" data-loading-label="{{{loadingLabel|Loading...}}}"></div>|}} }}</includeonly> | ||