Template:LazyTextSection: Difference between revisions

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

Latest revision as of 16:04, 4 September 2026