Jump to content

Template:VerseBlock: Difference between revisions

From Grantha
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div class="verse-block" id="{{{verse_id}}}"><span class="shloka-block">{{#if:{{{verse_line2|}}}|<span class="shloka-line">{{{verse_line1|{{{verse_text|}}}}}}</span><span class="shloka-line">{{{verse_line2}}}<span class="verse-actions">{{#if:{{{commentary1|}}}|<span class="verse-action-btn verse-action-commentary" data-verse="{{{verse_id}}}" title="Commentary"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg></span>}}<span class="verse-action-btn verse-action-copy" data-verse="{{{verse_id}}}" data-line1="{{{verse_line1|{{{verse_text|}}}}}}" data-line2="{{{verse_line2|}}}" title="Copy verse"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></span></span>|<span class="shloka-line">{{{verse_line1|{{{verse_text|}}}}}}<span class="verse-actions">{{#if:{{{commentary1|}}}|<span class="verse-action-btn verse-action-commentary" data-verse="{{{verse_id}}}" title="Commentary"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg></span>}}<span class="verse-action-btn verse-action-copy" data-verse="{{{verse_id}}}" data-line1="{{{verse_line1|{{{verse_text|}}}}}}" data-line2="" title="Copy verse"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></span></span></span>}}</span><!--
<div class="verse-block" id="{{{verse_id}}}"><span class="shloka-block">{{#if:{{{verse_line2|}}}|<span class="shloka-line">{{{verse_line1|{{{verse_text|}}}}}}</span><span class="shloka-line">{{{verse_line2}}}</span>|<span class="shloka-line">{{{verse_line1|{{{verse_text|}}}}}}</span>}}</span></div><!--
-->{{#if:{{{commentary1|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary1}}}|label={{{label1|{{{commentary1}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary1}}}|{{{verse_id}}}}}}}}}<!--
-->{{VerseRow|document_id={{{document_id|}}}|chapter_id={{{chapter_id|}}}|verse_id={{{verse_id}}}|verse_type={{{verse_type|}}}|verse_text={{{verse_line1|{{{verse_text|}}}}}} {{{verse_line2|}}}}}
-->{{#if:{{{commentary2|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary2}}}|label={{{label2|{{{commentary2}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary2}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary3|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary3}}}|label={{{label3|{{{commentary3}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary3}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary4|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary4}}}|label={{{label4|{{{commentary4}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary4}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary5|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary5}}}|label={{{label5|{{{commentary5}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary5}}}|{{{verse_id}}}}}}}}}</div><!--
-->{{VerseRow|document_id={{{document_id|}}}|chapter_id={{{chapter_id|}}}|verse_id={{{verse_id}}}|verse_type={{{verse_type|}}}|verse_text={{{verse_line1|{{{verse_text|}}}}}} {{{verse_line2|}}}|commentary1={{{commentary1|}}}|commentary2={{{commentary2|}}}|commentary3={{{commentary3|}}}|commentary4={{{commentary4|}}}|commentary5={{{commentary5|}}}}}

Latest revision as of 10:51, 8 April 2026