Template:LazyTextSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{directContent|}}}
<includeonly>{{#if:{{{ VersionContentSubpage | }}}{{{ directContent | }}}
|{{{header|}}}{{#if:{{{ source | }}}
|{{{header|}}}
|{{SubpageSourceTable
{{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{#if:{{{ VersionContentSubpage | }}}|{{#replace:{{{ VersionContentSubpage | }}}| |_}}|{{{ suffix  | }}}}}|{{{ TsadraVersion | }}}}}{{#if: {{{ directContent | }}}
|{{{ source | }}}
|<noglossary><div class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}">{{{ directContent | }}}</div></noglossary>
|{{{ sourceDate | }}}
|{{#if:{{{ VersionContentSubpage | }}}
|{{{ PdfLink | }}}
|<noglossary><div class="lazy-load-section noglossary tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150|{{#ifeq:{{#switch:{{{ VersionLanguage | }}}
|{{{ suffix  | }}}
|Tibetan=tib
|Sanskrit=Skt
|Wylie=wyl
}}
|tib
|text-150
|
}}}}" data-page="{{PAGENAME}}/{{{ VersionContentSubpage | }}}" data-button-label="{{{ buttonLabel | Load content}}}" data-button-class="{{{ buttonClass | }}}" data-loading-label="{{{ loadingLabel |Loading... }}}"></div></noglossary>
|
}}
}}
|
}}  
}}
|{{#ifexist:{{PAGENAME}}/{{{ suffix | }}}
<span class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-130}}">{{{directContent|}}}</span>
|{{{header|}}}
|{{#ifexist:{{PAGENAME}}/{{{suffix|}}}
{{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{#if:{{{ VersionContentSubpage | }}}|{{#replace:{{{ VersionContentSubpage | }}}| |_}}|{{{ suffix  | }}}}}|{{{ TsadraVersion | }}}}}
|{{{header|}}}{{#if:{{{ source | }}}
<noglossary><div class="lazy-load-section tibetan-downloadable {{#ifeq:{{{ suffix | }}}
|{{SubpageSourceTable
|tib
|{{{ source | }}}
|text-150
|{{{ sourceDate | }}}
|{{#ifeq:{{#switch:{{{ VersionLanguage | }}}
|{{{ PdfLink | }}}
|Tibetan=tib
|{{{ suffix | }}}
|Sanskrit=Skt
|Wylie=wyl
}}
|tib
|text-150
|
}}
}}
}}" data-page="{{PAGENAME}}/{{{ suffix | }}}" data-button-label="{{{ buttonLabel | Load content}}}" data-button-class="{{{ buttonClass | }}}" data-loading-label="{{{ loadingLabel | Loading... }}}"></div></noglossary>
|{{#if:{{{ PdfLink | }}}
|{{{header|}}}
{{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{#if:{{{ VersionContentSubpage | }}}|{{#replace:{{{ VersionContentSubpage | }}}| |_}}|{{{ suffix  | }}}}}|{{{ TsadraVersion | }}}}}
<center>[[File:{{PAGENAMEE:{{{ PdfLink | }}}}}|300px|class=rounded-lg shadow|link={{filepath: {{#titleparts: {{PAGENAME: {{{ PdfLink | }}} }} }} }}]]</center>
|
|
}}
}}
<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>
}}</includeonly>

Latest revision as of 16:04, 4 September 2026