Jump to content

Template:Commentary: Difference between revisions

From Grantha
m 1 revision imported
No edit summary
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="commentary-block" id="commentary-{{{verse_id}}}-{{{name}}}">
<includeonly><div
<div class="commentary-header" style="background:#f3e9d2;border-left:4px solid #8b6914;padding:6px 10px;cursor:pointer;font-weight:bold;font-family:serif;"
  class="bhashyam-block"
  onclick="this.nextElementSibling.style.display=(this.nextElementSibling.style.display==='none'?'block':'none')">
  data-verse="{{{verse_id|}}}"
{{{label}}} <span style="font-size:0.85em;color:#666;">({{{name}}})</span>
  data-commentary-id="{{{id|}}}">{{{text|}}}</div></includeonly><noinclude>
</div>
== Template:Bhashyam ==
<div class="commentary-body" style="display:none;padding:10px 14px;background:#fffdf6;border:1px solid #d4b866;border-top:none;font-family:serif;line-height:1.8;">
Renders a primary bhāṣya commentary block as plain running prose.
{{{text}}}
No box, no title, no border — flows as body text with left indent.
</div>
 
</div>
=== Parameters ===
{| class="wikitable"
|-
! Parameter !! Required !! Description
|-
| <code>verse_id</code> || Yes || ID of the parent verse, e.g. <code>ISH_C01_V01</code>
|-
| <code>id</code> || No || ID of this commentary block
|-
| <code>text</code> || Yes || The bhāṣya prose content
|}
 
=== Example ===
<pre>
{{Bhashyam
| verse_id = ISH_C01_V01
| id      = ISH_C01_V01_B01
| text     =
ईशस्यावासयोग्यमीशावास्यम् । जगत्यां प्रकृतौ ।
}}
</pre>
[[Category:Templates]]
</noinclude>

Latest revision as of 08:53, 10 April 2026

Template:Bhashyam

Renders a primary bhāṣya commentary block as plain running prose. No box, no title, no border — flows as body text with left indent.

Parameters

Parameter Required Description
verse_id Yes ID of the parent verse, e.g. ISH_C01_V01
id No ID of this commentary block
text Yes The bhāṣya prose content

Example

{{Bhashyam
| verse_id = ISH_C01_V01
| id       = ISH_C01_V01_B01
| text     =
ईशस्यावासयोग्यमीशावास्यम् । जगत्यां प्रकृतौ ।
}}