Template:CyzVerseDisplay: Difference between revisions

From Rangjung Yeshe Wiki Texts
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:CyzCurrentVerse|{{#expr:{{#var:CyzCurrentVerse|0}}+1}}}}{{#subobject:Verse-{{#var:CyzRootChptNum}}-{{#var:CyzCurrentVerse}}
<includeonly>{{#vardefine:CyzCurrentVerse|{{#expr:{{#var:CyzCurrentVerse|0}}+1}}}}{{#subobject:Verse-{{#var:CyzRootChptNum}}-{{#var:CyzCurrentVerse}}
  |CyzVerseText={{{1|}}}
  |CyzVerseText={{{1|}}}{{#if:{{{2|}}}| {{{2}}}}}{{#if:{{{3|}}}| {{{3}}}}}{{#if:{{{4|}}}| {{{4}}}}}
  |CyzChapterNumber={{#var:CyzRootChptNum}}
  |CyzChapterNumber={{#var:CyzRootChptNum}}
  |CyzVerseNumber={{#var:CyzCurrentVerse}}
  |CyzVerseNumber={{#var:CyzCurrentVerse}}
  |CyzVerseType={{{type|Verse}}}
  |CyzVerseType={{{type|Verse}}}
}}<div class="tibetan-verse" data-chapter="{{#var:CyzRootChptNum}}" data-verse="{{#var:CyzCurrentVerse}}">
}}<div class="tibetan-verse">
<span class="TibetanMachineUni18" lang="bo">{{{1|}}}</span><br>
<span class="TibetanMachineUni18" lang="bo">{{{1|}}}</span>{{#if:{{{2|}}}|<br><span class="TibetanMachineUni18" lang="bo">{{{2}}}</span>}}{{#if:{{{3|}}}|<br><span class="TibetanMachineUni18" lang="bo">{{{3}}}</span>}}{{#if:{{{4|}}}|<br><span class="TibetanMachineUni18" lang="bo">{{{4}}}</span>}}{{#if:{{{notes|}}}| {{{notes}}}}}
<span class="TibetanMachineUni18" lang="bo">{{{2|}}}</span><br>
<span class="TibetanMachineUni18" lang="bo">{{{3|}}}</span><br>
<span class="TibetanMachineUni18" lang="bo">{{{4|}}}</span>
</div></includeonly><noinclude>
</div></includeonly><noinclude>
== Usage ==
== Usage ==
Displays a verse with 4 lines (padas) and creates semantic data. Each line appears on its own line.
Displays verses with 1-4 lines and creates semantic data. Optional footnotes can be added.


<pre>
<pre>
{{CyzVerseDisplay
{{CyzVerseDisplay
|དཔལ་ཀུན་ཏུ་བཟང་པོ་ལ་ཕྱག་འཚལ་ལོ།
|།ཐེག་པའི་ཡང་རྩེ་རི་རྒྱལ་ཉི་ཟླའི་ཀློང༌།
|གདོད་ནས་ལྷུན་གྲུབ་ངོ་མཚར་རྨད་ཀྱི་ཆོས།
|།འོད་གསལ་ལྷུན་གྲུབ་རྡོ་རྗེ་སྙིང་པོའི་ཀློང༌།
|རང་བྱུང་ཡེ་ཤེས་འོད་གསལ་བྱང་ཆུབ་སེམས།
|།རྩོལ་ཞིང་སྒྲུབ་མེད་རང་བཞིན་བབས་ཀྱི་ཀློང༌།
|སྣང་སྲིད་སྣོད་བཅུད་འཁོར་འདས་འབྱུང་བའི་མཛོད།
|།ཡེ་འབྱམས་རྨད་དུ་བྱུང་བ་བཤད་ཀྱིས་ཉོན།
|type=Homage
|notes={{CyzRootTranslations|Intro-2}}
}}
}}
</pre>
</pre>

Revision as of 06:57, 7 February 2026

Usage

Displays verses with 1-4 lines and creates semantic data. Optional footnotes can be added.

{{CyzVerseDisplay
|།ཐེག་པའི་ཡང་རྩེ་རི་རྒྱལ་ཉི་ཟླའི་ཀློང༌།
|།འོད་གསལ་ལྷུན་གྲུབ་རྡོ་རྗེ་སྙིང་པོའི་ཀློང༌།
|།རྩོལ་ཞིང་སྒྲུབ་མེད་རང་བཞིན་བབས་ཀྱི་ཀློང༌།
|།ཡེ་འབྱམས་རྨད་དུ་བྱུང་བ་བཤད་ཀྱིས་ཉོན།
|notes={{CyzRootTranslations|Intro-2}}
}}