Template:LazyTextSection: Difference between revisions

From Bodhicitta
(VSCode edit)
(VSCode edit)
 
(51 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{directContent|}}}|
<includeonly>{{#if:{{{ VersionContentSubpage | }}}{{{ directContent | }}}
{{{header|}}}
|{{{header|}}}
{{#if:{{{ FullTextSource | }}}{{{ SktSource | }}}|
{{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{#if:{{{ VersionContentSubpage | }}}|{{#replace:{{{ VersionContentSubpage | }}}| |_}}|{{{ suffix  | }}}}}|{{{ TsadraVersion | }}}}}{{#if: {{{ directContent | }}}
{{{!}} class="smwtable-clean th-top-right float-right border tsdwiki-depth-1" style="max-width: 300px;"
|<noglossary><div class="tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150}}">{{{ directContent | }}}</div></noglossary>
{{!}}-
|{{#if:{{{ VersionContentSubpage | }}}
! Source
|<noglossary><div class="lazy-load-section noglossary tibetan-downloadable {{#ifeq:{{{ suffix | }}}|tib|text-150|{{#ifeq:{{#switch:{{{ VersionLanguage | }}}
{{!}} {{{ FullTextSource | }}}{{{ SktSource | }}}
|Tibetan=tib
{{!}}-
|Sanskrit=Skt
! Date
|Wylie=wyl
{{!}} {{{ FullTextDate | }}}{{{ SktPubDate | }}} {{#if:{{{ PdfLink | }}}{{{ SktPdfLink | }}}|<br>
}}
{{!}}-
|tib
{{!}} colspan="2" class="text-center" {{!}} [[{{{ PdfLink | }}}{{{ SktPdfLink | }}}|x50px|link={{{ PdfLink | }}}{{{ SktPdfLink | }}}|border]] | }}
|text-150
{{!}}-
|
{{!}} colspan="2" | {{DharmamitraChromeExtNotice}}
}}}}" data-page="{{PAGENAME}}/{{{ VersionContentSubpage | }}}" data-button-label="{{{ buttonLabel | Load content}}}" data-button-class="{{{ buttonClass | }}}" data-loading-label="{{{ loadingLabel |Loading... }}}"></div></noglossary>
{{!}}-
|
{{!}} colspan="2" id="{{{suffix|}}}-download-button" {{!}}
}}
{{!}}} | }}
}}  
<span class="tibetan-downloadable">{{{directContent|}}}</span>|{{#ifexist:{{PAGENAME}}/{{{suffix|}}}|
|{{#ifexist:{{PAGENAME}}/{{{ suffix | }}}
{{{header|}}}
|{{{header|}}}
{{{sourceTable|}}}
{{SubpageSourceTable|{{{ source | }}}|{{{ sourceDate | }}}|{{{ PdfLink | }}}|{{#if:{{{ VersionContentSubpage | }}}|{{#replace:{{{ VersionContentSubpage | }}}| |_}}|{{{ suffix  | }}}}}|{{{ TsadraVersion | }}}}}
<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>
<noglossary><div class="lazy-load-section tibetan-downloadable {{#ifeq:{{{ suffix | }}}
|tib
|text-150
|{{#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>

Latest revision as of 16:04, 4 September 2026