Jump to content

Template:VerseBlock: Difference between revisions

From Grantha
No edit summary
No edit summary
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-menu-wrap"><span class="verse-dots" data-verse="{{{verse_id}}}" data-line1="{{{verse_line1|{{{verse_text|}}}}}}" data-line2="{{{verse_line2|}}}">···</span><div class="verse-menu">{{#if:{{{commentary1|}}}|<div class="verse-menu-item verse-menu-commentary" data-verse="{{{verse_id}}}"><span class="verse-menu-icon">💬</span> Commentary</div>}}<div class="verse-menu-item verse-menu-copy"><span class="verse-menu-icon">⧉</span> Copy verse</div><div class="verse-menu-item verse-menu-download"><span class="verse-menu-icon">↓</span> Download</div></div></span></span>|<span class="shloka-line">{{{verse_line1|{{{verse_text|}}}}}}<span class="verse-menu-wrap"><span class="verse-dots" data-verse="{{{verse_id}}}" data-line1="{{{verse_line1|{{{verse_text|}}}}}}" data-line2="">⋮</span><div class="verse-menu">{{#if:{{{commentary1|}}}|<div class="verse-menu-item verse-menu-commentary" data-verse="{{{verse_id}}}"><span class="verse-menu-icon">💬</span> Commentary</div>}}<div class="verse-menu-item verse-menu-copy"><span class="verse-menu-icon">⧉</span> Copy verse</div><div class="verse-menu-item verse-menu-download"><span class="verse-menu-icon">↓</span> Download</div></div></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 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><!--
-->{{#if:{{{commentary1|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary1}}}|label={{{label1|{{{commentary1}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary1}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary1|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary1}}}|label={{{label1|{{{commentary1}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary1}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary2|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary2}}}|label={{{label2|{{{commentary2}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary2}}}|{{{verse_id}}}}}}}}}<!--
-->{{#if:{{{commentary2|}}}|{{Commentary|verse_id={{{verse_id}}}|name={{{commentary2}}}|label={{{label2|{{{commentary2}}}}}}|text={{#lst:{{{page_title}}}/व्याख्या/{{{commentary2}}}|{{{verse_id}}}}}}}}}<!--

Revision as of 17:04, 25 March 2026

<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>